Module Import alias Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str With Call NameLoad NameLoad NameStore body Assign ListStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad NameStore body Assign ListStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad NameStore body Assign ListStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Num Num Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print Str Assign NameStore Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Print BinOpAdd Str Call NameLoad NameLoad
N/A N/A pickle N/A numpy np sklearn.feature_extraction.text CountVectorizer sklearn.feature_extraction.text TfidfTransformer TfidfVectorizer sklearn.linear_model SGDClassifier SGDRegressor sklearn.metrics mean_squared_error mean_absolute_error sklearn.svm LinearSVC SVC sklearn.ensemble RandomForestClassifier N/A TRAIN_FILE TrainSet_147444 N/A DEV_FILE DevSet_147444 N/A TEST_FILE TestSet_147444 N/A N/A open TRAIN_FILE file N/A N/A N/A train_reviews train_labels N/A N/A pickle load file N/A N/A open DEV_FILE file N/A N/A N/A dev_reviews dev_labels N/A N/A pickle load file N/A N/A open TEST_FILE file N/A N/A N/A test_reviews test_labels N/A N/A pickle load file N/A ngram_range N/A 1 1 N/A count_vect N/A CountVectorizer ngram_range ngram_range stop_words english max_features 5000 N/A X_train_counts N/A N/A count_vect fit_transform train_reviews N/A tfidf_transformer N/A N/A N/A TfidfTransformer use_idf True fit X_train_counts N/A X N/A N/A tfidf_transformer transform X_train_counts N/A Training N/A classifier N/A N/A N/A RandomForestClassifier fit N/A N/A X toarray train_labels N/A train_accuracy N/A N/A classifier score N/A N/A X toarray train_labels N/A N/A Trained with %f of accuracy train_accuracy N/A X_dev_counts N/A N/A count_vect transform dev_reviews N/A X_dev_tfidf N/A N/A tfidf_transformer transform X_dev_counts N/A dev_accuracy N/A N/A classifier score N/A N/A X_dev_tfidf toarray dev_labels N/A N/A Dev accuracy:  N/A str dev_accuracy