Module ImportFrom alias ImportFrom alias Import alias Import alias identifier ImportFrom alias Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Num ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call NameLoad BinOpMult Str Num Expr Call NameLoad Str Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad If NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad If NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad If BoolOpAnd Call NameLoad AttributeLoad NameLoad attr Str NameLoad NameLoad body Expr Call NameLoad BinOpMod Str SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Expr Call NameLoad BinOpMod Str Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareGt NameLoad Num CompareIsNot NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Slice UnaryOpUSub NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad If NameLoad body Expr Call NameLoad Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If NameLoad body Expr Call NameLoad Str Expr Call NameLoad ListComp Call AttributeLoad Str attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpDiv Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword Str For TupleStore NameStore NameStore Call NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad Num BinOpAdd NameLoad Num NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad If NameLoad body Expr Call NameLoad Assign NameStore SubscriptLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Index Num Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Num Assign NameStore Num While CompareLt NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AugAssignAdd NameStore Num If NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad BinOpDiv NameLoad Call NameLoad NameLoad Return BinOpDiv NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr DictComp NameLoad Dict comprehension NameStore NameLoad For NameStore NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str CompareEq Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num attr NameLoad Num Assign NameStore ListComp NameLoad comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str CompareEq Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num attr NameLoad Num Assign NameStore ListComp NameLoad comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str CompareEq Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num attr NameLoad Num Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str NameLoad If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareEq Call NameLoad NameLoad Num CompareEq Call NameLoad NameLoad Num body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body For NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad Str body For NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body For NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A __future__ print_function time time N/A os N/A numpy np pylab * N/A N/A N/A np set_printoptions threshold N/A np nan N/A N/A N/A np set_printoptions linewidth 150 sklearn preprocessing sklearn cross_validation sklearn.utils.extmath density sklearn metrics sklearn.feature_selection SelectKBest chi2 status Reader ClassifierWrapper N/A object N/A __init__ N/A N/A self classifier X y label_encoder transformer N/A N/A N/A N/A self classifier classifier N/A N/A self label_encoder label_encoder N/A N/A self transformer transformer N/A N/A self X X N/A N/A self y y N/A fit N/A N/A self X y N/A None None N/A N/A N/A N/A X None N/A y None N/A N/A N/A N/A N/A self classifier fit N/A self X N/A self y N/A N/A N/A N/A N/A self classifier fit X y N/A predict N/A N/A self data_features N/A N/A N/A N/A N/A N/A self classifier predict data_features N/A classify N/A N/A self datum N/A N/A N/A guess N/A N/A N/A self classifier predict N/A N/A N/A self transformer transform datum N/A N/A N/A N/A self label_encoder inverse_transform N/A guess N/A 0 N/A benchmark N/A N/A self top_n confusion_matrix report verbose N/A 0 False False False N/A N/A N/A X_train X_test y_train y_test N/A N/A cross_validation train_test_split N/A self X N/A self y test_size 0.4 random_state 0 N/A categories N/A list N/A N/A self label_encoder classes_ N/A verbose N/A N/A N/A print N/A _ 80 N/A N/A print Training:  N/A N/A print N/A self classifier N/A t0 N/A time N/A N/A N/A N/A self classifier fit X_train y_train N/A train_time N/A N/A time t0 N/A verbose N/A N/A N/A print N/A N/A train time: {:.3}s format train_time N/A t0 N/A time N/A pred N/A N/A N/A self classifier predict X_test N/A test_time N/A N/A time t0 N/A verbose N/A N/A N/A print N/A N/A test time: {:.3}s format train_time N/A score N/A N/A metrics f1_score y_test pred N/A verbose N/A N/A N/A print N/A N/A f1 score: {:.3} format score N/A N/A N/A hasattr N/A self classifier coef_ verbose False N/A N/A N/A print N/A dimensionality: %d N/A N/A N/A N/A self classifier coef_ shape N/A 1 N/A N/A print N/A density: %f N/A density N/A clf coef_ N/A N/A N/A top_n 0 N/A feature_names None N/A N/A N/A print N/A N/A top {0} keywords per class: format top_n N/A N/A i category N/A enumerate categories N/A N/A topn N/A N/A N/A np argsort N/A N/A clf coef_ N/A i N/A N/A top_n N/A N/A print N/A N/A {0}: {1} format category N/A N/A join N/A feature_names N/A topn N/A N/A print N/A report N/A N/A N/A print classification report: N/A N/A print N/A N/A metrics classification_report y_test pred target_names categories N/A confusion_matrix N/A N/A N/A print confusion matrix: N/A N/A print N/A N/A N/A {0}:{1} format i category N/A N/A i category N/A enumerate categories N/A conf_arr N/A N/A metrics confusion_matrix y_test pred N/A norm_conf N/A N/A i conf_arr N/A N/A a 0 N/A tmp_arr N/A N/A a N/A sum i 0 N/A j i N/A N/A N/A N/A tmp_arr append N/A N/A float j N/A float a N/A N/A N/A norm_conf append tmp_arr N/A fig N/A N/A plt figure N/A ax N/A N/A fig add_subplot 111 N/A res N/A N/A ax imshow N/A array norm_conf cmap N/A cm jet interpolation nearest N/A N/A i cas N/A enumerate conf_arr N/A N/A N/A j c N/A enumerate cas N/A N/A N/A c 0 N/A N/A N/A N/A plt text N/A j 0.2 N/A i 0.2 c fontsize 14 N/A cb N/A N/A fig colorbar res N/A N/A N/A plt show N/A N/A print N/A verbose N/A N/A N/A print N/A clf_descr N/A N/A N/A N/A str N/A self classifier split ( N/A 0 N/A N/A clf_descr score train_time test_time N/A estimate_accuracy N/A N/A self trials verbose N/A False N/A N/A score 0.0 N/A i 0 N/A N/A i trials N/A N/A N/A X_train X_test y_train y_test N/A N/A cross_validation train_test_split N/A self X N/A self y test_size 0.4 random_state 0 N/A N/A N/A N/A self classifier fit X_train y_train N/A score N/A N/A N/A self classifier score X_test y_test N/A i 1 N/A verbose N/A N/A N/A print N/A N/A Average accuracy over {0} iterations: {1}  format trials N/A score N/A float i N/A N/A score N/A float i N/A N/A ClassifierFactory N/A object N/A __init__ N/A N/A self classifier_dic N/A N/A N/A N/A self classifier classifier_dic N/A classifications N/A N/A self classifier N/A classifications N/A N/A self possible True N/A N/A self unreviewed True N/A N/A self reviewed True N/A N/A self data_files N/A c N/A N/A c classifications N/A classification classifications N/A N/A seed N/A f N/A f N/A N/A self classifier N/A seed N/A N/A N/A N/A N/A N/A f split N/A os sep N/A -1 find classification 0 N/A reviewed N/A f N/A f N/A N/A self classifier N/A reviewed N/A N/A N/A N/A N/A N/A f split N/A os sep N/A -1 find classification 0 N/A unreviewed N/A f N/A f N/A N/A self classifier N/A unreviewed N/A N/A N/A N/A N/A N/A f split N/A os sep N/A -1 find classification 0 N/A N/A N/A N/A self data_files N/A classification N/A seed seed N/A N/A N/A N/A self data_files N/A classification N/A reviewed reviewed N/A N/A N/A N/A self data_files N/A classification N/A unreviewed unreviewed N/A N/A N/A N/A len reviewed 0 N/A N/A len seed 0 N/A N/A N/A self reviewed False N/A N/A N/A len unreviewed 0 N/A N/A N/A self unreviewed False N/A N/A N/A N/A len reviewed 0 N/A N/A len seed 0 N/A N/A len unreviewed 0 N/A N/A N/A N/A self data_files N/A classification N/A N/A N/A N/A self unreviewed False N/A N/A self reviewed False N/A N/A N/A self possible False N/A N/A self data N/A N/A N/A self labels N/A N/A create_data_set N/A N/A self data_type N/A N/A N/A classification N/A N/A N/A self data_files keys N/A N/A N/A N/A data_type reviewed N/A data_type both N/A N/A f N/A N/A N/A self data_files N/A classification N/A reviewed N/A N/A datum N/A N/A Reader read_reviewed f N/A datum N/A N/A N/A N/A N/A self data append datum N/A N/A N/A N/A self labels append classification N/A N/A data_type both N/A N/A fs N/A N/A N/A self data_files N/A classification N/A seed N/A N/A datum N/A N/A Reader read_seed fs N/A N/A N/A N/A N/A self data append datum N/A N/A N/A N/A self labels append classification N/A N/A N/A data_type unreviewed N/A data_type both N/A N/A f N/A N/A N/A self data_files N/A classification N/A unreviewed N/A N/A datum N/A N/A Reader read_seed fs N/A N/A N/A N/A N/A self data append datum N/A N/A N/A N/A self labels append classification N/A N/A print N/A N/A {0} items of data format N/A len N/A self data N/A test_classifier N/A N/A self scikit_classifier transformer trials N/A N/A N/A X N/A N/A transformer fit_transform N/A self data N/A le N/A N/A preprocessing LabelEncoder N/A y N/A N/A le fit_transform N/A self labels N/A cw N/A ClassifierWrapper scikt_classifier X y transformer le N/A N/A N/A cw estimate_accuracy trials verbose True N/A create_classifier N/A N/A self scikit_classifier transformer N/A N/A N/A t transformer N/A X N/A N/A t fit_transform N/A self data N/A le N/A N/A preprocessing LabelEncoder N/A y N/A N/A le fit_transform N/A self labels N/A N/A print N/A le classes_ N/A cw N/A ClassifierWrapper scikit_classifier X y le t N/A cw N/A N/A