Hi,
I am not able import the visualize module in my notebook. I have run it from pycharm also. Still, it says that there is no module by the name of ‘visualize’
Hi,
I am not able import the visualize module in my notebook. I have run it from pycharm also. Still, it says that there is no module by the name of ‘visualize’
Hey @A18ML0031, can you please share your code by uploading it on google drive and sharing the link over here ? I’ll have to look at it once.
Thanks !
It says that i ‘can’t post a link to that host’ . I have reported the same issue of being unable to post the drive links on another doubt as well.
Hey @A18ML0031, please use this import statement in your code and see if it works :
from sklearn.metrics import plot_confusion_matrix
I hope this helps !
Happy Learning !
I am not able to plot the confusion matrix. I have extracted the matrix in my code. How do i plot it if i am not able to import the visualze.py file in my notebook?
What is there in your visualize.py file ? I don’t think we need a separate python module of file for printing the confusion matrix. Please refer this link to see how you can plot a confusion matrix.
I hope this clears your doubt !
Happy coding !
Visualize.py module is being used by Prateek Bhaiya in the video. That is what i am asking about.
It helps me plot the decision boundary of the same
Hey @A18ML0031, make sure you have created the visualize.py file. Please find the file at the below link. Also make sure to keep both the python codes in the same directory to be able to import it directly.
I hope this helps !
Happy Learning !
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.