Module Import alias identifier Import alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args defaults body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Print Str Assign NameStore Call NameLoad keyword Num keyword Num keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A competition_utilities cu N/A features sklearn.ensemble RandomForestClassifier N/A train_file train-sample.csv N/A full_train_file train.csv N/A test_file public_leaderboard.csv N/A submission_file basic_benchmark.csv N/A feature_names N/A BodyLength NumTags OwnerUndeletedAnswerCountAtPostTime ReputationAtPostCreation TitleLength UserAge main N/A N/A N/A N/A N/A Reading the data N/A data N/A N/A cu get_dataframe train_file N/A Extracting features N/A fea N/A N/A features extract_features feature_names data N/A Training the model N/A rf N/A RandomForestClassifier n_estimators 50 verbose 2 compute_importances True n_jobs -1 N/A N/A N/A rf fit fea N/A data N/A OpenStatus N/A Reading test file and making predictions N/A data N/A N/A cu get_dataframe test_file N/A test_features N/A N/A features extract_features feature_names data N/A probs N/A N/A rf predict_proba test_features N/A Calculating priors and updating posteriors N/A new_priors N/A N/A cu get_priors full_train_file N/A old_priors N/A N/A cu get_priors train_file N/A probs N/A N/A cu cap_and_update_priors old_priors probs new_priors 0.001 N/A N/A Saving submission to %s submission_file N/A N/A N/A cu write_submission submission_file probs N/A N/A N/A __name__ __main__ N/A N/A N/A main