Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion Matrix #2

Closed
gsamyak30 opened this issue Apr 2, 2022 · 3 comments
Closed

Confusion Matrix #2

gsamyak30 opened this issue Apr 2, 2022 · 3 comments

Comments

@gsamyak30
Copy link

gsamyak30 commented Apr 2, 2022

Hi Anirudh
There are 2 question in my mind like in which file your predicted data is been stored. And how can we get the confusion matrix of svm ?
And at last if you can tell me like how you have get confusion matrix how your each data has been compared and how the confusion matrix of rf and knn are same ?
And the use of mlp and can we get confusion matrix of that as well ?

@ANIRUDH-333
Copy link
Owner

Firstly, we didn't have the requirement to store the predicted and hence we didn't store it. However, you can modify the code and store the data needed.
Thank for pointing out. The confusion matrix for KNN and RF is not the same. We made a mistake by taking the same variable in both the cases.
In cell 19, line 6, instead of pred, we need to take the y_pred.
I will update it.
Yes, we can get the confusion matrix for that but we dint include that in our code.

@gsamyak30
Copy link
Author

In svm the parameter line it showing the x_train is not defined ?
And if we have to get confusion matrix of the svm then what code should we have to write to get it ?

@ANIRUDH-333
Copy link
Owner

Maybe, you are directly trying to run SVM, which might be the reason it is showing, that x_train is not defined. You need to run the 6th cell to define all the train and test sets containing variables.
As of now, I am not sure about the code for producing confusion matrix for multi svm. I will get back to you on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants