Module Import alias identifier Import alias identifier ImportFrom alias Import alias FunctionDef arguments args NameParam NameParam defaults body Print Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Print Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults ListLoad body Print Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num ListLoad body Print Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults ListLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Print Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Print Str Assign NameStore Dict FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num body Return IfExp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num body Return NameLoad Return Call AttributeLoad NameLoad attr ListLoad BinOpAdd BinOpMult SubscriptLoad NameLoad Index Num NameLoad BinOpMult SubscriptLoad NameLoad Index Num BinOpSub Num NameLoad Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Slice AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Slice AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Slice Num Num Call NameLoad SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num Assign SubscriptStore NameLoad Slice Num Num Call NameLoad SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore DictComp Call NameLoad SubscriptLoad NameLoad Index Num TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str keyword NameLoad attr Assign NameStore ListLoad Str Str Assign NameStore ListComp Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Print Call AttributeLoad Str attr NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad keyword Num keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad keyword Num keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword Num keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Print Str Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad Num Num Str
N/A N/A pandas pd N/A SETTINGS sts fitting_models * N/A analysis train_sex_age_model N/A N/A info train_true N/A N/A N/A  ------ train sex age model : N/A sa_model N/A SexAgeModel N/A N/A N/A sa_model fit info train_true N/A sa_predict N/A N/A sa_model predict info N/A N/A N/A analysis evaluate_pred sa_predict train_true N/A sa_predict N/A train_ch4_model N/A N/A ch4_data train_true N/A N/A N/A  ---- train ch4 model : N/A ch4_model N/A Ch4Model N/A N/A N/A ch4_model fit ch4_data train_true N/A ch4_pred N/A N/A ch4_model predict ch4_data N/A N/A N/A analysis evaluate_pred ch4_pred train_true N/A ch4_pred N/A train_sax_model N/A N/A areas_all train_true version cleaner N/A N/A N/A N/A  ---- train sax model : N/A sax_model N/A SaxModel version version N/A result N/A N/A analysis get_preliminary_volume areas_all cleaner cleaner N/A N/A N/A sax_model fit result train_true N/A sax_predict N/A N/A sax_model predict result N/A N/A N/A analysis evaluate_pred sax_predict train_true N/A sax_predict N/A train_sax_cnt_model N/A N/A areas_all cont_all train_true version cleaner N/A 2 N/A N/A N/A  ---- train sax countour model : N/A cnt_sax_model N/A SaxModel version version N/A cnt_result N/A N/A analysis get_preliminary_volume_cnt areas_all cont_all cleaner cleaner N/A N/A N/A cnt_sax_model fit cnt_result train_true N/A cnt_sax_predict N/A N/A cnt_sax_model predict cnt_result N/A N/A N/A analysis evaluate_pred cnt_sax_predict train_true N/A cnt_sax_predict N/A train_sax_cnt_filter_model N/A N/A areas_all cont_all train_true cleaner N/A N/A N/A N/A  ---- train sax countour filter model : N/A cnt_result N/A N/A analysis get_preliminary_volume_cnt_filter areas_all cont_all cleaner cleaner N/A cnt_sax_model N/A SaxFilterModel N/A N/A N/A cnt_sax_model fit cnt_result train_true N/A cnt_sax_predict N/A N/A cnt_sax_model predict cnt_result N/A N/A N/A analysis evaluate_pred cnt_sax_predict train_true N/A cnt_sax_predict N/A train_oneslice_model N/A N/A areas_all train_true N/A N/A N/A  --- train oneslice model : N/A oneslice_model N/A OneSliceModel N/A N/A N/A oneslice_model fit areas_all train_true N/A oneslice_predict N/A N/A oneslice_model predict areas_all N/A N/A N/A analysis evaluate_pred oneslice_predict train_true N/A oneslice_predict N/A build_default_model N/A N/A oneslice_pred ch4_pred sa_predict p_1 N/A 0.6 N/A N/A  --- building default model : N/A default_pred N/A _bdm_ave N/A N/A x1 x2 x0 N/A N/A N/A N/A N/A np isnan N/A x1 N/A 0 N/A N/A N/A N/A N/A np isnan N/A x2 N/A 0 x0 x2 N/A N/A N/A N/A np isnan N/A x2 N/A 0 N/A N/A x1 N/A N/A N/A np asarray N/A N/A N/A N/A x1 N/A 0 p_1 N/A N/A x2 N/A 0 N/A 1 p_1 N/A min N/A x1 N/A 1 N/A x2 N/A 1 N/A N/A N/A case value N/A N/A sa_predict iteritems N/A N/A pred1 N/A N/A oneslice_pred get case N/A pred2 N/A N/A ch4_pred get case N/A N/A pred1 None N/A N/A pred1 N/A N/A np zeros 4 N/A N/A pred1 N/A N/A np nan N/A N/A pred2 None N/A N/A pred2 N/A N/A np zeros 4 N/A N/A pred2 N/A N/A np nan N/A x N/A N/A np zeros 4 N/A N/A x N/A 0 2 N/A _bdm_ave N/A pred1 N/A 0 2 N/A pred2 N/A 0 2 N/A value N/A 0 2 N/A N/A x N/A 2 4 N/A _bdm_ave N/A pred1 N/A 2 4 N/A pred2 N/A 2 4 N/A value N/A 2 4 N/A N/A default_pred N/A case x N/A default_pred N/A N/A N/A __name__ __main__ N/A N/A cleaner N/A 0 1 2 N/A info N/A N/A pd read_csv N/A N/A sts output_dir /info.csv N/A ch4_data N/A N/A int N/A r N/A 0 N/A N/A r N/A 1 N/A r N/A 2 N/A N/A _ r N/A N/A N/A N/A pd read_csv N/A N/A sts tencia_output_dir /ch4_volumes_map.csv header False iterrows N/A qifiles N/A v1_p2090_size256_ss100_nocL_tag3_2norm v2_p2090_size196_ss100_nocL_tag6_2norm N/A qi_areas N/A N/A N/A analysis get_cnn_results N/A N/A sts output_dir N/A N/A /areas_map_{}.csv format v N/A v qifiles N/A qi_cnts N/A N/A N/A analysis get_cnn_results N/A N/A sts output_dir N/A N/A /contour_portion_{}.csv format v N/A v qifiles N/A train_true N/A N/A pd read_csv N/A N/A sts data_kaggle /train_valid.csv N/A Ntrain N/A N/A train_true shape N/A 0 N/A N/A N/A number of train cases is {} format Ntrain N/A filter_ll -2000 N/A sa_predict N/A train_sex_age_model info train_true N/A ch4_predict N/A train_ch4_model ch4_data train_true N/A pick N/A 0 1 N/A N/A qi_best qi_best_cont N/A N/A analysis take_best_contour N/A N/A qi_areas N/A i N/A i pick N/A N/A qi_cnts N/A i N/A i pick method 1 filter_ll filter_ll N/A oneslice_pred N/A train_oneslice_model qi_best train_true N/A default_pred N/A build_default_model oneslice_pred ch4_predict sa_predict N/A N/A N/A analysis evaluate_pred default_pred train_true N/A pick N/A 0 1 N/A N/A qi_best qi_best_cont N/A N/A analysis take_best_contour N/A N/A qi_areas N/A i N/A i pick N/A N/A qi_cnts N/A i N/A i pick method 1 filter_ll filter_ll N/A qi_sax_pred N/A train_sax_model qi_best train_true version 2 cleaner cleaner N/A qi_sax_cnt_pred N/A train_sax_cnt_model qi_best qi_best_cont train_true version 2 cleaner cleaner N/A qi_sax_filter_pred N/A train_sax_cnt_filter_model qi_best qi_best_cont train_true cleaner cleaner N/A  --------- average models -- N/A all_models N/A qi_sax_pred qi_sax_cnt_pred qi_sax_filter_pred N/A ave_model N/A AverageModel ll 0.0001 N/A N/A N/A ave_model fit all_models train_true N/A N/A N/A ave_model set N/A N/A ave_model p 1.05 N/A ave_pred N/A N/A ave_model predict all_models N/A final_pred N/A N/A analysis fill_default ave_pred default_pred N/A N/A N/A analysis evaluate_pred final_pred train_true N/A N/A N/A analysis make_submit final_pred 701 1140 simpler N/A N/A N/A analysis save_intermediate final_pred 1 1140 simpler