Module Expr Str Import alias identifier Import alias identifier ImportFrom alias alias alias alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Num Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num keyword ListLoad keyword ListLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Num Assign NameStore ListLoad Call NameLoad TupleLoad Num Num Num Num keyword Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword NameLoad Call NameLoad TupleLoad Num Num Num keyword NameLoad Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num keyword NameLoad Call NameLoad Num Num Num Num keyword NameLoad keyword Num keyword Num keyword Num Call NameLoad Num Num Num Num keyword NameLoad keyword Num keyword Num keyword Num Call NameLoad Num Num Num Num keyword NameLoad keyword Num keyword Num keyword Num Call NameLoad Num Num Num Num keyword NameLoad keyword Num keyword Num keyword Num Call NameLoad Num Num Num Num keyword NameLoad keyword Num keyword Num keyword Num Call NameLoad Num Num Num Num keyword NameLoad keyword Num keyword Num keyword Num If NameLoad body AugAssignAdd NameStore ListLoad Call NameLoad TupleLoad Num Num Num Num keyword Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword Num keyword NameLoad Call NameLoad TupleLoad Num Num Num Num keyword Num keyword NameLoad Call NameLoad Num Num Num Num keyword NameLoad keyword Num keyword Num keyword Num Call NameLoad TupleLoad Num Num Num Num keyword NameLoad orelse AugAssignAdd NameStore ListLoad Call NameLoad TupleLoad Num Num Num Num keyword NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num If NameLoad body Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num orelse Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword Str keyword Str keyword Num decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Call NameLoad keyword NameLoad If NameLoad body Assign NameStore Call NameLoad keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Num Num Str keyword NameLoad keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Num Num Str keyword NameLoad keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Num Num Str keyword NameLoad keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Num Num Str keyword NameLoad keyword Num keyword Str keyword Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad keyword NameLoad decorator_list Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
Tutorial Diagrams
-----------------

This script plots the flow-charts used in the scikit-learn tutorials.
 N/A numpy np N/A pylab pl matplotlib.patches Circle Rectangle Polygon Arrow FancyArrow create_base N/A N/A box_bg arrow1 arrow2 supervised N/A #CCCCCC #88CCFF #88FF88 True N/A N/A fig N/A N/A pl figure figsize N/A 9 6 facecolor w N/A ax N/A N/A pl axes N/A 0 0 1 1 xticks N/A yticks N/A frameon False N/A N/A N/A ax set_xlim 0 9 N/A N/A N/A ax set_ylim 0 6 N/A patches N/A N/A Rectangle N/A 0.3 3.6 1.5 1.8 zorder 1 fc box_bg N/A Rectangle N/A 0.5 3.8 1.5 1.8 zorder 2 fc box_bg N/A Rectangle N/A 0.7 4.0 1.5 1.8 zorder 3 fc box_bg N/A Rectangle N/A 2.9 3.6 0.2 1.8 fc box_bg N/A Rectangle N/A 3.1 3.8 0.2 1.8 fc box_bg N/A Rectangle N/A 3.3 4.0 0.2 1.8 fc box_bg N/A Rectangle N/A 0.3 0.2 1.5 1.8 fc box_bg N/A Rectangle N/A 2.9 0.2 0.2 1.8 fc box_bg N/A Circle N/A 5.5 3.5 1.0 fc box_bg N/A Polygon N/A N/A 5.5 1.7 N/A 6.1 1.1 N/A 5.5 0.5 N/A 4.9 1.1 fc box_bg N/A FancyArrow 2.3 4.6 0.35 0 fc arrow1 width 0.25 head_width 0.5 head_length 0.2 N/A FancyArrow 3.75 4.2 0.5 -0.2 fc arrow1 width 0.25 head_width 0.5 head_length 0.2 N/A FancyArrow 5.5 2.4 0 -0.4 fc arrow1 width 0.25 head_width 0.5 head_length 0.2 N/A FancyArrow 2.0 1.1 0.5 0 fc arrow2 width 0.25 head_width 0.5 head_length 0.2 N/A FancyArrow 3.3 1.1 1.3 0 fc arrow2 width 0.25 head_width 0.5 head_length 0.2 N/A FancyArrow 6.2 1.1 0.8 0 fc arrow2 width 0.25 head_width 0.5 head_length 0.2 N/A supervised N/A N/A patches N/A N/A Rectangle N/A 0.3 2.4 1.5 0.5 zorder 1 fc box_bg N/A Rectangle N/A 0.5 2.6 1.5 0.5 zorder 2 fc box_bg N/A Rectangle N/A 0.7 2.8 1.5 0.5 zorder 3 fc box_bg N/A FancyArrow 2.3 2.9 2.0 0 fc arrow1 width 0.25 head_width 0.5 head_length 0.2 N/A Rectangle N/A 7.3 0.85 1.5 0.5 fc box_bg N/A N/A patches N/A N/A Rectangle N/A 7.3 0.2 1.5 1.8 fc box_bg N/A p patches N/A N/A N/A N/A ax add_patch p N/A N/A N/A pl text 1.45 4.9 Training
Text,
Documents,
Images,
etc. ha center va center fontsize 14 N/A N/A N/A pl text 3.6 4.9 Feature
Vectors ha left va center fontsize 14 N/A N/A N/A pl text 5.5 3.5 Machine
Learning
Algorithm ha center va center fontsize 14 N/A N/A N/A pl text 1.05 1.1 New Text,
Document,
Image,
etc. ha center va center fontsize 14 N/A N/A N/A pl text 3.3 1.7 Feature
Vector ha left va center fontsize 14 N/A N/A N/A pl text 5.5 1.1 Predictive
Model ha center va center fontsize 12 N/A supervised N/A N/A N/A N/A pl text 1.45 3.05 Labels ha center va center fontsize 14 N/A N/A N/A pl text 8.05 1.1 Expected
Label ha center va center fontsize 14 N/A N/A N/A pl text 8.8 5.8 Supervised Learning Model ha right va top fontsize 18 N/A N/A N/A N/A pl text 8.05 1.1 Likelihood
or Cluster ID
or Better
Representation ha center va center fontsize 12 N/A N/A N/A pl text 8.8 5.8 Unsupervised Learning Model ha right va top fontsize 18 N/A plot_supervised N/A N/A annotate N/A False N/A N/A N/A create_base supervised True N/A annotate N/A N/A fontdict N/A dict color r weight bold size 14 N/A N/A N/A pl text 1.9 4.55 X = vec.fit_transform(input) fontdict fontdict rotation 20 ha left va bottom N/A N/A N/A pl text 3.7 3.2 clf.fit(X, y) fontdict fontdict rotation 20 ha left va bottom N/A N/A N/A pl text 1.7 1.5 X_new = vec.transform(input) fontdict fontdict rotation 20 ha left va bottom N/A N/A N/A pl text 6.1 1.5 y_new = clf.predict(X_new) fontdict fontdict rotation 20 ha left va bottom N/A plot_unsupervised N/A N/A N/A N/A N/A N/A create_base supervised False N/A N/A N/A plot_supervised False N/A N/A plot_supervised True N/A N/A plot_unsupervised N/A N/A N/A pl show