Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I created a Random Forest Model for text Mining project. On Training Dataset, i got the accuracy of :Train acc: 0.7841726618705036 Test acc: 0.5916666666666667 My

I created a Random Forest Model for text Mining project.

On Training Dataset, i got the accuracy of :Train acc: 0.7841726618705036 

Test acc: 0.5916666666666667 

My confusion Matrix looks like:

array([[ 0, 0, 0, 0, 10], [ 0, 0, 0, 0, 23], [ 0, 0, 0, 0, 15], [ 0, 0, 0, 0, 1], [ 0, 0, 0, 0, 71]], dtype=int64) 

Also, i created Stochastic Gradient Descent Classifier

Train acc: 1.0 

Test acc: 0.5833333333333334 

Confusion Matrix:

array([[ 0, 1, 0, 1, 8], [ 0, 0, 0, 0, 23], [ 0, 1, 1, 0, 13], [ 0, 0, 0, 0, 1], [ 1, 1, 0, 0, 69]], dtype=int64) 

which model performs better, why?

any evidence of overfitting, and how can we fix it?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

A First Course In Harmonic Analysis

Authors: Anton Deitmar

2nd Edition

0387228373, 978-0387228372

More Books

Students also viewed these Mathematics questions