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

unable to run classifier file #2

Open
nehakirar opened this issue May 24, 2019 · 13 comments
Open

unable to run classifier file #2

nehakirar opened this issue May 24, 2019 · 13 comments

Comments

@nehakirar
Copy link

i am not able to get confusion matrix of all the classification algorithm we have used in this project. please help. Also want to know if you have any research paper on this project it would be great help.

@nishitpatel01
Copy link
Owner

Can you provide more information? are you getting an error? how are you running the program?

@nehakirar
Copy link
Author

nehakirar commented May 24, 2019 via email

@nishitpatel01
Copy link
Owner

This is the expected output. if you run the classifier.py file it will generate feature importance plot as you can see is what being called at the end of the file. To print confusion matrix, you need to manually run the function "build_confusion_matrix". It will then print matrix in console.

Try running the code till the part where "build_confusion_matrix" is defined and then run the call commands thereafter. (run till line # 211 then call function in the line # 215 to print matrix for naive bayes for example)The matrix shown in the file were manually copied my me for illustration purposes.
let me know if you have issues.

@nehakirar
Copy link
Author

nehakirar commented May 24, 2019 via email

@nishitpatel01
Copy link
Owner

you need to check your sklearn version. In the new sklearn version cross_validation has been deprecated. use "sklearn.model_selection" if you are using newer version.

@nehakirar
Copy link
Author

nehakirar commented May 24, 2019 via email

@nishitpatel01
Copy link
Owner

make sure you run the function definition and then call the function. no need to worry about gensim as its not being used in the program at the moment. do you see the "build_confusion_matrix" in env/variable window?

@nehakirar
Copy link
Author

nehakirar commented May 24, 2019 via email

@nehakirar
Copy link
Author

nehakirar commented May 24, 2019 via email

@nehakirar
Copy link
Author

nehakirar commented May 28, 2019 via email

@nishitpatel01
Copy link
Owner

Can you send an email to [email protected] with detailed steps on how you are running the program and screenshots? without seeing exact steps it is hard to debug for me. what happens when you run the function definition or classifier.py?

@nehakirar
Copy link
Author

sir
I am still facing the same issue, can you guide me further.

@nishitpatel01
Copy link
Owner

nishitpatel01 commented Jun 12, 2019 via email

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