Re: [Scikit-learn-general] Plotting PCA results

2015-02-07 Thread Stefan van der Walt
Hi Sarah On 2015-02-07 16:56:22, Sarah Mount wrote: > df_no_strings = df.drop("Sample", axis=1, inplace=False) pca = > PCA(n_components=4) pca.fit(df_no_strings) print("Explained > variance:", pca.explained_variance_) df_reduced = > pca.fit_transform(df_no_strings) > > I want to plot t

Re: [Scikit-learn-general] Plotting PCA results

2015-02-07 Thread Ronnie Ghose
if you notice we use matplotlib as our plotting library - it has great docs for how to label a scatterplot and a thriving community! http://stackoverflow.com/questions/5147112/matplotlib-how-to-put-individual-tags-for-a-scatter-plot On Sat, Feb 7, 2015 at 8:17 PM, Sarah Mount wrote: > Hi, > > O

Re: [Scikit-learn-general] Plotting PCA results

2015-02-07 Thread Sarah Mount
Hi, On Sun, Feb 8, 2015 at 1:11 AM, Ronnie Ghose wrote: > > lots of examples! > > http://scikit-learn.org/stable/auto_examples/index.html#decomposition > > Yes, but I couldn't see an example there that labelled the plot in the way that I described. Sarah > On Sat, Feb 7, 2015 at 7:56 PM, Sar

Re: [Scikit-learn-general] Plotting PCA results

2015-02-07 Thread Ronnie Ghose
lots of examples! http://scikit-learn.org/stable/auto_examples/index.html#decomposition On Sat, Feb 7, 2015 at 7:56 PM, Sarah Mount wrote: > Hi there, > > This question relates to Pandas and visualisation as well ask sklearn, so > apologies if I am asking on the wrong list. > > I have a dataset