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

Different Result Although Same Logic and Data Source #5

Open
aguskianto opened this issue Mar 10, 2018 · 1 comment
Open

Different Result Although Same Logic and Data Source #5

aguskianto opened this issue Mar 10, 2018 · 1 comment

Comments

@aguskianto
Copy link

I follow your tutorial for Pima-Prediction, and use "./data/pima-data.csv".

My result:
image

Your result (origin exercise file):
image

What makes it different?

@JerryKurata
Copy link
Owner

JerryKurata commented Mar 10, 2018

If you go to the course discussion there is a thread on this. Essentially later version of matplot lib changed the default colors. Here were the instructions that fixed the issue.


I suspect that your machine has version 2.0 or greater of MatPlotLib installed. Version 2.0 changed a number of things including the default color schemes.

Please add the following to your notebook by the Imports statements

import matplotlib
print(matplotlib.version)

if this outputs 2.0 or later the colors will be different.

To fix the colors add these lines

to reset most of matplotlib to classic, pre-2.0, colors and styles

matplotlib.style.use('classic')

This should fix the colors.

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