Last active
December 17, 2015 08:49
-
-
Save sylvchev/af8a6317448672387b8a to your computer and use it in GitHub Desktop.
Scatter plot matrix for Iris dataset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.datasets import load_iris | |
from numpy import array | |
from pandas import DataFrame | |
from pandas.tools.plotting import scatter_matrix | |
iris = load_iris() | |
df = DataFrame(iris.data, columns=iris.feature_names) | |
colors=array(50*['r']+50*['g']+50*['b']) | |
scatter_matrix(df, alpha=0.2, figsize=(10,10), color=colors) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment