2
$\begingroup$

I am new into ML. As per video tutorials when i try to execute the following lines i get an error. However the instructor get successful execution. enter image description here

Error is :

enter image description here

i have google about it but didnt get any clue. May be there is change in library ? How can i solve this Error.

$\endgroup$
2
  • $\begingroup$ Can you add a link to the video tutorial you are referring to? Having all the code in correct format to copy and paste and not type as well as a sample of your data. Without knowing what X_train and y_train look like it's almost impossible to replicate your problem. $\endgroup$
    – wacax
    Commented Dec 25, 2018 at 15:10
  • $\begingroup$ its a course on Udemy https://www.udemy.com/machinelearning/ here is the code file link drive.google.com/open?id=1w9ujZqlUaF-6lOwk_2GgBIDew8dAdRZ2 $\endgroup$ Commented Dec 25, 2018 at 15:18

1 Answer 1

2
$\begingroup$

Instead of

import matplotlib as plt 

use

import matplotlib.pyplot as plt
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.