DEV Community

Discussion on: A Simple Machine Learning Project in Python

imjoseangel profile image
Jose Angel Munoz

Hey! Nice one!

Just a single comment: When displaying the plot, it is important to add the following:

import matplotlib.pyplot as plt
# Show the plot 

Warm Regards!

bhoobalan profile image
bhoobalan • Edited on

Another workaround is we can use "%matplotlib inline" while import like below so that we no need to use explicitly everytime.

import matplotlib.pyplot as plt
%matplotlib inline

Useful when you use Jupiter Notebook.

educationecosystem profile image
Dr. Michael Garbade Author

Yes, thanks for pointing that out.