Module Expr Str Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index CompareEq NameLoad Num SubscriptLoad NameLoad Index CompareNotEq NameLoad Num Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index CompareEq NameLoad Num SubscriptLoad NameLoad Index CompareNotEq NameLoad Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str Call AttributeLoad NameLoad attr NameLoad NameLoad
N/A N/A 
================================
Sequence classifcation benchmark
================================
This is a stripped-down version of the "plot_letters.py" example
targetted to benchmark inference and learning algorithms on chains.
 N/A numpy np pystruct.datasets load_letters pystruct.models ChainCRF pystruct.learners OneSlackSSVM N/A abc abcdefghijklmnopqrstuvwxyz N/A letters N/A load_letters N/A N/A X y folds N/A N/A letters N/A data N/A letters N/A labels N/A letters N/A folds N/A N/A X y N/A N/A N/A np array X N/A N/A np array y N/A N/A X_train X_test N/A N/A X N/A N/A folds 1 N/A X N/A N/A folds 1 N/A N/A y_train y_test N/A N/A y N/A N/A folds 1 N/A y N/A N/A folds 1 N/A model N/A ChainCRF N/A ssvm N/A OneSlackSSVM model model C 0.1 tol 0.1 verbose 3 max_iter 20 N/A N/A N/A ssvm fit X_train y_train N/A N/A Test score with chain CRF: %f N/A N/A ssvm score X_test y_test