Module Expr Str Print NameLoad Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num keyword TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword ListLoad Num Num Num Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad CompareEq NameLoad NameLoad Num attr BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad CompareEq NameLoad NameLoad Num attr Num Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad CompareEq NameLoad NameLoad Num attr NameLoad keyword Str keyword Call NameLoad keyword Num keyword Str keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Num attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
=========================================================
PCA example with Iris Data-set
=========================================================

Principal Component Analysis applied to the Iris dataset.

See `here <https://en.wikipedia.org/wiki/Iris_flower_data_set>`_ for more
information on this dataset.

 N/A __doc__ N/A numpy np N/A matplotlib.pyplot plt mpl_toolkits.mplot3d Axes3D sklearn decomposition sklearn datasets N/A N/A N/A N/A np random seed 5 N/A centers N/A N/A 1 1 N/A -1 -1 N/A 1 -1 N/A iris N/A N/A datasets load_iris N/A X N/A iris data N/A y N/A iris target N/A fig N/A N/A plt figure 1 figsize N/A 4 3 N/A N/A N/A plt clf N/A ax N/A Axes3D fig rect N/A 0 0 0.95 1 elev 48 azim 134 N/A N/A N/A plt cla N/A pca N/A N/A decomposition PCA n_components 3 N/A N/A N/A pca fit X N/A X N/A N/A pca transform X N/A N/A name label N/A N/A Setosa 0 N/A Versicolour 1 N/A Virginica 2 N/A N/A N/A N/A ax text3D N/A N/A N/A X N/A N/A N/A y label 0 mean N/A N/A N/A N/A X N/A N/A N/A y label 1 mean 1.5 N/A N/A N/A X N/A N/A N/A y label 2 mean name horizontalalignment center bbox N/A dict alpha 0.5 edgecolor w facecolor w N/A y N/A N/A N/A N/A np choose y N/A 1 2 0 astype N/A np float N/A N/A N/A ax scatter N/A X N/A N/A N/A 0 N/A X N/A N/A N/A 1 N/A X N/A N/A N/A 2 c y cmap N/A N/A plt cm spectral N/A N/A N/A N/A ax w_xaxis set_ticklabels N/A N/A N/A N/A N/A ax w_yaxis set_ticklabels N/A N/A N/A N/A N/A ax w_zaxis set_ticklabels N/A N/A N/A N/A plt show