ast
stringlengths
16
2.64M
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Matrix}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){matrixStats}<LEND>[assign](){<-}<LSEP>[](symbol){date_csv}<LSEP>[litteral](str){../input/train_date.csv}<LEND>[assign](){<-}<LSEP>[](symbol){numeric_csv}<LSEP>[litteral](str){../input/train_numeric.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test_date_csv}<LSEP>[litteral](str){../input/test_date.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test_numeric_csv}<LSEP>[litteral](str){../input/test_numeric.csv}<LEND>[assign](){<-}<LSEP>[](symbol){number_of_chunks}<LSEP>[litteral](real){20.000000}<LEND>[assign](){<-}<LSEP>[](symbol){n_train}<LSEP>[litteral](real){1183747.000000}<LEND>[assign](){<-}<LSEP>[](symbol){n_test}<LSEP>[litteral](real){1183748.000000}<LEND>[assign](){<-}<LSEP>[](symbol){numeric_features}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Id}<LSEP>[argument 1; litteral](str){L1_S24_F1604}<LSEP>[argument 2; litteral](str){L1_S24_F1695}<LSEP>[argument 3; litteral](str){L1_S24_F1846}<LSEP>[argument 4; litteral](str){L3_S29_F3407}<LSEP>[argument 5; litteral](str){L3_S32_F3850}<LSEP>[argument 6; litteral](str){L3_S33_F3855}<LSEP>[argument 7; litteral](str){L3_S33_F3865}<LEND>[assign](){<-}<LSEP>[](symbol){date_features}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Id}<LSEP>[argument 1; litteral](str){L3_S30_D3496}<LSEP>[argument 2; litteral](str){L3_S30_D3501}<LSEP>[argument 3; litteral](str){L3_S30_D3506}<LSEP>[argument 4; litteral](str){L3_S32_D3852}<LSEP>[argument 5; litteral](str){L3_S33_D3856}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Extract min date: TRAIN}<LEND>[assign](){<-}<LSEP>[](symbol){dt_final}<LSEP>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){dt_names}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){date_csv}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){date_csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Id}<LEND>[assign](){<-}<LSEP>[](symbol){chunk_size}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n_train}<LSEP>[](symbol){number_of_chunks}<LEND>[control flow](){for}<LSEP>[](symbol){chunk_number}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){number_of_chunks}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dt_chunk}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){date_csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){chunk_size}<LSEP>[](symbol){chunk_number}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){chunk_size}<LEND>[statement 1; call](){}<LSEP>[](symbol){setnames}<LSEP>[](symbol){dt_chunk}<LSEP>[](symbol){dt_names}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dt_dateorder}<LEND>[call](){}<LSEP>[](symbol){data.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt_chunk}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowMins}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt_chunk}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](str){Id}<LEND>[](symbol){F}<LEND>[](symbol){T}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dt_final}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dt_final}<LSEP>[](symbol){dt_dateorder}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dt_final}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){dt_final}<LSEP>[](symbol){dt_dateorder}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Extract min date: TEST}<LEND>[assign](){<-}<LSEP>[](symbol){dt_final_test}<LSEP>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){dt_names}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){test_date_csv}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){test_date_csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Id}<LEND>[assign](){<-}<LSEP>[](symbol){chunk_size}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n_test}<LSEP>[](symbol){number_of_chunks}<LEND>[control flow](){for}<LSEP>[](symbol){chunk_number}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){number_of_chunks}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dt_chunk}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){test_date_csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){chunk_size}<LSEP>[](symbol){chunk_number}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){chunk_size}<LEND>[statement 1; call](){}<LSEP>[](symbol){setnames}<LSEP>[](symbol){dt_chunk}<LSEP>[](symbol){dt_names}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dt_dateorder}<LEND>[call](){}<LSEP>[](symbol){data.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt_chunk}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowMins}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt_chunk}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](str){Id}<LEND>[](symbol){F}<LEND>[](symbol){T}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dt_final_test}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dt_final_test}<LSEP>[](symbol){dt_dateorder}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dt_final_test}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){dt_final_test}<LSEP>[](symbol){dt_dateorder}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Compute Faron features}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){dt_final}<LSEP>[](symbol){dt_final_test}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt_final}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt_final_test}<LEND>[assign](){<-}<LSEP>[](symbol){ord_start_id}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){minDate}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){diffFromStartId}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ord_start_id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){diffFromStartId}<LEND>[](symbol){ord_start_id}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Id}<LEND>[](symbol){ord_start_id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){diffUntilStartId}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ord_start_id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){diffUntilStartId}<LEND>[](symbol){ord_start_id}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Id}<LEND>[](symbol){ord_start_id}<LEND>[argument 1; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){dt_faron_train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_train}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){dt_faron_test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n_train}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dt}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Load methods for computing MCC}<LEND>[assign](){<-}<LSEP>[](symbol){mcc}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y_true}<LSEP>[](symbol){y_prob}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){DT}<LEND>[call](){}<LSEP>[](symbol){data.table}<LSEP>[](symbol){y_true}<LSEP>[](symbol){y_prob}<LSEP>[argument 2; litteral](str){y_prob}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nump}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){y_true}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){numn}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y_true}<LEND>[](symbol){nump}<LEND>[statement 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DT}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){tn_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){y_true}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DT}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){fp_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){y_true}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DT}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){fn_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){numn}<LSEP>[](symbol){tn_v}<LEND>[statement 6; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DT}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){tp_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nump}<LSEP>[](symbol){fp_v}<LEND>[statement 7; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DT}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){tp_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nump}<LSEP>[](symbol){fp_v}<LEND>[statement 8; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DT}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){mcc_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){tp_v}<LSEP>[](symbol){tn_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){fp_v}<LSEP>[](symbol){fn_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tp_v}<LSEP>[](symbol){fp_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tp_v}<LSEP>[](symbol){fn_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tn_v}<LSEP>[](symbol){fp_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tn_v}<LSEP>[](symbol){fn_v}<LEND>[statement 9; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DT}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){mcc_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.finite}<LSEP>[](symbol){mcc_v}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){mcc_v}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){DT}<LSEP>[argument 1; litteral](str){mcc_v}<LEND>[assign](){<-}<LSEP>[](symbol){mcc_eval}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y_prob}<LSEP>[](symbol){dtrain}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y_true}<LEND>[call](){}<LSEP>[](symbol){getinfo}<LSEP>[](symbol){dtrain}<LSEP>[argument 1; litteral](str){label}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){best_mcc}<LEND>[call](){}<LSEP>[](symbol){mcc}<LSEP>[](symbol){y_true}<LSEP>[](symbol){y_prob}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){MCC}<LSEP>[](symbol){best_mcc}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Train model}<LEND>[assign](){<-}<LSEP>[](symbol){dt_date}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){date_csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){date_features}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){numeric_csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){numeric_features}<LSEP>[argument 1; litteral](str){Response}<LEND>[assign](){<-}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Id}<LEND>[assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Response}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){Id}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){Response}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt_date}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){Id}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[control flow](){for}<LSEP>[](symbol){col}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dt}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){col_mean}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dt}<LSEP>[](symbol){col}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){set}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dt}<LSEP>[](symbol){col}<LEND>[](symbol){col}<LSEP>[](symbol){col_mean}<LEND>[control flow](){for}<LSEP>[](symbol){col}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dt_date}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){col_mean}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dt_date}<LSEP>[](symbol){col}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){set}<LSEP>[](symbol){dt_date}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dt_date}<LSEP>[](symbol){col}<LEND>[](symbol){col}<LSEP>[](symbol){col_mean}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){dt}<LSEP>[](symbol){dt_date}<LSEP>[](symbol){dt_faron_train}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt_date}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt_faron_train}<LEND>[assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){Matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){dt}<LEND>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt}<LEND>[assign](){<-}<LSEP>[](symbol){n_folds}<LSEP>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[](symbol){folds}<LEND>[call](){}<LSEP>[](symbol){createFolds}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){Y}<LEND>[](symbol){n_folds}<LEND>[assign](){<-}<LSEP>[](symbol){valid}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){folds}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){valid}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](real){0.005000}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){3.000000}<LSEP>[argument 4; litteral](real){0.800000}<LSEP>[argument 5; litteral](real){0.800000}<LSEP>[argument 6; litteral](real){0.005000}<LSEP>[](symbol){mcc_eval}<LSEP>[argument 8; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){dmodel}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){model}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){model}<LEND>[assign](){<-}<LSEP>[](symbol){dvalid}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){valid}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){valid}<LEND>[assign](){<-}<LSEP>[](symbol){xgb_model}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){dmodel}<LSEP>[](symbol){param}<LSEP>[argument 2; litteral](real){300.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dmodel}<LSEP>[](symbol){dvalid}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){xgb_model}<LSEP>[](symbol){dvalid}<LEND>[assign](){<-}<LSEP>[](symbol){matt}<LEND>[call](){}<LSEP>[](symbol){data.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.990000}<LSEP>[argument 1; litteral](real){0.999900}<LSEP>[argument 2; litteral](real){0.000100}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){matt}<LSEP>[](symbol){scores}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){matt}<LSEP>[](symbol){thresh}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){mcc}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){valid}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){quantile}<LSEP>[](symbol){pred}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){threshold}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){matt}<LSEP>[](symbol){thresh}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){matt}<LSEP>[](symbol){scores}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){matt}<LSEP>[](symbol){scores}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Run model on test set}<LEND>[assign](){<-}<LSEP>[](symbol){dt_date}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){test_date_csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){date_features}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){test_numeric_csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){numeric_features}<LEND>[assign](){<-}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){Id}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt_date}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){Id}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[control flow](){for}<LSEP>[](symbol){col}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dt}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){col_mean}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dt}<LSEP>[](symbol){col}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){set}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dt}<LSEP>[](symbol){col}<LEND>[](symbol){col}<LSEP>[](symbol){col_mean}<LEND>[control flow](){for}<LSEP>[](symbol){col}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dt_date}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){col_mean}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dt_date}<LSEP>[](symbol){col}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){set}<LSEP>[](symbol){dt_date}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dt_date}<LSEP>[](symbol){col}<LEND>[](symbol){col}<LSEP>[](symbol){col_mean}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){dt}<LSEP>[](symbol){dt_date}<LSEP>[](symbol){dt_faron_test}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt_date}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt_faron_test}<LEND>[assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){Matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){dt}<LEND>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dt}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){xgb_model}<LSEP>[](symbol){X}<LEND>[assign](){<-}<LSEP>[](symbol){predicted_response}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){quantile}<LSEP>[](symbol){pred}<LSEP>[](symbol){threshold}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){data.table}<LSEP>[](symbol){Id}<LSEP>[](symbol){predicted_response}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Store prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){dt}<LSEP>[argument 1; litteral](str){submission.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidytext}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ROCR}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/spooky-author-identif...}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){sentence_id}<LSEP>[argument 1; litteral](str){full_sentence}<LSEP>[argument 2; litteral](str){author_id}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){terms}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){unnest_tokens}<LSEP>[](symbol){word}<LSEP>[](symbol){full_sentence}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){[^[:alpha:]*]}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){tbl_df}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){terms}<LEND>[assign](){<-}<LSEP>[](symbol){wordfreqs}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){terms}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){wordfreqs}<LEND>[assign](){<-}<LSEP>[](symbol){wordfreqs_author}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){terms}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){word}<LSEP>[](symbol){author_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){left_join}<LSEP>[](symbol){wordfreqs}<LSEP>[argument 1; litteral](str){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){desc}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){wordfreqs_author}<LEND>[assign](){<-}<LSEP>[](symbol){top}<LSEP>[litteral](real){3000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){uniquewords_author}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){wordfreqs_author}<LEND>[argument 1; call](){}<LSEP>[](symbol){spread}<LSEP>[](symbol){author_id}<LSEP>[](symbol){n}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){EAP}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){HPL}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){MWS}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){flag}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 1; call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){top}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){uniquewords_author}<LEND>[assign](){<-}<LSEP>[](symbol){dtm}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){terms}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wordfreqs}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){top}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){uniquewords_author}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){top}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){sentence_id}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){spread}<LSEP>[](symbol){word}<LSEP>[](symbol){n}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[argument 1; call](){}<LSEP>[](symbol){tbl_df}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){dtm}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){left_join}<LSEP>[](symbol){dtm}<LSEP>[argument 1; litteral](str){sentence_id}<LEND>[assign](){<-}<LSEP>[](symbol){frequent_words}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wordfreqs}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){top}<LEND>[assign](){<-}<LSEP>[](symbol){unique_words}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[](symbol){uniquewords_author}<LEND>[assign](){<-}<LSEP>[](symbol){all_words}<LEND>[call](){}<LSEP>[](symbol){union}<LSEP>[](symbol){frequent_words}<LSEP>[](symbol){unique_words}<LEND>[assign](){<-}<LSEP>[](symbol){new_names}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[](symbol){all_words}<LEND>[argument 1; litteral](str){_}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[](symbol){all_words}<LEND>[](symbol){new_names}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){new_names}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){df}<LEND>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[](symbol){frequent_words}<LEND>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[](symbol){unique_words}<LEND>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){EAP}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){author_id}<LEND>[argument 1; litteral](str){EAP}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){HPL}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){author_id}<LEND>[argument 1; litteral](str){HPL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){MWS}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){author_id}<LEND>[argument 1; litteral](str){MWS}<LEND>[assign](){<-}<LSEP>[](symbol){perform}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/rocvalues/spooky_feat...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){perform}<LEND>[call](){}<LSEP>[](symbol){gather}<LSEP>[](symbol){perform}<LSEP>[](symbol){dataset}<LSEP>[](symbol){roc}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){model_size}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){feature_set}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){author}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){perform}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){perform}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){model_size}<LSEP>[](symbol){roc}<LSEP>[](symbol){feature_set}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 1; call](){}<LSEP>[](symbol){stat_smooth}<LSEP>[argument 0; litteral](str){lm}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){dataset}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){perform}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){model_size}<LSEP>[](symbol){roc}<LSEP>[](symbol){dataset}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 1; call](){}<LSEP>[](symbol){stat_smooth}<LSEP>[argument 0; litteral](str){lm}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){feature_set}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){perform}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){model_size}<LSEP>[](symbol){roc}<LSEP>[](symbol){dataset}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 1; call](){}<LSEP>[](symbol){stat_smooth}<LSEP>[argument 0; litteral](str){lm}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){author}<LSEP>[](symbol){feature_set}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){perform}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dataset}<LSEP>[argument 1; litteral](str){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){roc}<LEND>[argument 1; call](){}<LSEP>[](symbol){top_n}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[](symbol){roc}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){reshape}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){reshape2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){h2o}<LEND>[assign](){<-}<LSEP>[](symbol){train_Full}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test_Full}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[](symbol){result_final}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[assign](){=}<LSEP>[](symbol){numTrees}<LSEP>[litteral](real){30.000000}<LEND>[assign](){=}<LSEP>[](symbol){x_out}<LSEP>[litteral](real){62.500000}<LEND>[assign](){=}<LSEP>[](symbol){y_out}<LSEP>[litteral](real){100.000000}<LEND>[control flow](){for}<LSEP>[](symbol){y_out}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){97.500000}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){2.500000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_Full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_Full}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){x_out}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_Full}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x_out}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_Full}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y_out}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_Full}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y_out}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_Full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_Full}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){x_out}<LEND>[argument 1; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_Full}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x_out}<LSEP>[argument 1; litteral](real){2.500000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_Full}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){y_out}<LEND>[argument 1; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_Full}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y_out}<LSEP>[argument 1; litteral](real){2.500000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Hr}<LEND>[call](){}<LSEP>[](symbol){%%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){time}<LEND>[argument 1; litteral](real){60.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Day}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LEND>[argument 0; call](){}<LSEP>[](symbol){trunc}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){time}<LEND>[argument 1; litteral](real){60.000000}<LEND>[argument 1; litteral](real){24.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Days}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LEND>[argument 0; call](){}<LSEP>[](symbol){trunc}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){time}<LEND>[argument 1; litteral](real){1440.000000}<LEND>[argument 1; litteral](real){7.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Hr}<LEND>[call](){}<LSEP>[](symbol){%%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){time}<LEND>[argument 1; litteral](real){60.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Day}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LEND>[argument 0; call](){}<LSEP>[](symbol){trunc}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){time}<LEND>[argument 1; litteral](real){60.000000}<LEND>[argument 1; litteral](real){24.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Days}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LEND>[argument 0; call](){}<LSEP>[](symbol){trunc}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){time}<LEND>[argument 1; litteral](real){1440.000000}<LEND>[argument 1; litteral](real){7.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){place_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){head}<LEND>[argument 0; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){place_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){place_id}<LEND>[](symbol){Freq}<LEND>[argument 1; litteral](real){10.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){desc}<LSEP>[](symbol){Freq}<LEND>[argument 1; litteral](real){1000.000000}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){place_id}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){place_id}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){features}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){rf}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){place_id}<LSEP>[](symbol){.}<LEND>[](symbol){train}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){numTrees}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rf}<LSEP>[](symbol){test}<LEND>[](symbol){votes}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){row_id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){row_id}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){melt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){result}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](str){row_id}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){arrange}<LSEP>[](symbol){result}<LSEP>[](symbol){row_id}<LEND>[argument 2; call](){}<LSEP>[](symbol){desc}<LSEP>[](symbol){value}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){result}<LSEP>[](symbol){row_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){variable}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](str){ }<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){place_id}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){p}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){X}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){place_id}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){result_final}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){result_final}<LSEP>[](symbol){result}<LEND>[statement 20; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){result_final}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){row_id}<LSEP>[argument 1; litteral](str){place_id}<LEND>[statement 21; call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){result_final}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Test_result.csv}<LEND>[statement 22; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Test_result_}<LSEP>[](symbol){x_out}<LSEP>[argument 2; litteral](str){_}<LSEP>[](symbol){y_out}<LSEP>[argument 4; litteral](str){.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){MASS}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){ggthemes}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SibSp}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SibSp}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Parch}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Parch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Cabin}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SibSp}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SibSp}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Parch}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Parch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Cabin}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){FamilyName}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){^(.*),.*}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){FamilyName}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){^(.*),.*}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.*, )|(\\..*)}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.*, )|(\\..*)}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[](symbol){rare_titles}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Capt}<LSEP>[argument 1; litteral](str){Col}<LSEP>[argument 2; litteral](str){Don}<LSEP>[argument 3; litteral](str){Dona}<LSEP>[argument 4; litteral](str){Dr}<LSEP>[argument 5; litteral](str){Jonkheer}<LSEP>[argument 6; litteral](str){Lady}<LSEP>[argument 7; litteral](str){Major}<LSEP>[argument 8; litteral](str){Rev}<LSEP>[argument 9; litteral](str){the Countess}<LSEP>[argument 10; litteral](str){Sir}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Ms}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mme}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[](symbol){rare_titles}<LEND>[litteral](str){Rare Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Ms}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mme}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[](symbol){rare_titles}<LEND>[litteral](str){Rare Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[](symbol){fill_age_by_title}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){title}<LSEP>[](symbol){dataset}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dataset}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dataset}<LSEP>[](symbol){Title}<LEND>[](symbol){title}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dataset}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Master}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Master}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Miss}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Miss}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mr}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Mr}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mrs}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Mrs}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Rare Title}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Rare Title}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Master}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Master}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Miss}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Miss}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mr}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Mr}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mrs}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Mrs}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Rare Title}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){fill_age_by_title}<LSEP>[argument 0; litteral](str){Rare Title}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){FamilySize}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Parch}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SibSp}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){FamilySize}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Parch}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SibSp}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Sex}<LSEP>[](symbol){Pclass}<LEND>[](symbol){Age}<LEND>[](symbol){FamilySize}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){Title}<LEND>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){step}<LEND>[call](){}<LSEP>[](symbol){stepAIC}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](str){both}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){step}<LSEP>[](symbol){anova}<LEND>[assign](){<-}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Sex}<LSEP>[](symbol){Pclass}<LEND>[](symbol){FamilySize}<LEND>[](symbol){Fare}<LEND>[](symbol){Title}<LEND>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){model}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){model}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submit}<LSEP>[argument 1; litteral](str){gender_submission.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){F}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LEND>[argument 0; call](){}<LSEP>[](symbol){ls}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){data.table}<LEND>[assign](){<-}<LSEP>[](symbol){label_train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/gender_age_train.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){character}<LSEP>[argument 1; litteral](str){character}<LSEP>[argument 2; litteral](str){integer}<LSEP>[argument 3; litteral](str){character}<LEND>[assign](){<-}<LSEP>[](symbol){label_test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/gender_age_test.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){character}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label_test}<LSEP>[](symbol){gender}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label_test}<LSEP>[](symbol){age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label_test}<LSEP>[](symbol){group}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){label}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){label_train}<LSEP>[](symbol){label_test}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){label}<LSEP>[](symbol){device_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){label_test}<LSEP>[](symbol){label_train}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){brand}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/phone_brand_device_mo...}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){character}<LSEP>[argument 1; litteral](str){character}<LSEP>[argument 2; litteral](str){character}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){brand}<LSEP>[](symbol){device_id}<LEND>[assign](){<-}<LSEP>[](symbol){brand0}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){brand}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){brand0}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){brand0}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){brand0}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){brand2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){brand0}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){brand0}<LSEP>[](symbol){device_id}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){label1}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){label}<LSEP>[](symbol){brand2}<LSEP>[argument 2; litteral](str){device_id}<LSEP>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){brand}<LSEP>[](symbol){brand0}<LSEP>[](symbol){brand2}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){events}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/events.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){character}<LSEP>[argument 1; litteral](str){character}<LSEP>[argument 2; litteral](str){character}<LSEP>[argument 3; litteral](str){numeric}<LSEP>[argument 4; litteral](str){numeric}<LEND>[call](){}<LSEP>[](symbol){setkeyv}<LSEP>[](symbol){events}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){device_id}<LSEP>[argument 1; litteral](str){event_id}<LEND>[assign](){<-}<LSEP>[](symbol){event_app}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/app_events.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){character}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){event_app}<LSEP>[](symbol){event_id}<LEND>[assign](){<-}<LSEP>[](symbol){events}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){events}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){device_id}<LSEP>[](symbol){event_id}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){event_apps}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){event_app}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){app_id}<LEND>[argument 1; litteral](str){,}<LEND>[argument 3; litteral](str){event_id}<LEND>[assign](){<-}<LSEP>[](symbol){device_event_apps}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){events}<LSEP>[](symbol){event_apps}<LSEP>[argument 2; litteral](str){event_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){events}<LSEP>[](symbol){event_app}<LSEP>[](symbol){event_apps}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){f_split_paste}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](str){,}<LEND>[assign](){<-}<LSEP>[](symbol){device_apps}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){device_event_apps}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){f_split_paste}<LSEP>[](symbol){apps}<LEND>[argument 3; litteral](str){device_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){device_event_apps}<LSEP>[](symbol){f_split_paste}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){device_apps}<LSEP>[](symbol){apps}<LEND>[argument 1; litteral](str){,}<LEND>[assign](){<-}<LSEP>[](symbol){device_apps}<LEND>[call](){}<LSEP>[](symbol){data.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){device_apps}<LSEP>[](symbol){device_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){tmp}<LSEP>[](symbol){length}<LEND>[argument 1; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tmp}<LEND>[assign](){<-}<LSEP>[](symbol){d1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){label1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){device_id}<LSEP>[](symbol){phone_brand}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){phone_brand}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){d2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){label1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){device_id}<LSEP>[](symbol){device_model}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_model}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){d3}<LSEP>[](symbol){device_apps}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){device_apps}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){phone_brand}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){phone_brand:}<LSEP>[](symbol){phone_brand}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d2}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){device_model}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){device_model:}<LSEP>[](symbol){device_model}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d3}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){app_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){app_id:}<LSEP>[](symbol){app_id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){d1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){d2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){d3}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){device_id}<LSEP>[argument 1; litteral](str){feature_name}<LEND>[assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){d1}<LSEP>[](symbol){d2}<LSEP>[](symbol){d3}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){d1}<LSEP>[](symbol){d2}<LSEP>[](symbol){d3}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){Matrix}<LEND>[assign](){<-}<LSEP>[](symbol){ii}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){device_id}<LEND>[assign](){<-}<LSEP>[](symbol){jj}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){feature_name}<LEND>[assign](){<-}<LSEP>[](symbol){id_i}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){device_id}<LEND>[](symbol){ii}<LEND>[assign](){<-}<LSEP>[](symbol){id_j}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){feature_name}<LEND>[](symbol){jj}<LEND>[assign](){<-}<LSEP>[](symbol){id_ij}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){id_i}<LSEP>[](symbol){id_j}<LEND>[assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){Matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ii}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){jj}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ii}<LSEP>[](symbol){jj}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){M}<LSEP>[](symbol){id_ij}<LEND>[litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){ii}<LSEP>[](symbol){jj}<LSEP>[](symbol){id_i}<LSEP>[](symbol){id_j}<LSEP>[](symbol){id_ij}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_id}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){M}<LSEP>[](symbol){label1}<LEND>[assign](){<-}<LSEP>[](symbol){x_train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){tmp_cnt_train}<LEND>[call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){x_train}<LEND>[assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp_cnt_train}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp_cnt_train}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x_train}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){x_train}<LSEP>[](symbol){tmp_cnt_train}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){group_name}<LEND>[call](){}<LSEP>[](symbol){na.omit}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){idx_train}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){idx_test}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){train_data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){idx_train}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test_data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){idx_test}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){train_label}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){idx_train}<LEND>[](symbol){group_name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test_label}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){idx_test}<LEND>[](symbol){group_name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){train_data}<LSEP>[](symbol){train_label}<LSEP>[argument 2; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){dtest}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){test_data}<LSEP>[](symbol){test_label}<LSEP>[argument 2; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){gblinear}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group_name}<LEND>[argument 2; litteral](str){multi:softprob}<LSEP>[argument 3; litteral](str){mlogloss}<LSEP>[argument 4; litteral](real){0.010000}<LSEP>[argument 5; litteral](real){5.000000}<LSEP>[argument 6; litteral](real){0.000000}<LSEP>[argument 7; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){ntree}<LSEP>[litteral](real){330.000000}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){114.000000}<LEND>[assign](){<-}<LSEP>[](symbol){fit_xgb}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){dtrain}<LSEP>[](symbol){ntree}<LSEP>[](symbol){watchlist}<LSEP>[argument 4; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit_xgb}<LSEP>[](symbol){dtest}<LEND>[assign](){<-}<LSEP>[](symbol){pred_detail}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group_name}<LEND>[assign](){<-}<LSEP>[](symbol){res_submit}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){id}<LSEP>[](symbol){idx_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){pred_detail}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){res_submit}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){device_id}<LSEP>[](symbol){group_name}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){res_submit}<LSEP>[argument 1; litteral](str){submit_v0_7_1.csv}<LSEP>[](symbol){F}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){openNLP}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){NLP}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){RecordLinkage}<LEND>[assign](){<-}<LSEP>[](symbol){train_data}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){idNA}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Ref}<LEND>[assign](){<-}<LSEP>[](symbol){validIDs}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){idNA}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){TotalNA}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){validIDs}<LEND>[call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){validIDs}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){idNA}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){validIDs}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){validIDs}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){Expected}<LSEP>[argument 1; litteral](real){70.000000}<LEND>[assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){train}<LSEP>[](symbol){Id}<LSEP>[](symbol){radardist_km}<LSEP>[](symbol){Ref}<LSEP>[](symbol){RefComposite}<LSEP>[](symbol){RhoHV}<LSEP>[](symbol){Zdr}<LSEP>[](symbol){Kdp}<LSEP>[](symbol){Expected}<LEND>[assign](){<-}<LSEP>[](symbol){temp2}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){temp}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){radardist_km}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){Ref}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){RefComposite}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 3; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){RhoHV}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){Zdr}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 5; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){Kdp}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 6; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){Expected}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){temp2}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){radardist_km}<LEND>[](symbol){varRef}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_jitter}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LSEP>[argument 0; litteral](str){orange}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Variance of Reflectivity by Ra...}<LSEP>[argument 1; litteral](str){Radar Distance (Km)}<LSEP>[argument 2; litteral](str){Variance(Reflectivity)}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){temp2}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){radardist_km}<LEND>[](symbol){varRefComposite}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_jitter}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LSEP>[argument 0; litteral](str){orange}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Variance of Composite Reflecti...}<LSEP>[argument 1; litteral](str){Radar Distance (Km)}<LSEP>[argument 2; litteral](str){Variance(Composite Reflectivity)}
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){arules}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){arulesViz}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){knitr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyverse}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){DT}<LEND>[assign](){=}<LSEP>[](symbol){orders}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/orders.csv}<LEND>[assign](){=}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/products.csv}<LEND>[assign](){=}<LSEP>[](symbol){order_products}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/order_products__train...}<LEND>[assign](){=}<LSEP>[](symbol){order_products_prior}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/order_products__prior...}<LEND>[assign](){=}<LSEP>[](symbol){aisles}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/aisles.csv}<LEND>[assign](){=}<LSEP>[](symbol){departments}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/departments.csv}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){inf}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){orders}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){orders}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){order_products}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){order_products}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){products}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){order_products_prior}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){order_products_prior}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){aisles}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){aisles}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){departments}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){departments}<LEND>[assign](){=}<LSEP>[](symbol){orders}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){order_hour_of_day}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){eval_set}<LEND>[assign](){=}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){products}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){product_name}<LEND>[assign](){=}<LSEP>[](symbol){aisles}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){aisles}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){aisle}<LEND>[assign](){=}<LSEP>[](symbol){departments}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){departments}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){department}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){orders}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){order_products_prior}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){order_products}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){aisles}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){departments}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){orders}<LSEP>[](symbol){days_since_prior_order}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){datatable}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){days_since_prior_order}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){cornflowerblue}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){eval_set}<LSEP>[](symbol){eval_set}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){..count..}<LEND>[argument 1; litteral](str){count}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){30.000000}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){order_number}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){cornflowerblue}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){eval_set}<LSEP>[argument 1; litteral](str){prior}<LEND>[argument 1; call](){}<LSEP>[](symbol){count}<LSEP>[](symbol){order_number}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){order_number}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LSEP>[argument 0; litteral](str){cornflowerblue}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](str){red}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){eval_set}<LSEP>[argument 1; litteral](str){prior}<LEND>[argument 1; call](){}<LSEP>[](symbol){count}<LSEP>[](symbol){days_since_prior_order}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){days_since_prior_order}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LSEP>[argument 0; litteral](str){cornflowerblue}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](str){red}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){days_since_prior_order}<LSEP>[](symbol){order_number}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_smooth}<LSEP>[argument 0; litteral](str){lm}<LSEP>[argument 1; litteral](str){darkgrey}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){days_since_prior_order}<LSEP>[argument 1; litteral](str){order_number}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){418.000000}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submit}<LSEP>[argument 1; litteral](str){theyallperish.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submit}<LSEP>[argument 1; litteral](str){allmenperish.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Child}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Child}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){18.000000}<LEND>[litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Child}<LSEP>[](symbol){Sex}<LEND>[](symbol){train}<LSEP>[](symbol){sum}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Child}<LSEP>[](symbol){Sex}<LEND>[](symbol){train}<LSEP>[](symbol){length}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Child}<LSEP>[](symbol){Sex}<LEND>[](symbol){train}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare2}<LEND>[litteral](str){30+}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare2}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){30.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){20.000000}<LEND>[litteral](str){20-30}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare2}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){10.000000}<LEND>[litteral](str){10-20}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare2}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){10.000000}<LEND>[litteral](str){<10}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Fare2}<LSEP>[](symbol){Pclass}<LEND>[](symbol){Sex}<LEND>[](symbol){train}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){20.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submit}<LSEP>[argument 1; litteral](str){allmenandsomewomenperish.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart}<LEND>[assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){train}<LSEP>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){text}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){install.packages}<LSEP>[argument 0; litteral](str){rpart.plot}<LEND>[call](){}<LSEP>[](symbol){install.packages}<LSEP>[argument 0; litteral](str){RColorBrewer}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart.plot}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){RColorBrewer}<LEND>[call](){}<LSEP>[](symbol){fancyRpartPlot}<LSEP>[](symbol){fit}<LEND>[assign](){<-}<LSEP>[](symbol){Prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LSEP>[](symbol){test}<LSEP>[argument 2; litteral](str){class}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){Prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submit}<LSEP>[argument 1; litteral](str){myfirstdtree.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){train}<LSEP>[argument 2; litteral](str){class}<LEND>[argument 3; call](){}<LSEP>[](symbol){rpart.control}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){fancyRpartPlot}<LSEP>[](symbol){fit}<LEND>[assign](){<-}<LSEP>[](symbol){Prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LSEP>[](symbol){test}<LSEP>[argument 2; litteral](str){class}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){Prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submit}<LSEP>[argument 1; litteral](str){myseconddtree.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){train}<LSEP>[argument 2; litteral](str){class}<LEND>[argument 3; call](){}<LSEP>[](symbol){rpart.control}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[argument 1; litteral](real){0.005000}<LEND>[assign](){<-}<LSEP>[](symbol){new.fit}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){prp}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){fancyRpartPlot}<LSEP>[](symbol){new.fit}<LEND>[assign](){<-}<LSEP>[](symbol){Prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){new.fit}<LSEP>[](symbol){test}<LSEP>[argument 2; litteral](str){class}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){Prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submit}<LSEP>[argument 1; litteral](str){mythirddtree.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare2}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Child}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){combi}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){[,.]}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Mme}<LSEP>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Mlle}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Capt}<LSEP>[argument 1; litteral](str){Don}<LSEP>[argument 2; litteral](str){Major}<LSEP>[argument 3; litteral](str){Sir}<LEND>[litteral](str){Sir}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Dona}<LSEP>[argument 1; litteral](str){Lady}<LSEP>[argument 2; litteral](str){the Countess}<LSEP>[argument 3; litteral](str){Jonkheer}<LEND>[litteral](str){Lady}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilySize}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Matrix}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ID}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){test.id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){tc}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){train.y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){TARGET}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){TARGET}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){count0}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){n0}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){count0}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){n0}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){count0}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n## Removing the constants fe...}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](str){is constant in train. We delet...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[litteral](NULL){NULL}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){features_pair}<LEND>[call](){}<LSEP>[](symbol){combn}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){toRemove}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[control flow](){for}<LSEP>[](symbol){pair}<LSEP>[](symbol){features_pair}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pair}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){f2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pair}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){f1}<LSEP>[](symbol){toRemove}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){f2}<LSEP>[](symbol){toRemove}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f2}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){f1}<LSEP>[argument 1; litteral](str){and}<LSEP>[](symbol){f2}<LSEP>[argument 3; litteral](str){are equals.\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){toRemove}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){toRemove}<LSEP>[](symbol){f2}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[](symbol){toRemove}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var38}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var38}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var38}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var38}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[assign](){<-}<LSEP>[](symbol){tc}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Setting min-max lims on test data}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lim}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[](symbol){lim}<LEND>[](symbol){f}<LEND>[](symbol){lim}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lim}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[](symbol){lim}<LEND>[](symbol){f}<LEND>[](symbol){lim}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){TARGET}<LEND>[](symbol){train.y}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){sparse.model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){TARGET}<LSEP>[](symbol){.}<LEND>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){train}<LSEP>[](symbol){train.y}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](str){gbtree}<LSEP>[argument 2; litteral](str){auc}<LSEP>[argument 3; litteral](real){0.020205}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){0.681500}<LSEP>[argument 6; litteral](real){0.701000}<LEND>[assign](){<-}<LSEP>[](symbol){clf}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){dtrain}<LSEP>[argument 2; litteral](real){560.000000}<LSEP>[argument 3; litteral](real){10.000000}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[](symbol){watchlist}<LSEP>[argument 6; litteral](logical){TRUE}<LEND>[](symbol){feature.names}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){TARGET}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){sparse.model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){TARGET}<LSEP>[](symbol){.}<LEND>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){clf}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){clf}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){AUC}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){actual}<LSEP>[](symbol){predicted}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pROC}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){auc}<LEND>[call](){}<LSEP>[](symbol){auc}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){actual}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){predicted}<LEND>[](symbol){auc}<LEND>[call](){}<LSEP>[](symbol){AUC}<LSEP>[](symbol){train.y}<LSEP>[](symbol){pred}<LEND>[assign](){=}<LSEP>[](symbol){nv}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var33}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var33_ult3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var44_hace2}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var44_hace3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var33_ult1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var44_ult1}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nv}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var15}<LEND>[argument 1; litteral](real){23.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var5_hace2}<LEND>[argument 1; litteral](real){160000.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var33}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var38}<LEND>[argument 1; litteral](real){3988596.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var21}<LEND>[argument 1; litteral](real){7500.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var30}<LEND>[argument 1; litteral](real){9.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var13_0}<LEND>[argument 1; litteral](real){6.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var33_0}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){imp_ent_var16_ult1}<LEND>[argument 1; litteral](real){51003.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){imp_op_var39_comer_ult3}<LEND>[argument 1; litteral](real){13184.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var5_ult3}<LEND>[argument 1; litteral](real){108251.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var15}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var45_hace3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var45_ult3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var36}<LEND>[argument 1; litteral](real){24.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var5}<LEND>[argument 1; litteral](real){137615.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var8}<LEND>[argument 1; litteral](real){60099.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var15}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var45_hace3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var45_ult3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var36}<LEND>[argument 1; litteral](real){24.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var14}<LEND>[argument 1; litteral](real){19053.780000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var17}<LEND>[argument 1; litteral](real){288188.970000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var26}<LEND>[argument 1; litteral](real){10381.290000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var13_largo_0}<LEND>[argument 1; litteral](real){3.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){imp_op_var40_comer_ult1}<LEND>[argument 1; litteral](real){3639.870000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var13_largo_ult1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_meses_var13_largo_ult3}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var20_0}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var13_largo}<LEND>[argument 1; litteral](real){150000.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){preds}<LSEP>[argument 1; litteral](real){0.001000}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){test.id}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){saving the submission file\n}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){submission.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){Training set has %d rows and %...}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){Test set has %d rows and %d co...}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){test}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){scales}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){mice}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){caret}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){full}<LEND>[call](){}<LSEP>[](symbol){bind_rows}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){full}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.*, )|(\\..*)}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[](symbol){rare_title}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Dona}<LSEP>[argument 1; litteral](str){Lady}<LSEP>[argument 2; litteral](str){the Countess}<LSEP>[argument 3; litteral](str){Capt}<LSEP>[argument 4; litteral](str){Col}<LSEP>[argument 5; litteral](str){Don}<LSEP>[argument 6; litteral](str){Dr}<LSEP>[argument 7; litteral](str){Major}<LSEP>[argument 8; litteral](str){Rev}<LSEP>[argument 9; litteral](str){Sir}<LSEP>[argument 10; litteral](str){Jonkheer}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Ms}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mme}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[](symbol){rare_title}<LEND>[litteral](str){Rare Title}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Surname}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){We have <b>}<LEND>[argument 1; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Surname}<LEND>[argument 2; litteral](str){</b> unique surnames. I would ...}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){head}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Family}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Surname}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 2; litteral](str){_}<LEND>[call](){}<LSEP>[](symbol){head}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Family}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Fsize}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){dodge}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){11.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Family Size}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FsizeD}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){singleton}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FsizeD}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){small}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FsizeD}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 1; litteral](real){4.000000}<LEND>[litteral](str){large}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FsizeD}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Relationship between Family Si...}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){Survival: 0=Dead, 1=Alive}<LSEP>[argument 4; litteral](str){Family Size}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){28.000000}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Deck}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Cabin}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Embarked}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){We will infer their values for...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Fare}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){</b>and<b> $}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Fare}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){</b>respectively and their cla...}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 6; litteral](str){</b>and<b>}<LEND>[argument 7; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Pclass}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 8; litteral](str){</b>. So from where did they e...}<LEND>[assign](){<-}<LSEP>[](symbol){embark_fare}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){PassengerId}<LSEP>[argument 1; litteral](real){62.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){PassengerId}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){embark_fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Embarked}<LSEP>[](symbol){Fare}<LEND>[argument 2; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){80.000000}<LEND>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){dashed}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){dollar_format}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[litteral](str){C}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[argument 1; litteral](real){1044.000000}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](str){3}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){S}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](str){#99d6ff}<LSEP>[argument 1; litteral](real){0.400000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){Fare}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){dashed}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){dollar_format}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){1044.000000}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](str){3}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){S}<LEND>[](symbol){}<LEND>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[](symbol){factor_vars}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){PassengerId}<LSEP>[argument 1; litteral](str){Pclass}<LSEP>[argument 2; litteral](str){Sex}<LSEP>[argument 3; litteral](str){Embarked}<LSEP>[argument 4; litteral](str){Title}<LSEP>[argument 5; litteral](str){Surname}<LSEP>[argument 6; litteral](str){Family}<LSEP>[argument 7; litteral](str){FsizeD}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){factor_vars}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){factor_vars}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){129.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mice_mod}<LEND>[call](){}<LSEP>[](symbol){mice}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){PassengerId}<LSEP>[argument 1; litteral](str){Name}<LSEP>[argument 2; litteral](str){Ticket}<LSEP>[argument 3; litteral](str){Cabin}<LSEP>[argument 4; litteral](str){Family}<LSEP>[argument 5; litteral](str){Surname}<LSEP>[argument 6; litteral](str){Survived}<LEND>[argument 1; litteral](str){rf}<LEND>[assign](){<-}<LSEP>[](symbol){mice_output}<LEND>[call](){}<LSEP>[](symbol){complete}<LSEP>[](symbol){mice_mod}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[](symbol){F}<LSEP>[argument 2; litteral](str){Age: Original Data}<LSEP>[argument 3; litteral](str){darkgreen}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.040000}<LEND>[call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mice_output}<LSEP>[](symbol){Age}<LEND>[](symbol){F}<LSEP>[argument 2; litteral](str){Age: MICE Output}<LSEP>[argument 3; litteral](str){lightgreen}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.040000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mice_output}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Child}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){18.000000}<LEND>[litteral](str){Child}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Child}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){18.000000}<LEND>[litteral](str){Adult}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Child}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Mother}<LEND>[litteral](str){Not Mother}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Mother}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){18.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Miss}<LEND>[litteral](str){Mother}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Mother}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Child}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Child}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Mother}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Mother}<LEND>[call](){}<LSEP>[](symbol){md.pattern}<LSEP>[](symbol){full}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){892.000000}<LSEP>[argument 1; litteral](real){1309.000000}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){nn_model}<LEND>[call](){}<LSEP>[](symbol){avNNet}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){Title}<LEND>[](symbol){FsizeD}<LEND>[](symbol){Child}<LEND>[](symbol){Mother}<LEND>[](symbol){train}<LSEP>[argument 2; litteral](real){10.000000}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){nn_model}<LSEP>[](symbol){test}<LSEP>[argument 2; litteral](str){raw}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggmap}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[assign](){=}<LSEP>[](symbol){town}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/town_state.csv}<LSEP>[argument 1; litteral](str){,}<LEND>[assign](){=}<LSEP>[](symbol){town}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){town}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){town}<LSEP>[argument 1; litteral](real){10.000000}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){jsonlite}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tm}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){SnowballC}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){fromJSON}<LSEP>[argument 0; litteral](str){../input/train.json}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){fromJSON}<LSEP>[argument 0; litteral](str){../input/test.json}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){treatment}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fname}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fname}<LSEP>[](symbol){ingredients}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fname}<LSEP>[](symbol){ingredients}<LEND>[](symbol){tolower}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fname}<LSEP>[](symbol){ingredients}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fname}<LSEP>[](symbol){ingredients}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){-}<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fname}<LSEP>[](symbol){ingredients}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fname}<LSEP>[](symbol){ingredients}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){[^a-z0-9_ ]}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){treatment}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){treatment}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){MyCorpus}<LEND>[call](){}<LSEP>[](symbol){Corpus}<LEND>[argument 0; call](){}<LSEP>[](symbol){VectorSource}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ingredients}<LEND>[assign](){<-}<LSEP>[](symbol){MyCorpus2}<LEND>[call](){}<LSEP>[](symbol){Corpus}<LEND>[argument 0; call](){}<LSEP>[](symbol){VectorSource}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ingredients}<LEND>[assign](){<-}<LSEP>[](symbol){MyCorpus}<LEND>[call](){}<LSEP>[](symbol){tm_map}<LSEP>[](symbol){MyCorpus}<LSEP>[](symbol){stemDocument}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){MyCorpus2}<LEND>[call](){}<LSEP>[](symbol){tm_map}<LSEP>[](symbol){MyCorpus2}<LSEP>[](symbol){stemDocument}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){ingredientsDTM}<LEND>[call](){}<LSEP>[](symbol){DocumentTermMatrix}<LSEP>[](symbol){MyCorpus}<LEND>[assign](){<-}<LSEP>[](symbol){ingredientsDTM2}<LEND>[call](){}<LSEP>[](symbol){DocumentTermMatrix}<LSEP>[](symbol){MyCorpus2}<LEND>[assign](){<-}<LSEP>[](symbol){sparse}<LEND>[call](){}<LSEP>[](symbol){removeSparseTerms}<LSEP>[](symbol){ingredientsDTM}<LSEP>[argument 1; litteral](real){0.980000}<LEND>[assign](){<-}<LSEP>[](symbol){sparse2}<LEND>[call](){}<LSEP>[](symbol){removeSparseTerms}<LSEP>[](symbol){ingredientsDTM2}<LSEP>[argument 1; litteral](real){0.980000}<LEND>[assign](){<-}<LSEP>[](symbol){ingredientsDTM}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){sparse}<LEND>[assign](){<-}<LSEP>[](symbol){ingredientsDTM2}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){sparse2}<LEND>[assign](){<-}<LSEP>[](symbol){trainColumns}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ingredientsDTM}<LEND>[assign](){<-}<LSEP>[](symbol){testColumns}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ingredientsDTM2}<LEND>[assign](){<-}<LSEP>[](symbol){intersect}<LEND>[call](){}<LSEP>[](symbol){intersect}<LSEP>[](symbol){trainColumns}<LSEP>[](symbol){testColumns}<LEND>[assign](){<-}<LSEP>[](symbol){ingredientsDTM}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ingredientsDTM}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){intersect}<LEND>[assign](){<-}<LSEP>[](symbol){ingredientsDTM2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ingredientsDTM2}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){intersect}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ingredientsDTM}<LSEP>[](symbol){cuisine}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){cuisine}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ingredientsDTM}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){-}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ingredientsDTM}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ingredientsDTM2}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){-}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ingredientsDTM2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){forestmodel}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){cuisine}<LSEP>[](symbol){.}<LEND>[](symbol){ingredientsDTM}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){50.000000}<LEND>[assign](){<-}<LSEP>[](symbol){forestPredict}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){forestmodel}<LSEP>[](symbol){ingredientsDTM2}<LSEP>[argument 2; litteral](str){class}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){id}<LEND>[](symbol){forestPredict}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){submission.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Matrix}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){999.000000}<LEND>[assign](){<-}<LSEP>[](symbol){orig.train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){orig.test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){sample.submission}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/sample_submission.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){orig.test}<LSEP>[](symbol){TARGET}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){merged}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){orig.train}<LSEP>[](symbol){orig.test}<LEND>[assign](){<-}<LSEP>[](symbol){feature.train.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){orig.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){feature.train.names}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){merged}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](str){numeric}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){merged}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){merged}<LSEP>[](symbol){f}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){merged}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](str){integer}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){merged}<LSEP>[](symbol){f}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){u}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){merged}<LSEP>[](symbol){f}<LEND>[litteral](NULL){NULL}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){u}<LEND>[argument 1; litteral](real){100.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){merged}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){merged}<LSEP>[](symbol){f}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){merged}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){merged}<LSEP>[](symbol){TARGET}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){merged}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){merged}<LSEP>[](symbol){TARGET}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){^ID$}<LSEP>[](symbol){feature.names}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){^TARGET$}<LSEP>[](symbol){feature.names}<LEND>[assign](){<-}<LSEP>[](symbol){feature.formula}<LEND>[call](){}<LSEP>[](symbol){formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){TARGET ~ }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){feature.names}<LSEP>[argument 1; litteral](str){ + }<LEND>[argument 2; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){indexes}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){0.850000}<LEND>[assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){sparse.model.matrix}<LSEP>[](symbol){feature.formula}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){indexes}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){sparseMatrixColNamesTrain}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){indexes}<LSEP>[argument 2; litteral](str){TARGET}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){data}<LEND>[assign](){<-}<LSEP>[](symbol){dvalid}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){sparse.model.matrix}<LSEP>[](symbol){feature.formula}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){indexes}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){indexes}<LEND>[argument 2; litteral](str){TARGET}<LEND>[assign](){<-}<LSEP>[](symbol){dtest}<LEND>[call](){}<LSEP>[](symbol){sparse.model.matrix}<LSEP>[](symbol){feature.formula}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dvalid}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){gbtree}<LSEP>[argument 1; litteral](str){binary:logistic}<LSEP>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](real){0.025000}<LSEP>[argument 4; litteral](real){0.650000}<LSEP>[argument 5; litteral](real){0.700000}<LEND>[assign](){<-}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){params}<LSEP>[](symbol){dtrain}<LSEP>[argument 2; litteral](real){1000.000000}<LSEP>[argument 3; litteral](real){50.000000}<LSEP>[argument 4; litteral](str){auc}<LSEP>[](symbol){T}<LSEP>[](symbol){watchlist}<LSEP>[argument 7; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){model}<LSEP>[](symbol){dtest}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){xgb_start0303.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){gridExtra}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){corrplot}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){glmnet}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){gridExtra}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){psych}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SalePrice}<LEND>[litteral](logical){NA}<LEND>[assign](){=}<LSEP>[](symbol){hd}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){hd}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){hd}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){hd}<LEND>[assign](){=}<LSEP>[](symbol){all_numeric_variables}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){hd}<LSEP>[](symbol){is.numeric}<LEND>[assign](){=}<LSEP>[](symbol){all_numeric_values}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LSEP>[](symbol){}<LSEP>[](symbol){all_numeric_variables}<LEND>[assign](){=}<LSEP>[](symbol){categoriacal_vars}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){hd}<LSEP>[](symbol){is.factor}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){numeric variables are }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){all_numeric_values}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){categoriacal variables are }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){categoriacal_vars}<LEND>[assign](){=}<LSEP>[](symbol){numeric_cor}<LEND>[call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){all_numeric_values}<LSEP>[argument 1; litteral](str){pairwise.complete.obs}<LEND>[assign](){=}<LSEP>[](symbol){sort_cor}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){numeric_cor}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){SalePrice}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){=}<LSEP>[](symbol){high_correlations}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){sort_cor}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){0.500000}<LEND>[assign](){=}<LSEP>[](symbol){final_num_cor}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){numeric_cor}<LSEP>[](symbol){high_correlations}<LSEP>[](symbol){high_correlations}<LEND>[call](){}<LSEP>[](symbol){corrplot.mixed}<LSEP>[](symbol){final_num_cor}<LSEP>[argument 1; litteral](str){black}<LSEP>[argument 2; litteral](str){lt}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MSZoning}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MSZoning}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Street}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Street}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Alley}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Alley}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LotShape}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LotShape}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LandContour}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LandContour}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Utilities}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Utilities}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LotConfig}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LotConfig}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LandSlope}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LandSlope}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Neighborhood}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Neighborhood}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Condition1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Condition1}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Condition2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Condition2}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BldgType}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BldgType}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){HouseStyle}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){HouseStyle}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){RoofStyle}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){RoofStyle}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){RoofMatl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){RoofMatl}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Exterior1st}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Exterior1st}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Exterior2nd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Exterior2nd}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){ExterQual}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){ExterQual}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){ExterCond}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){ExterCond}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Foundation}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Foundation}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtQual}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtQual}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtCond}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtCond}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtExposure}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtExposure}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFinType1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFinType1}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFinType2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFinType2}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Heating}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Heating}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){HeatingQC}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){HeatingQC}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){CentralAir}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){CentralAir}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Electrical}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Electrical}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){KitchenQual}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){KitchenQual}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){TotRmsAbvGrd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){TotRmsAbvGrd}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Functional}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Functional}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){FireplaceQu}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){FireplaceQu}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageType}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageType}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageFinish}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageFinish}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageQual}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageQual}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageCond}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageCond}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){PavedDrive}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){PavedDrive}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){PoolQC}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){PoolQC}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Fence}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Fence}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SaleType}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SaleType}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MiscFeature}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MiscFeature}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MasVnrType}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MasVnrType}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SaleCondition}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SaleCondition}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){OverallQual}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){OverallQual}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){hd}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Alley}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Alley}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){PoolQC}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){PoolQC}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Fence}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Fence}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MiscFeature}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MiscFeature}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){FireplaceQu}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){FireplaceQu}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LotFrontage}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){LotFrontage}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageType}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageType}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageFinish}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageFinish}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageQual}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageCond}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFinType2}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFinType2}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFinType1}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFinType1}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtExposure}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtCond}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFullBath}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtFullBath}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){BsmtQual}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MasVnrType}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MasVnrType}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MasVnrArea}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){MasVnrArea}<LEND>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){hd}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1442.000000}<LSEP>[argument 1; litteral](real){1443.000000}<LSEP>[argument 2; litteral](real){1444.000000}<LSEP>[argument 3; litteral](real){1445.000000}<LSEP>[argument 4; litteral](real){1446.000000}<LSEP>[argument 5; litteral](real){1447.000000}<LSEP>[argument 6; litteral](real){1448.000000}<LSEP>[argument 7; litteral](real){1449.000000}<LSEP>[argument 8; litteral](real){1450.000000}<LSEP>[argument 9; litteral](real){1451.000000}<LSEP>[argument 10; litteral](real){1452.000000}<LSEP>[argument 11; litteral](real){1453.000000}<LSEP>[argument 12; litteral](real){1454.000000}<LSEP>[argument 13; litteral](real){1455.000000}<LSEP>[argument 14; litteral](real){1456.000000}<LSEP>[argument 15; litteral](real){1457.000000}<LSEP>[argument 16; litteral](real){1458.000000}<LSEP>[argument 17; litteral](real){1459.000000}<LSEP>[argument 18; litteral](real){1460.000000}<LEND>[argument 2; litteral](real){81.000000}<LEND>[litteral](real){180921.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageYrBlt}<LEND>[assign](){=}<LSEP>[](symbol){PriceVSYearBuilt}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){YearBuilt}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){summary}<LSEP>[argument 1; litteral](str){median}<LSEP>[argument 2; litteral](str){blue}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){800000.000000}<LSEP>[argument 2; litteral](real){50000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1870.000000}<LSEP>[argument 1; litteral](real){2010.000000}<LSEP>[argument 2; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){180921.000000}<LEND>[assign](){=}<LSEP>[](symbol){test_sp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){soldyr}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){YrSold}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){summary}<LSEP>[argument 1; litteral](str){median}<LSEP>[argument 2; litteral](str){blue}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){500000.000000}<LSEP>[argument 2; litteral](real){25000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){163000.000000}<LEND>[call](){}<LSEP>[](symbol){grid.arrange}<LSEP>[](symbol){PriceVSYearBuilt}<LSEP>[](symbol){soldyr}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){YearBuilt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){YearBuilt}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){YrSold}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){YrSold}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageYrBlt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageYrBlt}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){YearRemodAdd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){YearRemodAdd}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageYrBlt}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageYrBlt}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){GarageYrBlt}<LEND>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){hd}<LEND>[assign](){=}<LSEP>[](symbol){qq}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){OverallQual}<LEND>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LSEP>[argument 0; litteral](str){blue}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Overall Quality}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){800000.000000}<LSEP>[argument 2; litteral](real){150000.000000}<LEND>[](symbol){qq}<LEND>[assign](){=}<LSEP>[](symbol){sc}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){OverallCond}<LEND>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LSEP>[argument 0; litteral](str){blue}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Condition of Sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){800000.000000}<LSEP>[argument 2; litteral](real){150000.000000}<LEND>[](symbol){sc}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){PoolArea}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){PoolQC}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){qqnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[call](){}<LSEP>[](symbol){qqline}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[assign](){=}<LSEP>[](symbol){log_SalePrice}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){SalePrice}<LEND>[call](){}<LSEP>[](symbol){qqnorm}<LSEP>[](symbol){log_SalePrice}<LEND>[call](){}<LSEP>[](symbol){qqline}<LSEP>[](symbol){log_SalePrice}<LEND>[assign](){=}<LSEP>[](symbol){y_train}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1460.000000}<LEND>[argument 2; litteral](real){79.000000}<LEND>[assign](){=}<LSEP>[](symbol){x_train}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1460.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){78.000000}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y_train}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x_train}<LEND>[assign](){=}<LSEP>[](symbol){x_test}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1461.000000}<LSEP>[argument 1; litteral](real){2919.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){78.000000}<LEND>[assign](){=}<LSEP>[](symbol){y_test}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hd}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1461.000000}<LSEP>[argument 1; litteral](real){2919.000000}<LEND>[argument 2; litteral](real){79.000000}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x_test}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y_test}<LEND>[assign](){=}<LSEP>[](symbol){null}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y_train}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){hd}<LEND>[](symbol){null}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hd}<LSEP>[](symbol){Id}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[](symbol){full}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y_train}<LSEP>[](symbol){x_train}<LEND>[](symbol){hd}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x_train}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x_train}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[](symbol){hpStep}<LEND>[call](){}<LSEP>[](symbol){step}<LSEP>[](symbol){null}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){full}<LEND>[argument 2; litteral](str){both}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){hpStep}<LEND>[assign](){<-}<LSEP>[](symbol){RSS}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hpStep}<LSEP>[](symbol){residuals}<LEND>[assign](){<-}<LSEP>[](symbol){MSE}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){RSS}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hpStep}<LSEP>[](symbol){residuals}<LEND>[assign](){<-}<LSEP>[](symbol){RMSE}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){MSE}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){RMSE}<LEND>[assign](){=}<LSEP>[](symbol){multiple_coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hpStep}<LSEP>[](symbol){coefficients}<LEND>[assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){glmnet}<LSEP>[](symbol){x_train}<LSEP>[](symbol){y_train}<LEND>[assign](){=}<LSEP>[](symbol){cvfit_ridge}<LEND>[call](){}<LSEP>[](symbol){cv.glmnet}<LSEP>[](symbol){x_train}<LSEP>[](symbol){y_train}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){cvfit_ridge}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cvfit_ridge}<LSEP>[](symbol){lambda.min}<LEND>[assign](){=}<LSEP>[](symbol){ridge_coef}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cvfit_ridge}<LSEP>[](symbol){glmnet.fit}<LEND>[](symbol){beta}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cvfit_ridge}<LSEP>[](symbol){glmnet.fit}<LEND>[](symbol){lambda}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cvfit_ridge}<LSEP>[](symbol){lambda.min}<LEND>[assign](){=}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](real){0.067891}<LEND>[assign](){=}<LSEP>[](symbol){yHat}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LSEP>[](symbol){x_train}<LSEP>[argument 2; litteral](real){0.067891}<LEND>[assign](){=}<LSEP>[](symbol){dof}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y_train}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){c}<LEND>[assign](){=}<LSEP>[](symbol){rse}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y_train}<LSEP>[](symbol){yHat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){dof}<LEND>[](symbol){rse}<LEND>[assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){glmnet}<LSEP>[](symbol){x_train}<LSEP>[](symbol){y_train}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){fit}<LSEP>[](symbol){T}<LEND>[assign](){=}<LSEP>[](symbol){cvfit}<LEND>[call](){}<LSEP>[](symbol){cv.glmnet}<LSEP>[](symbol){x_train}<LSEP>[](symbol){y_train}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){lasso_coef}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cvfit}<LSEP>[](symbol){glmnet.fit}<LEND>[](symbol){beta}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cvfit}<LSEP>[](symbol){glmnet.fit}<LEND>[](symbol){lambda}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cvfit}<LSEP>[](symbol){lambda.min}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){cvfit}<LEND>[assign](){=}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](real){0.002556}<LEND>[assign](){=}<LSEP>[](symbol){yHat}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LSEP>[](symbol){x_train}<LSEP>[argument 2; litteral](real){0.002556}<LEND>[assign](){=}<LSEP>[](symbol){dof}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y_train}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){c}<LEND>[assign](){=}<LSEP>[](symbol){rse}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y_train}<LSEP>[](symbol){yHat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){dof}<LEND>[](symbol){rse}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x_test}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x_test}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){yPredict}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LSEP>[](symbol){x_test}<LSEP>[argument 2; litteral](real){0.002556}<LEND>[assign](){=}<LSEP>[](symbol){final_pred}<LEND>[call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){yPredict}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){final_pred}<LEND>[assign](){=}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){data.table}<LSEP>[](symbol){lasso_coef}<LSEP>[](symbol){ridge_coef}<LSEP>[](symbol){multiple_coef}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coef}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){variables}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){hd}<LEND>[assign](){=}<LSEP>[](symbol){coef1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){plot_coef}<LEND>[call](){}<LSEP>[](symbol){melt}<LSEP>[](symbol){coef1}<LSEP>[argument 1; litteral](str){variables}<LSEP>[argument 2; litteral](str){model}<LSEP>[argument 3; litteral](str){coefficient}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){plot_coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){variables}<LSEP>[](symbol){coefficient}<LSEP>[](symbol){model}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_wrap}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){model}<LEND>[argument 1; call](){}<LSEP>[](symbol){guides}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){ggthemes}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){scales}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){mice}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){full}<LEND>[call](){}<LSEP>[](symbol){bind_rows}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){full}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.*, )|(\\..*)}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[](symbol){rare_title}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Dona}<LSEP>[argument 1; litteral](str){Lady}<LSEP>[argument 2; litteral](str){the Countess}<LSEP>[argument 3; litteral](str){Capt}<LSEP>[argument 4; litteral](str){Col}<LSEP>[argument 5; litteral](str){Don}<LSEP>[argument 6; litteral](str){Dr}<LSEP>[argument 7; litteral](str){Major}<LSEP>[argument 8; litteral](str){Rev}<LSEP>[argument 9; litteral](str){Sir}<LSEP>[argument 10; litteral](str){Jonkheer}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Ms}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mme}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[](symbol){rare_title}<LEND>[litteral](str){Rare Title}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Surname}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){We have <b>}<LEND>[argument 1; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Surname}<LEND>[argument 2; litteral](str){</b> unique surnames. I would ...}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Family}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Surname}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 2; litteral](str){_}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Fsize}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){dodge}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){11.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Family Size}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FsizeD}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){singleton}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FsizeD}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){small}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FsizeD}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fsize}<LEND>[argument 1; litteral](real){4.000000}<LEND>[litteral](str){large}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FamilyLevel}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Parch}<LSEP>[argument 1; litteral](str){SibSp}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){Lone Wolf}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){Horizontal}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){Hierarchy}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FsizeD}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Family Size by Survival}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[](symbol){FamilyLevel}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[](symbol){Sex}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){28.000000}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Deck}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Cabin}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Embarked}<LEND>[call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){We will infer their values for...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Fare}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){</b>and<b> $}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Fare}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){</b>respectively and their cla...}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 6; litteral](str){</b>and<b>}<LEND>[argument 7; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[argument 2; litteral](str){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 8; litteral](str){</b>. So from where did they e...}<LEND>[assign](){<-}<LSEP>[](symbol){embark_fare}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){PassengerId}<LSEP>[argument 1; litteral](real){62.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){PassengerId}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){embark_fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Embarked}<LSEP>[](symbol){Fare}<LEND>[argument 2; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){80.000000}<LEND>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){dashed}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){dollar_format}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[litteral](str){C}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[argument 1; litteral](real){1044.000000}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](str){3}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){S}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](str){#99d6ff}<LSEP>[argument 1; litteral](real){0.400000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){Fare}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){dashed}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){dollar_format}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){1044.000000}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](str){3}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){S}<LEND>[](symbol){}<LEND>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[](symbol){factor_vars}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){PassengerId}<LSEP>[argument 1; litteral](str){Pclass}<LSEP>[argument 2; litteral](str){Sex}<LSEP>[argument 3; litteral](str){Embarked}<LSEP>[argument 4; litteral](str){Title}<LSEP>[argument 5; litteral](str){Surname}<LSEP>[argument 6; litteral](str){Family}<LSEP>[argument 7; litteral](str){FsizeD}<LSEP>[argument 8; litteral](str){FamilyLevel}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){factor_vars}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){factor_vars}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){129.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mice_mod}<LEND>[call](){}<LSEP>[](symbol){mice}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){PassengerId}<LSEP>[argument 1; litteral](str){Name}<LSEP>[argument 2; litteral](str){Ticket}<LSEP>[argument 3; litteral](str){Cabin}<LSEP>[argument 4; litteral](str){Family}<LSEP>[argument 5; litteral](str){Surname}<LSEP>[argument 6; litteral](str){Survived}<LSEP>[argument 7; litteral](str){FamilyLevel}<LEND>[argument 1; litteral](str){rf}<LEND>[assign](){<-}<LSEP>[](symbol){mice_output}<LEND>[call](){}<LSEP>[](symbol){complete}<LSEP>[](symbol){mice_mod}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[](symbol){F}<LSEP>[argument 2; litteral](str){Age: Original Data}<LSEP>[argument 3; litteral](str){darkgreen}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.040000}<LEND>[call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mice_output}<LSEP>[](symbol){Age}<LEND>[](symbol){F}<LSEP>[argument 2; litteral](str){Age: MICE Output}<LSEP>[argument 3; litteral](str){lightgreen}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.040000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mice_output}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){md.pattern}<LSEP>[](symbol){full}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){892.000000}<LSEP>[argument 1; litteral](real){1309.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){754.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rf_model}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){Title}<LEND>[](symbol){FsizeD}<LEND>[](symbol){FamilyLevel}<LEND>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){rf_model}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.360000}<LEND>[call](){}<LSEP>[](symbol){legend}<LSEP>[argument 0; litteral](str){topright}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rf_model}<LSEP>[](symbol){err.rate}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){importance}<LEND>[call](){}<LSEP>[](symbol){importance}<LSEP>[](symbol){rf_model}<LEND>[assign](){<-}<LSEP>[](symbol){varImportance}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){importance}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){importance}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){MeanDecreaseGini}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rankImportance}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){varImportance}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){#}<LEND>[argument 1; call](){}<LSEP>[](symbol){dense_rank}<LEND>[argument 0; call](){}<LSEP>[](symbol){desc}<LSEP>[](symbol){Importance}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){rankImportance}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){reorder}<LSEP>[](symbol){Variables}<LSEP>[](symbol){Importance}<LEND>[](symbol){Importance}<LSEP>[](symbol){Importance}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Variables}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[](symbol){Rank}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.550000}<LSEP>[argument 3; litteral](real){4.000000}<LSEP>[argument 4; litteral](str){red}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Variables}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){rf_model}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){solution}<LSEP>[argument 1; litteral](str){rf_mod_Solution.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[assign](){=}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/properties_2016.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){l}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](str){character}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){VIM}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){NAsPatternEq.png}<LSEP>[argument 1; litteral](str){cairo}<LSEP>[argument 2; litteral](str){in}<LSEP>[argument 3; litteral](real){12.000000}<LSEP>[argument 4; litteral](real){6.500000}<LSEP>[argument 5; litteral](real){10.000000}<LSEP>[argument 6; litteral](real){300.000000}<LEND>[assign](){<-}<LSEP>[](symbol){miceplot1}<LEND>[call](){}<LSEP>[](symbol){aggr}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){dodgerblue}<LSEP>[argument 1; litteral](str){dimgray}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LSEP>[argument 4; litteral](logical){FALSE}<LSEP>[argument 5; litteral](str){gray50}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[argument 7; litteral](logical){FALSE}<LEND>[argument 8; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Missing Data Pattern}<LEND>[argument 9; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 10; litteral](real){0.700000}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){NAsPatternAdj.png}<LSEP>[argument 1; litteral](str){cairo}<LSEP>[argument 2; litteral](str){in}<LSEP>[argument 3; litteral](real){12.000000}<LSEP>[argument 4; litteral](real){6.500000}<LSEP>[argument 5; litteral](real){10.000000}<LSEP>[argument 6; litteral](real){300.000000}<LEND>[assign](){<-}<LSEP>[](symbol){miceplot2}<LEND>[call](){}<LSEP>[](symbol){aggr}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){dodgerblue}<LSEP>[argument 1; litteral](str){dimgray}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](logical){NA}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[argument 7; litteral](logical){FALSE}<LEND>[argument 8; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Missing Data Pattern w/ Height...}<LEND>[argument 9; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 10; litteral](real){0.700000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[assign](){=}<LSEP>[](symbol){test.data}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[](symbol){F}<LEND>[assign](){=}<LSEP>[](symbol){train.data}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){missForest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){knitr}<LEND>[assign](){=}<LSEP>[](symbol){target.variable}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.data}<LSEP>[](symbol){SalePrice}<LEND>[assign](){=}<LSEP>[](symbol){train.data.wo.tv}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){80.000000}<LEND>[assign](){=}<LSEP>[](symbol){full}<LEND>[call](){}<LSEP>[](symbol){bind_rows}<LSEP>[](symbol){train.data.wo.tv}<LSEP>[](symbol){test.data}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){full}<LEND>[assign](){=}<LSEP>[](symbol){sum.missing}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){full}<LEND>[assign](){=}<LSEP>[](symbol){sum.given}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){full}<LEND>[assign](){=}<LSEP>[](symbol){total.values}<LEND>[call](){}<LSEP>[](symbol){prod}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){full}<LEND>[assign](){=}<LSEP>[](symbol){pct.missing}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sum.missing}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){total.values}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){pct.given}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sum.given}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){total.values}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sum.missing}<LSEP>[](symbol){sum.given}<LEND>[call](){}<LSEP>[](symbol){pie}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Missing Values}<LSEP>[](symbol){pct.missing}<LSEP>[argument 2; litteral](str){%}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Given Values}<LSEP>[](symbol){pct.given}<LSEP>[argument 2; litteral](str){%}<LEND>[argument 2; litteral](str){Given Values V/s Missing Values}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Grey}<LSEP>[argument 1; litteral](str){Sky Blue}<LEND>[assign](){=}<LSEP>[](symbol){num_na}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){full}<LEND>[](symbol){T}<LEND>[assign](){=}<LSEP>[](symbol){num_na}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){num_na}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){num_na}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){reorder}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){num_na}<LEND>[](symbol){num_na}<LEND>[](symbol){num_na}<LEND>[argument 1; litteral](str){identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){Variables with Missing Values}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){Number of Missing Values}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){30.000000}<LSEP>[argument 1; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){30.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){35.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){35.000000}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){PoolArea}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){PoolQC}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Id}<LSEP>[argument 1; litteral](str){PoolArea}<LSEP>[argument 2; litteral](str){PoolQC}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PoolQC}<LSEP>[](symbol){PoolArea}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2421.000000}<LSEP>[argument 1; litteral](real){2504.000000}<LEND>[argument 2; litteral](str){PoolQC}<LEND>[litteral](str){Ex}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){2600.000000}<LEND>[argument 2; litteral](str){PoolQC}<LEND>[litteral](str){Fa}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){PoolQC}<LEND>[argument 2; litteral](str){PoolQC}<LEND>[litteral](str){No Pool}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){MiscVal}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){MiscFeature}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[argument 0; litteral](str){Id}<LSEP>[argument 1; litteral](str){MiscFeature}<LSEP>[argument 2; litteral](str){MiscVal}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){MiscFeature}<LSEP>[](symbol){MiscVal}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){2550.000000}<LEND>[argument 2; litteral](str){MiscFeature}<LEND>[litteral](str){Gar2}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){MiscFeature}<LEND>[argument 2; litteral](str){MiscFeature}<LEND>[litteral](str){None}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Alley}<LEND>[argument 2; litteral](str){Alley}<LEND>[litteral](str){No Alley Access}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fence}<LEND>[argument 2; litteral](str){Fence}<LEND>[litteral](str){No Fence}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){FireplaceQu}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){Fireplaces}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Id}<LSEP>[](symbol){Fireplaces}<LSEP>[](symbol){FireplaceQu}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){FireplaceQu}<LEND>[argument 2; litteral](str){FireplaceQu}<LEND>[litteral](str){No Fireplace}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){LotConfig}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){LotConfig}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){LotShape}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){LotShape}<LEND>[assign](){=}<LSEP>[](symbol){regressor}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){LotFrontage}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){LotArea}<LSEP>[argument 1; litteral](str){LotConfig}<LSEP>[argument 2; litteral](str){LotShape}<LEND>[argument 1; call](){}<LSEP>[](symbol){na.omit}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){LotFrontage}<LEND>[argument 2; litteral](real){200.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){LotFrontage}<LEND>[argument 2; litteral](str){LotFrontage}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){regressor}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){LotFrontage}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){LotArea}<LSEP>[argument 1; litteral](str){LotConfig}<LSEP>[argument 2; litteral](str){LotShape}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){GarageYrBlt}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){GarageYrBlt}<LEND>[argument 1; litteral](real){2207.000000}<LEND>[argument 2; litteral](str){GarageYrBlt}<LEND>[litteral](real){2007.000000}<LEND>[assign](){=}<LSEP>[](symbol){no.gar.id}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){GarageType}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){GarageFinish}<LEND>[argument 2; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){GarageQual}<LEND>[argument 3; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Id}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){no.gar.id}<LSEP>[](symbol){Id}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GarageType}<LSEP>[argument 1; litteral](str){GarageFinish}<LSEP>[argument 2; litteral](str){GarageCond}<LSEP>[argument 3; litteral](str){GarageQual}<LEND>[litteral](str){No Garage}<LEND>[assign](){=}<LSEP>[](symbol){gar.ds}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GarageYrBlt}<LSEP>[argument 1; litteral](str){GarageType}<LSEP>[argument 2; litteral](str){GarageFinish}<LSEP>[argument 3; litteral](str){GarageCond}<LSEP>[argument 4; litteral](str){GarageCars}<LSEP>[argument 5; litteral](str){GarageArea}<LSEP>[argument 6; litteral](str){GarageQual}<LEND>[call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){gar.ds}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gar.ds}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){GarageFinish}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){no.bas.id}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 2; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){BsmtQual}<LEND>[argument 3; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){BsmtFinType1}<LEND>[argument 4; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){BsmtFinType2}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Id}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){no.bas.id}<LSEP>[](symbol){Id}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){BsmtCond}<LSEP>[argument 1; litteral](str){BsmtExposure}<LSEP>[argument 2; litteral](str){BsmtQual}<LSEP>[argument 3; litteral](str){BsmtFinType1}<LSEP>[argument 4; litteral](str){BsmtFinType2}<LEND>[litteral](str){No Basement}<LEND>[assign](){=}<LSEP>[](symbol){bas.ds}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){BsmtCond}<LSEP>[argument 1; litteral](str){BsmtExposure}<LSEP>[argument 2; litteral](str){BsmtQual}<LSEP>[argument 3; litteral](str){BsmtFinType1}<LSEP>[argument 4; litteral](str){BsmtFinType2}<LSEP>[argument 5; litteral](str){BsmtFullBath}<LSEP>[argument 6; litteral](str){BsmtHalfBath}<LSEP>[argument 7; litteral](str){BsmtFinSF1}<LSEP>[argument 8; litteral](str){BsmtFinSF2}<LSEP>[argument 9; litteral](str){BsmtUnfSF}<LSEP>[argument 10; litteral](str){TotalBsmtSF}<LEND>[call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){bas.ds}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bas.ds}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bas.ds}<LSEP>[](symbol){BsmtFinSF2}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bas.ds}<LSEP>[argument 1; litteral](real){2121.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){BsmtFullBath}<LSEP>[argument 1; litteral](str){BsmtHalfBath}<LSEP>[argument 2; litteral](str){BsmtFinSF1}<LSEP>[argument 3; litteral](str){BsmtFinSF2}<LSEP>[argument 4; litteral](str){BsmtUnfSF}<LSEP>[argument 5; litteral](str){TotalBsmtSF}<LEND>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bas.ds}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bas.ds}<LSEP>[](symbol){BsmtCond}<LEND>[](symbol){}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bas.ds}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bas.ds}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[assign](){=}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){missForest}<LSEP>[](symbol){bas.ds}<LSEP>[argument 1; litteral](real){200.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){na.omit}<LSEP>[](symbol){bas.ds}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){BsmtCond}<LSEP>[argument 1; litteral](str){BsmtExposure}<LSEP>[argument 2; litteral](str){BsmtQual}<LSEP>[argument 3; litteral](str){BsmtFinType1}<LSEP>[argument 4; litteral](str){BsmtFinType2}<LSEP>[argument 5; litteral](str){BsmtFullBath}<LSEP>[argument 6; litteral](str){BsmtHalfBath}<LSEP>[argument 7; litteral](str){BsmtFinSF1}<LSEP>[argument 8; litteral](str){BsmtFinSF2}<LSEP>[argument 9; litteral](str){BsmtUnfSF}<LSEP>[argument 10; litteral](str){TotalBsmtSF}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){ximp}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){MasVnrType}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){MasVnrArea}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Id}<LSEP>[](symbol){MasVnrType}<LSEP>[](symbol){MasVnrArea}<LEND>[call](){}<LSEP>[](symbol){boxplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){MasVnrArea}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){MasVnrType}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){2611.000000}<LEND>[argument 2; litteral](str){MasVnrType}<LEND>[litteral](str){BrkCmn}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){MasVnrType}<LEND>[argument 2; litteral](str){MasVnrType}<LEND>[litteral](str){None}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){MasVnrArea}<LEND>[argument 2; litteral](str){MasVnrArea}<LEND>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){MSZoning}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Id}<LSEP>[](symbol){MSZoning}<LSEP>[](symbol){MSSubClass}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2217.000000}<LSEP>[argument 1; litteral](real){2905.000000}<LEND>[argument 2; litteral](str){MSZoning}<LEND>[litteral](str){RL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){1916.000000}<LEND>[argument 2; litteral](str){MSZoning}<LEND>[litteral](str){RM}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){2251.000000}<LEND>[argument 2; litteral](str){MSZoning}<LEND>[litteral](str){RM}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Functional}<LEND>[argument 2; litteral](str){Functional}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Functional}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Electrical}<LEND>[argument 2; litteral](str){Electrical}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Electrical}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Utilities}<LEND>[argument 2; litteral](str){Utilities}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Utilities}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Id}<LSEP>[](symbol){Exterior1st}<LSEP>[](symbol){Exterior2nd}<LSEP>[](symbol){ExterQual}<LSEP>[](symbol){ExterCond}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Exterior2nd}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){ExterQual}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){ExterCond}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){ExterCond}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){2152.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Exterior1st}<LSEP>[argument 1; litteral](str){Exterior2nd}<LEND>[litteral](str){VinylSd}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){KitchenAbvGr}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Id}<LSEP>[](symbol){KitchenQual}<LSEP>[](symbol){KitchenAbvGr}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){1556.000000}<LEND>[argument 2; litteral](str){KitchenQual}<LEND>[litteral](str){TA}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){SaleCondition}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Id}<LSEP>[](symbol){SaleType}<LSEP>[](symbol){SaleCondition}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){2490.000000}<LEND>[argument 2; litteral](str){SaleType}<LEND>[litteral](str){WD}<LEND>[assign](){=}<LSEP>[](symbol){num_na}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){full}<LEND>[](symbol){T}<LEND>[assign](){=}<LSEP>[](symbol){num_na}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){num_na}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){num_na}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){reorder}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){num_na}<LEND>[](symbol){num_na}<LEND>[](symbol){num_na}<LEND>[argument 1; litteral](str){identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){Variables with Missing Values}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){Number of Missing Values}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyr}<LEND>[assign](){<-}<LSEP>[](symbol){path}<LSEP>[litteral](str){../input}<LEND>[assign](){<-}<LSEP>[](symbol){aisles}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){aisles.csv}<LEND>[assign](){<-}<LSEP>[](symbol){departments}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){departments.csv}<LEND>[assign](){<-}<LSEP>[](symbol){orderp}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){order_products__prior.csv}<LEND>[assign](){<-}<LSEP>[](symbol){ordert}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){order_products__train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){orders}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){orders.csv}<LEND>[assign](){<-}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){products.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){aisles}<LSEP>[](symbol){aisle}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){aisles}<LSEP>[](symbol){aisle}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){departments}<LSEP>[](symbol){department}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){departments}<LSEP>[](symbol){department}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){orders}<LSEP>[](symbol){eval_set}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){orders}<LSEP>[](symbol){eval_set}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){products}<LSEP>[](symbol){product_name}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){products}<LSEP>[](symbol){product_name}<LEND>[assign](){<-}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){products}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){aisles}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){departments}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){aisle_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){department_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){aisles}<LSEP>[](symbol){departments}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ordert}<LSEP>[](symbol){user_id}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){orders}<LSEP>[](symbol){user_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ordert}<LSEP>[](symbol){order_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){orders}<LSEP>[](symbol){order_id}<LEND>[assign](){<-}<LSEP>[](symbol){orders_products}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){orderp}<LSEP>[argument 1; litteral](str){order_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){orderp}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){prd}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders_products}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LSEP>[](symbol){user_id}<LSEP>[](symbol){order_number}<LSEP>[](symbol){product_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){user_id}<LSEP>[](symbol){product_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){row_number}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){product_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){reordered}<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){product_time}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){product_time}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_reorder_probability}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_second_orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_first_orders}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_reorder_times}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_reorders}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_first_orders}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_reorder_ratio}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_reorders}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prd}<LSEP>[](symbol){prod_orders}<LEND>[assign](){<-}<LSEP>[](symbol){prd}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){prd}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){prod_reorders}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){prod_first_orders}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){prod_second_orders}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){users}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){eval_set}<LSEP>[argument 1; litteral](str){prior}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){user_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){order_number}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){days_since_prior_order}<LSEP>[](symbol){T}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){days_since_prior_order}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){us}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders_products}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){user_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){reordered}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){order_number}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){n_distinct}<LSEP>[](symbol){product_id}<LEND>[assign](){<-}<LSEP>[](symbol){users}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){users}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){us}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){users}<LSEP>[](symbol){user_average_basket}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){users}<LSEP>[](symbol){user_total_products}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){users}<LSEP>[](symbol){user_orders}<LEND>[assign](){<-}<LSEP>[](symbol){us}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){eval_set}<LSEP>[argument 1; litteral](str){prior}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){user_id}<LSEP>[](symbol){order_id}<LSEP>[](symbol){eval_set}<LSEP>[](symbol){days_since_prior_order}<LEND>[assign](){<-}<LSEP>[](symbol){users}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){users}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){us}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){us}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){orders_products}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){user_id}<LSEP>[](symbol){product_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){order_number}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){order_number}<LEND>[argument 3; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){add_to_cart_order}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){orders_products}<LSEP>[](symbol){orders}<LEND>[assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){prd}<LSEP>[argument 1; litteral](str){product_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){users}<LSEP>[argument 1; litteral](str){user_id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){up_order_rate}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){up_orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){user_orders}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){up_orders_since_last_order}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){user_orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){up_last_order}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){up_order_rate_since_first_order}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){up_orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){user_orders}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){up_first_order}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){left_join}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){ordert}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){user_id}<LSEP>[](symbol){product_id}<LSEP>[](symbol){reordered}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){user_id}<LSEP>[argument 1; litteral](str){product_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){ordert}<LSEP>[](symbol){prd}<LSEP>[](symbol){users}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){eval_set}<LEND>[argument 1; litteral](str){train}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){eval_set}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){user_id}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){product_id}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){order_id}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){reordered}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){reordered}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){eval_set}<LEND>[argument 1; litteral](str){test}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){eval_set}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){user_id}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){reordered}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){reg:logistic}<LSEP>[argument 1; litteral](str){logloss}<LSEP>[argument 2; litteral](real){0.010000}<LSEP>[argument 3; litteral](real){6.000000}<LSEP>[argument 4; litteral](real){10.000000}<LSEP>[argument 5; litteral](real){0.700000}<LSEP>[argument 6; litteral](real){0.760000}<LSEP>[argument 7; litteral](real){0.950000}<LSEP>[argument 8; litteral](real){0.000020}<LSEP>[argument 9; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){subtrain}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample_frac}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){subtrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){reordered}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){subtrain}<LSEP>[](symbol){reordered}<LEND>[assign](){<-}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){xgboost}<LSEP>[](symbol){X}<LSEP>[](symbol){params}<LSEP>[argument 2; litteral](real){80.000000}<LEND>[assign](){<-}<LSEP>[](symbol){importance}<LEND>[call](){}<LSEP>[](symbol){xgb.importance}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){X}<LEND>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){xgb.ggplot.importance}<LSEP>[](symbol){importance}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){X}<LSEP>[](symbol){importance}<LSEP>[](symbol){subtrain}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){order_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){product_id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){reordered}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){model}<LSEP>[](symbol){X}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){reordered}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){reordered}<LEND>[argument 1; litteral](real){0.210000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){reordered}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){order_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){product_id}<LSEP>[argument 1; litteral](str){ }<LEND>[assign](){<-}<LSEP>[](symbol){missing}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){order_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){order_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission}<LSEP>[](symbol){order_id}<LEND>[argument 1; litteral](str){None}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){submission}<LEND>[argument 1; call](){}<LSEP>[](symbol){bind_rows}<LSEP>[](symbol){missing}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LSEP>[](symbol){order_id}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){submit.csv}<LSEP>[](symbol){F}
[](){expression}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){stringr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[assign](){<-}<LSEP>[](symbol){dt1}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){dt2}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){dt1}<LSEP>[](symbol){dt2}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){name_split}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](str){, }<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){first_name_split}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){name_split}<LSEP>[argument 1; litteral](str){[[}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](str){. }<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){surname}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){name_split}<LSEP>[argument 1; litteral](str){[[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){surname}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){surname}<LEND>[argument 1; litteral](str){-}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](str){[[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){first_name_split}<LSEP>[argument 1; litteral](str){[[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dt_firstname}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){first_name_split}<LSEP>[argument 1; litteral](str){[[}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){re1}<LSEP>[litteral](str){\\(([^()]+)\\)}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){(}<LSEP>[](symbol){Name}<LSEP>[](symbol){T}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){b_name}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsub}<LSEP>[](symbol){re1}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){str_extract_all}<LSEP>[](symbol){Name}<LSEP>[](symbol){re1}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){b_name}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){b_surname}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){b_name}<LSEP>[argument 1; litteral](str){ }<LEND>[](symbol){tail}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){re2}<LSEP>[litteral](str){\\"([^""]+)\\"}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){"}<LSEP>[](symbol){Name}<LSEP>[](symbol){T}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){nickname}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsub}<LSEP>[](symbol){re2}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){str_extract_all}<LSEP>[](symbol){Name}<LSEP>[](symbol){re2}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Cabin}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){CabinBLK}<LEND>[argument 1; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){Cabin}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){CabinBLK}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; litteral](str){CabinBLK}<LEND>[litteral](str){Unknown}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){CabinBLK}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){CabinBLK}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){fam_size}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrp}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[argument 0; litteral](str){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrpSize}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){Alone}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){fam_size}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){Alone}<LSEP>[argument 2; litteral](str){Group}<LEND>[assign](){<-}<LSEP>[](symbol){mask1}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){fam_size}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){mask1}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){Grp1}<LSEP>[](symbol){.GRP}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Embarked}<LSEP>[argument 1; litteral](str){Pclass}<LSEP>[argument 2; litteral](str){surname}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){mask1}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){Grp1Size}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){Grp1}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){mask1}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrp}<LSEP>[](symbol){Grp1}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){mask1}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrpSize}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){FamGrp}<LEND>[assign](){<-}<LSEP>[](symbol){mask2}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){mask1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrpSize}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){fam_size}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){mask2}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){Grp2}<LSEP>[](symbol){.GRP}<LEND>[argument 3; litteral](str){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){mask2}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){Grp2Size}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){Grp2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Grp2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Grp2}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LSEP>[argument 0; litteral](real){1000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){mask2}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){Grp2Size}<LSEP>[](symbol){fam_size}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrp}<LSEP>[](symbol){Grp2}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrpSize}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){FamGrp}<LEND>[assign](){<-}<LSEP>[](symbol){mask3}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){mask1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrpSize}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){fam_size}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){mask3}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){Cabin}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){Grp3}<LSEP>[](symbol){.GRP}<LEND>[argument 3; litteral](str){Cabin}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Grp3}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Grp3}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LSEP>[argument 0; litteral](real){2000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){mask3}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){Cabin}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){Grp3Size}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){Grp3}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){mask3}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){Cabin}<LSEP>[argument 1; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){Grp3Size}<LSEP>[](symbol){fam_size}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrp}<LSEP>[](symbol){Grp3}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrpSize}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){FamGrp}<LEND>[assign](){<-}<LSEP>[](symbol){mask4}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){mask1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrpSize}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){fam_size}<LEND>[assign](){<-}<LSEP>[](symbol){cousins}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){mask4}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){surname}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){b_surname}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){surname}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Richards}<LEND>[assign](){<-}<LSEP>[](symbol){match}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cousins}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){mask1}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){FamGrp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; litteral](str){b_surname}<LEND>[assign](){<-}<LSEP>[](symbol){cousins}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){cousins}<LSEP>[](symbol){match}<LSEP>[argument 2; litteral](str){surname}<LSEP>[argument 3; litteral](str){b_surname}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cousins}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){PassengerId}<LSEP>[](symbol){FamGrp.y}<LEND>[argument 2; litteral](str){PassengerId}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Grp4}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrp}<LSEP>[](symbol){Grp4}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrpSize}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){FamGrp}<LEND>[assign](){<-}<LSEP>[](symbol){mask5}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){mask1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrpSize}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){fam_size}<LEND>[assign](){<-}<LSEP>[](symbol){cousins2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){mask5}<LEND>[assign](){<-}<LSEP>[](symbol){match}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cousins2}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){mask1}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){FamGrp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; litteral](str){surname}<LEND>[assign](){<-}<LSEP>[](symbol){cousins2}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){cousins2}<LSEP>[](symbol){match}<LSEP>[argument 2; litteral](str){surname}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cousins2}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){PassengerId}<LSEP>[](symbol){FamGrp.y}<LEND>[argument 2; litteral](str){PassengerId}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Grp5}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrp}<LSEP>[](symbol){Grp5}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrpSize}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){FamGrp}<LEND>[assign](){<-}<LSEP>[](symbol){mask6}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){mask1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrpSize}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){fam_size}<LEND>[assign](){<-}<LSEP>[](symbol){cousins3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){mask6}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cousins3}<LSEP>[](symbol){TicHead}<LEND>[call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cousins3}<LSEP>[](symbol){Ticket}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){cousins3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cousins3}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){Grp6}<LSEP>[](symbol){.GRP}<LEND>[](symbol){TicHead}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cousins3}<LSEP>[](symbol){Grp6}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cousins3}<LSEP>[](symbol){Grp6}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LSEP>[argument 0; litteral](real){3000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cousins3}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){PassengerId}<LSEP>[argument 1; litteral](str){Grp6}<LEND>[argument 2; litteral](str){PassengerId}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Grp6}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrp}<LSEP>[](symbol){Grp6}<LEND>[assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](str){FamGrpSize}<LSEP>[](symbol){.N}<LEND>[argument 3; litteral](str){FamGrp}<LEND>[assign](){<-}<LSEP>[](symbol){impute}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Age}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){Age}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){impute}<LSEP>[](symbol){mean age}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){impute}<LSEP>[](symbol){mean age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Age}<LEND>[argument 2; litteral](str){Age}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Age}<LEND>[](symbol){title}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){impute}<LSEP>[](symbol){mean age}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){impute}<LSEP>[](symbol){title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){LadyCount}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){FamGrp}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){Age}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Sex}<LSEP>[argument 1; litteral](str){female}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){KidsCount}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){FamGrp}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){Age}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){GrownManCount}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){FamGrp}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Sex}<LSEP>[argument 1; litteral](str){male}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){Age}<LSEP>[argument 1; litteral](real){18.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){ElderlyCount}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){FamGrp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){FamGrp}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){Age}<LSEP>[argument 1; litteral](real){55.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Fam}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){mask1}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Fam}<LSEP>[](symbol){FamGrpSize}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Fam}<LSEP>[](symbol){FamGrpSize}<LEND>[assign](){<-}<LSEP>[](symbol){g1}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){Fam}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){FamGrpSize}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Fam}<LSEP>[](symbol){FamGrpSize}<LEND>[assign](){<-}<LSEP>[](symbol){g2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){Fam}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Survived}<LSEP>[](symbol){Age}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_violin}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_jitter}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[](symbol){dt_g3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Survived}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){.N}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Alone}<LSEP>[argument 1; litteral](str){Sex}<LSEP>[argument 2; litteral](str){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){g3}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){dt_g3}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Alone}<LSEP>[](symbol){Count}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){fill}<LSEP>[argument 1; litteral](str){identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Sex}<LSEP>[](symbol){.}<LEND>[assign](){<-}<LSEP>[](symbol){g4}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Sex}<LSEP>[](symbol){Alone}<LEND>[assign](){<-}<LSEP>[](symbol){Kids}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){FamGrpSize}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Survived}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){Survived}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){KidsCount}<LEND>[assign](){<-}<LSEP>[](symbol){g5}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){Kids}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){KidsCount}<LSEP>[](symbol){SurvivalRate}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LEND>[assign](){<-}<LSEP>[](symbol){ManvKidsMrs}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){FamGrpSize}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Survived}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){Survived}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GrownManCount}<LEND>[assign](){<-}<LSEP>[](symbol){g6}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){ManvKidsMrs}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){GrownManCount}<LSEP>[](symbol){SurvivalRate}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LEND>[assign](){<-}<LSEP>[](symbol){Lady}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){FamGrpSize}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Survived}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){Survived}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){LadyCount}<LEND>[assign](){<-}<LSEP>[](symbol){g7}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){Lady}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){LadyCount}<LSEP>[](symbol){SurvivalRate}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LEND>[assign](){<-}<LSEP>[](symbol){Elderly}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){FamGrpSize}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Survived}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){Survived}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ElderlyCount}<LEND>[assign](){<-}<LSEP>[](symbol){g8}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){Elderly}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){ElderlyCount}<LSEP>[](symbol){SurvivalRate}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LEND>[assign](){<-}<LSEP>[](symbol){train_set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt1}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){test_set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dt2}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){train_control}<LEND>[call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){cv}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[](symbol){RF}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){Age}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){Sex}<LEND>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){FamGrpSize}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){LadyCount}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){KidsCount}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){GrownManCount}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){ElderlyCount}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){train_set}<LSEP>[](symbol){train_control}<LSEP>[argument 3; litteral](str){rf}<LEND>[assign](){<-}<LSEP>[](symbol){test_fit}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF}<LSEP>[](symbol){test_set}<LEND>[assign](){=}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_set}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){test_fit}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){submission.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[assign](){<-}<LSEP>[](symbol){trn}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/en_train.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trn}<LSEP>[](symbol){before}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trn}<LSEP>[](symbol){before}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trn}<LSEP>[](symbol){after}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trn}<LSEP>[](symbol){after}<LEND>[assign](){<-}<LSEP>[](symbol){meas3}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\,}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){[0-9]}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trn}<LSEP>[](symbol){before}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trn}<LSEP>[](symbol){class}<LEND>[argument 1; litteral](str){MEASURE}<LEND>[assign](){<-}<LSEP>[](symbol){measafter}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trn}<LSEP>[](symbol){after}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trn}<LSEP>[](symbol){class}<LEND>[argument 1; litteral](str){MEASURE}<LEND>[assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){measafter}<LEND>[assign](){<-}<LSEP>[](symbol){measaft}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LEND>[assign](){=}<LSEP>[](symbol){i}<LSEP>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){ones}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){one}<LSEP>[argument 1; litteral](str){two}<LSEP>[argument 2; litteral](str){three}<LSEP>[argument 3; litteral](str){four}<LSEP>[argument 4; litteral](str){five}<LSEP>[argument 5; litteral](str){six}<LSEP>[argument 6; litteral](str){seven}<LSEP>[argument 7; litteral](str){eight}<LSEP>[argument 8; litteral](str){nine}<LEND>[assign](){<-}<LSEP>[](symbol){ones.or}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){first}<LSEP>[argument 1; litteral](str){second}<LSEP>[argument 2; litteral](str){third}<LSEP>[argument 3; litteral](str){fourth}<LSEP>[argument 4; litteral](str){fifth}<LSEP>[argument 5; litteral](str){sixth}<LSEP>[argument 6; litteral](str){seventh}<LSEP>[argument 7; litteral](str){eighth}<LSEP>[argument 8; litteral](str){ninth}<LEND>[assign](){<-}<LSEP>[](symbol){tens.or}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){twentieth}<LSEP>[argument 1; litteral](str){thirtieth}<LSEP>[argument 2; litteral](str){fortieth}<LSEP>[argument 3; litteral](str){fiftieth}<LSEP>[argument 4; litteral](str){sixtieth}<LSEP>[argument 5; litteral](str){seventieth}<LSEP>[argument 6; litteral](str){eightieth}<LSEP>[argument 7; litteral](str){ninetieth}<LEND>[assign](){<-}<LSEP>[](symbol){teens.or}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tenth}<LSEP>[argument 1; litteral](str){eleventh}<LSEP>[argument 2; litteral](str){twelfth}<LSEP>[argument 3; litteral](str){thirteenth}<LSEP>[argument 4; litteral](str){fourteenth}<LSEP>[argument 5; litteral](str){fifteenth}<LSEP>[argument 6; litteral](str){sixteenth}<LSEP>[argument 7; litteral](str){seventeenth}<LSEP>[argument 8; litteral](str){eighteenth}<LSEP>[argument 9; litteral](str){nineteenth}<LEND>[assign](){<-}<LSEP>[](symbol){hundreds.or}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){one hundredth}<LSEP>[argument 1; litteral](str){two hundredth}<LSEP>[argument 2; litteral](str){three hundredth}<LSEP>[argument 3; litteral](str){four hundredth}<LSEP>[argument 4; litteral](str){five hundredth}<LSEP>[argument 5; litteral](str){six hundredth}<LSEP>[argument 6; litteral](str){seven hundredth}<LSEP>[argument 7; litteral](str){eight hundredth}<LSEP>[argument 8; litteral](str){nine hundredth}<LEND>[assign](){<-}<LSEP>[](symbol){thousands.or}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){thousandth}<LSEP>[argument 1; litteral](str){millionth}<LSEP>[argument 2; litteral](str){billionth}<LSEP>[argument 3; litteral](str){trillionth}<LSEP>[argument 4; litteral](str){quadrillionth}<LSEP>[argument 5; litteral](str){quintillionth}<LEND>[assign](){<-}<LSEP>[](symbol){ones.ths}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){firsts}<LSEP>[argument 1; litteral](str){seconds}<LSEP>[argument 2; litteral](str){thirds}<LSEP>[argument 3; litteral](str){fourths}<LSEP>[argument 4; litteral](str){fifths}<LSEP>[argument 5; litteral](str){sixths}<LSEP>[argument 6; litteral](str){sevenths}<LSEP>[argument 7; litteral](str){eighths}<LSEP>[argument 8; litteral](str){ninths}<LEND>[assign](){<-}<LSEP>[](symbol){tens}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){twenty}<LSEP>[argument 1; litteral](str){thirty}<LSEP>[argument 2; litteral](str){forty}<LSEP>[argument 3; litteral](str){fifty}<LSEP>[argument 4; litteral](str){sixty}<LSEP>[argument 5; litteral](str){seventy}<LSEP>[argument 6; litteral](str){eighty}<LSEP>[argument 7; litteral](str){ninety}<LEND>[assign](){<-}<LSEP>[](symbol){tens.ths}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){twentieths}<LSEP>[argument 1; litteral](str){thirtieths}<LSEP>[argument 2; litteral](str){fortieths}<LSEP>[argument 3; litteral](str){fiftieths}<LSEP>[argument 4; litteral](str){sixtieths}<LSEP>[argument 5; litteral](str){seventieths}<LSEP>[argument 6; litteral](str){eightieths}<LSEP>[argument 7; litteral](str){ninetieths}<LEND>[assign](){<-}<LSEP>[](symbol){teens}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ten}<LSEP>[argument 1; litteral](str){eleven}<LSEP>[argument 2; litteral](str){twelve}<LSEP>[argument 3; litteral](str){thirteen}<LSEP>[argument 4; litteral](str){fourteen}<LSEP>[argument 5; litteral](str){fifteen}<LSEP>[argument 6; litteral](str){sixteen}<LSEP>[argument 7; litteral](str){seventeen}<LSEP>[argument 8; litteral](str){eightteen}<LSEP>[argument 9; litteral](str){nineteen}<LEND>[assign](){<-}<LSEP>[](symbol){teens.ths}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tenths}<LSEP>[argument 1; litteral](str){elevenths}<LSEP>[argument 2; litteral](str){twelfths}<LSEP>[argument 3; litteral](str){thirteenths}<LSEP>[argument 4; litteral](str){fourteenths}<LSEP>[argument 5; litteral](str){fifteenths}<LSEP>[argument 6; litteral](str){sixteenths}<LSEP>[argument 7; litteral](str){seventeenths}<LSEP>[argument 8; litteral](str){eighteenths}<LSEP>[argument 9; litteral](str){nineteenths}<LEND>[assign](){<-}<LSEP>[](symbol){hundreds}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){one hundred}<LSEP>[argument 1; litteral](str){two hundred}<LSEP>[argument 2; litteral](str){three hundred}<LSEP>[argument 3; litteral](str){four hundred}<LSEP>[argument 4; litteral](str){five hundred}<LSEP>[argument 5; litteral](str){six hundred}<LSEP>[argument 6; litteral](str){seven hundred}<LSEP>[argument 7; litteral](str){eight hundred}<LSEP>[argument 8; litteral](str){nine hundred}<LEND>[assign](){<-}<LSEP>[](symbol){hundreds.ths}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){one hundredths}<LSEP>[argument 1; litteral](str){two hundredths}<LSEP>[argument 2; litteral](str){three hundredths}<LSEP>[argument 3; litteral](str){four hundredths}<LSEP>[argument 4; litteral](str){five hundredths}<LSEP>[argument 5; litteral](str){six hundredths}<LSEP>[argument 6; litteral](str){seven hundredths}<LSEP>[argument 7; litteral](str){eight hundredths}<LSEP>[argument 8; litteral](str){nine hundredths}<LEND>[assign](){<-}<LSEP>[](symbol){thousands}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){thousand}<LSEP>[argument 1; litteral](str){million}<LSEP>[argument 2; litteral](str){billion}<LSEP>[argument 3; litteral](str){trillion}<LSEP>[argument 4; litteral](str){quadrillion}<LSEP>[argument 5; litteral](str){quintillion}<LEND>[assign](){<-}<LSEP>[](symbol){thousands.ths}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){thousandths}<LSEP>[argument 1; litteral](str){millionths}<LSEP>[argument 2; litteral](str){billionths}<LSEP>[argument 3; litteral](str){trillionths}<LSEP>[argument 4; litteral](str){quadrillionths}<LSEP>[argument 5; litteral](str){quintillionths}<LEND>[assign](){<-}<LSEP>[](symbol){NUMBS}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){\\so\\s}<LSEP>[argument 1; litteral](str){zero}<LSEP>[argument 2; litteral](str){point}<LSEP>[](symbol){tens}<LSEP>[](symbol){tens.or}<LSEP>[](symbol){tens.ths}<LSEP>[](symbol){teens}<LSEP>[](symbol){teens.or}<LSEP>[](symbol){teens.ths}<LSEP>[argument 9; litteral](str){hundred}<LSEP>[argument 10; litteral](str){thousand}<LSEP>[argument 11; litteral](str){million}<LSEP>[argument 12; litteral](str){billion}<LSEP>[argument 13; litteral](str){trillion}<LSEP>[argument 14; litteral](str){quadrillion}<LSEP>[](symbol){ones}<LSEP>[](symbol){ones.or}<LSEP>[](symbol){ones.ths}<LSEP>[](symbol){hundreds}<LSEP>[](symbol){hundreds.or}<LSEP>[](symbol){hundreds.ths}<LSEP>[](symbol){thousands}<LSEP>[](symbol){thousands.or}<LSEP>[](symbol){thousands.ths}<LEND>[assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){NUMBS}<LEND>[control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){i}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){measaft}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){measafter}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){j}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){j}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){measaft}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){gsub}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){NUMBS}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){measaft}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){measaft}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\s+}<LSEP>[argument 1; litteral](str){ }<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){measaft}<LSEP>[](symbol){i}<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){i}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){meas4}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){meas3}<LSEP>[](symbol){measaft}<LEND>[assign](){<-}<LSEP>[](symbol){meastable}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){meas4}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){meas4}<LSEP>[](symbol){meas3}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){meastable}<LSEP>[](symbol){measaft}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){meastable}<LSEP>[](symbol){measaft}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){meastable}<LSEP>[argument 1; litteral](real){12.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[litteral](str){miles per hour}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){meastable}<LSEP>[argument 1; litteral](str){meastable.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){721.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){reading the train and test data\n}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){train}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_1}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_2}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[argument 1; litteral](str){target}<LEND>[assign](){=}<LSEP>[](symbol){delete_const}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_1}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA56}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){145175.000000}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA89}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){145142.000000}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA918}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){144313.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[assign](){=}<LSEP>[](symbol){datecolumns}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){VAR_0073}<LSEP>[argument 1; litteral](str){VAR_0075}<LSEP>[argument 2; litteral](str){VAR_0156}<LSEP>[argument 3; litteral](str){VAR_0157}<LSEP>[argument 4; litteral](str){VAR_0158}<LSEP>[argument 5; litteral](str){VAR_0159}<LSEP>[argument 6; litteral](str){VAR_0166}<LSEP>[argument 7; litteral](str){VAR_0167}<LSEP>[argument 8; litteral](str){VAR_0168}<LSEP>[argument 9; litteral](str){VAR_0176}<LSEP>[argument 10; litteral](str){VAR_0177}<LSEP>[argument 11; litteral](str){VAR_0178}<LSEP>[argument 12; litteral](str){VAR_0179}<LSEP>[argument 13; litteral](str){VAR_0204}<LSEP>[argument 14; litteral](str){VAR_0217}<LEND>[assign](){<-}<LSEP>[](symbol){train_cropped}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){datecolumns}<LEND>[assign](){<-}<LSEP>[](symbol){train_cc}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){train_cropped}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){%d%b%y:%H:%M:%S}<LSEP>[argument 2; litteral](str){UTC}<LEND>[control flow](){for}<LSEP>[](symbol){dc}<LSEP>[](symbol){datecolumns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){dc}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){dc}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_cc}<LSEP>[](symbol){dc}<LEND>[assign](){<-}<LSEP>[](symbol){train_cc}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){train_cropped}<LSEP>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){test_cropped}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){datecolumns}<LEND>[assign](){<-}<LSEP>[](symbol){test_cc}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){test_cropped}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){%d%b%y:%H:%M:%S}<LSEP>[argument 2; litteral](str){UTC}<LEND>[control flow](){for}<LSEP>[](symbol){dc}<LSEP>[](symbol){datecolumns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){dc}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){dc}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_cc}<LSEP>[](symbol){dc}<LEND>[assign](){<-}<LSEP>[](symbol){test_cc}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){test_cropped}<LSEP>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){train_target}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[](symbol){train_target}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){1.000000}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){feature.names}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](str){character}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){replacing missing values with ...}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){sampling train to get around 8...}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){120000.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){80000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){h}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){dval}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){val}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){val}<LSEP>[](symbol){target}<LEND>[assign](){=}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){val}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dval}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](real){0.010000}<LSEP>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](real){0.800000}<LSEP>[argument 4; litteral](real){0.800000}<LSEP>[argument 5; litteral](str){auc}<LEND>[assign](){<-}<LSEP>[](symbol){clf}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){dtrain}<LSEP>[argument 2; litteral](real){800.000000}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[](symbol){watchlist}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[assign](){=}<LSEP>[](symbol){dtrain}<LSEP>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){=}<LSEP>[](symbol){dval}<LSEP>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission}<LSEP>[](symbol){target}<LEND>[litteral](logical){NA}<LEND>[control flow](){for}<LSEP>[](symbol){rows}<LEND>[range; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 1; litteral](real){10000.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){submission}<LSEP>[](symbol){rows}<LSEP>[argument 2; litteral](str){target}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){clf}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){rows}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){saving the submission file\n}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){xgb3.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[](symbol){ls}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tm}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){SnowballC}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){skmeans}<LEND>[assign](){<-}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/producto_tabla.csv}<LEND>[assign](){<-}<LSEP>[](symbol){extract_shortname}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){product_name}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tokens}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){product_name}<LSEP>[argument 1; litteral](str){ }<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tokens}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){tokens}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tokens}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){digit_indeces}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){[0-9]}<LSEP>[](symbol){tokens}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){digit_index}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){digit_indeces}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){digit_indeces}<LEND>[statement 4; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tokens}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){digit_index}<LEND>[argument 1; litteral](str){ }<LEND>[assign](){<-}<LSEP>[](symbol){products}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){products}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){products}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){products}<LSEP>[](symbol){product_shortname}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){products}<LSEP>[](symbol){NombreProducto}<LEND>[](symbol){extract_shortname}<LEND>[assign](){<-}<LSEP>[](symbol){CorpusShort}<LEND>[call](){}<LSEP>[](symbol){Corpus}<LEND>[argument 0; call](){}<LSEP>[](symbol){VectorSource}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){products}<LSEP>[](symbol){product_shortname}<LEND>[assign](){<-}<LSEP>[](symbol){CorpusShort}<LEND>[call](){}<LSEP>[](symbol){tm_map}<LSEP>[](symbol){CorpusShort}<LSEP>[](symbol){tolower}<LEND>[assign](){<-}<LSEP>[](symbol){CorpusShort}<LEND>[call](){}<LSEP>[](symbol){tm_map}<LSEP>[](symbol){CorpusShort}<LSEP>[](symbol){PlainTextDocument}<LEND>[assign](){<-}<LSEP>[](symbol){CorpusShort}<LEND>[call](){}<LSEP>[](symbol){tm_map}<LSEP>[](symbol){CorpusShort}<LSEP>[](symbol){removePunctuation}<LEND>[assign](){<-}<LSEP>[](symbol){CorpusShort}<LEND>[call](){}<LSEP>[](symbol){tm_map}<LSEP>[](symbol){CorpusShort}<LSEP>[](symbol){removeWords}<LEND>[argument 2; call](){}<LSEP>[](symbol){stopwords}<LSEP>[argument 0; litteral](str){es}<LEND>[assign](){<-}<LSEP>[](symbol){CorpusShort}<LEND>[call](){}<LSEP>[](symbol){tm_map}<LSEP>[](symbol){CorpusShort}<LSEP>[](symbol){stemDocument}<LSEP>[argument 2; litteral](str){es}<LEND>[assign](){<-}<LSEP>[](symbol){CorpusShort}<LEND>[call](){}<LSEP>[](symbol){Corpus}<LEND>[argument 0; call](){}<LSEP>[](symbol){VectorSource}<LSEP>[](symbol){CorpusShort}<LEND>[assign](){<-}<LSEP>[](symbol){dtmShort}<LEND>[call](){}<LSEP>[](symbol){DocumentTermMatrix}<LSEP>[](symbol){CorpusShort}<LEND>[assign](){<-}<LSEP>[](symbol){sparseShort}<LEND>[call](){}<LSEP>[](symbol){removeSparseTerms}<LSEP>[](symbol){dtmShort}<LSEP>[argument 1; litteral](real){0.999900}<LEND>[assign](){<-}<LSEP>[](symbol){ShortWords}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){sparseShort}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ShortWords}<LEND>[call](){}<LSEP>[](symbol){make.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ShortWords}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){123.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mod}<LEND>[call](){}<LSEP>[](symbol){skmeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){ShortWords}<LEND>[argument 1; litteral](real){30.000000}<LSEP>[argument 2; litteral](str){genetic}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){products}<LSEP>[](symbol){cluster}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mod}<LSEP>[](symbol){cluster}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){products}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mod}<LSEP>[](symbol){cluster}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; litteral](str){example_cluster.csv}
[](){expression}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LSEP>[argument 1; litteral](logical){TRUE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){rpart}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){caret}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){randomForest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){plyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){e1071}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){ranger}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){RColorBrewer}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){party}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){klaR}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){C50}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){arm}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){DMwR}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){tidyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){randomGLM}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){usdm}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){psych}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){mice}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){VIM}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){Hmisc}<LEND>[assign](){<-}<LSEP>[](symbol){workingDir}<LEND>[call](){}<LSEP>[](symbol){getwd}<LEND>[call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){workingDir}<LEND>[assign](){<-}<LSEP>[](symbol){titanicTrain}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanicTrain}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanicTrain}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanicTrain}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanicTrain}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[](symbol){titanicTest}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanicTest}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanicTest}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[](symbol){finalTitanicData}<LEND>[call](){}<LSEP>[](symbol){bind_rows}<LSEP>[](symbol){titanicTrain}<LSEP>[](symbol){titanicTest}<LEND>[assign](){<-}<LSEP>[](symbol){NAplot}<LEND>[call](){}<LSEP>[](symbol){aggr}<LSEP>[](symbol){finalTitanicData}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){navyblue}<LSEP>[argument 1; litteral](str){yellow}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){finalTitanicData}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Missing data}<LSEP>[argument 1; litteral](str){Pattern}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){NAplot}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){finalTitanicData}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){impute}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){finalTitanicData}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[](symbol){NAplot}<LEND>[call](){}<LSEP>[](symbol){aggr}<LSEP>[](symbol){finalTitanicData}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){navyblue}<LSEP>[argument 1; litteral](str){yellow}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){finalTitanicData}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Missing data}<LSEP>[argument 1; litteral](str){Pattern}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){NAplot}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){finalTitanicData}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){impute}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){finalTitanicData}<LSEP>[](symbol){Fare}<LEND>[assign](){<-}<LSEP>[](symbol){NAplot}<LEND>[call](){}<LSEP>[](symbol){aggr}<LSEP>[](symbol){finalTitanicData}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){navyblue}<LSEP>[argument 1; litteral](str){yellow}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){finalTitanicData}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Missing data}<LSEP>[argument 1; litteral](str){Pattern}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){NAplot}<LEND>[assign](){<-}<LSEP>[](symbol){titanicTrain}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){finalTitanicData}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){titanicTest}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){finalTitanicData}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){892.000000}<LSEP>[argument 1; litteral](real){1309.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){fitFormula1}<LEND>[call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[](symbol){fitFormula2}<LEND>[call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[assign](){<-}<LSEP>[](symbol){myControl}<LEND>[call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){repeatedcv}<LSEP>[argument 1; litteral](real){10.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){myMetric}<LSEP>[litteral](str){Accuracy}<LEND>[assign](){<-}<LSEP>[](symbol){fitNB1}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula1}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){bayesglm}<LSEP>[](symbol){myControl}<LSEP>[](symbol){myMetric}<LEND>[assign](){<-}<LSEP>[](symbol){fitNB2}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula2}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){bayesglm}<LSEP>[](symbol){myControl}<LSEP>[](symbol){myMetric}<LEND>[assign](){<-}<LSEP>[](symbol){fitRT1}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula1}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){rf}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitRT2}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula2}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){rf}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitSVMRadial1}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula1}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){svmRadial}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){fitSVMRadial2}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula2}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){svmRadial}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){fitCART1}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula1}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){rpart}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitCART2}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula2}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){rpart}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitC501}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula1}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){C5.0}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitC502}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula2}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){C5.0}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitBaggedCART1}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula1}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){treebag}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitBaggedCART2}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula2}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){treebag}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitKNN1}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula1}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){knn}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){fitKNN2}<LEND>[call](){}<LSEP>[](symbol){train}<LSEP>[](symbol){fitFormula2}<LSEP>[](symbol){titanicTrain}<LSEP>[argument 2; litteral](str){knn}<LSEP>[](symbol){myMetric}<LSEP>[](symbol){myControl}<LEND>[assign](){<-}<LSEP>[](symbol){modelsSummary}<LEND>[call](){}<LSEP>[](symbol){resamples}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){fitBaggedCART1}<LSEP>[](symbol){fitBaggedCART2}<LSEP>[](symbol){fitC501}<LSEP>[](symbol){fitC502}<LSEP>[](symbol){fitCART1}<LSEP>[](symbol){fitCART2}<LSEP>[](symbol){fitKNN1}<LSEP>[](symbol){fitKNN2}<LSEP>[](symbol){fitNB1}<LSEP>[](symbol){fitNB2}<LSEP>[](symbol){fitRT1}<LSEP>[](symbol){fitRT2}<LSEP>[](symbol){fitSVMRadial1}<LSEP>[](symbol){fitSVMRadial2}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){modelsSummary}<LEND>[call](){}<LSEP>[](symbol){dotplot}<LSEP>[](symbol){modelsSummary}<LEND>[](symbol){fitRT2}<LEND>[assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fitRT2}<LSEP>[](symbol){titanicTest}<LEND>[](symbol){prediction}<LEND>[assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanicTest}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){solution}<LSEP>[argument 1; litteral](str){KPSubmission.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){300.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){extractFeatures}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){features}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Pclass}<LSEP>[argument 1; litteral](str){Age}<LSEP>[argument 2; litteral](str){Sex}<LSEP>[argument 3; litteral](str){Parch}<LSEP>[argument 4; litteral](str){SibSp}<LSEP>[argument 5; litteral](str){Fare}<LSEP>[argument 6; litteral](str){Embarked}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fea}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LSEP>[](symbol){features}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){}<LEND>[litteral](str){S}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){SibSp}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){SibSp}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Pclass}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Parch}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Parch}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Sex}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Embarked}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fea}<LEND>[assign](){<-}<LSEP>[](symbol){train2}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){train1}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){extractFeatures}<LSEP>[](symbol){train}<LEND>[](symbol){train2}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){train1}<LEND>[assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){train2}<LSEP>[](symbol){Pclass}<LEND>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){train1}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){neuralnet}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){nnet}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){aod}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){sqldf}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tcltk}<LEND>[assign](){<-}<LSEP>[](symbol){m3}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){m}<LEND>[assign](){<-}<LSEP>[](symbol){m4}<LEND>[call](){}<LSEP>[](symbol){sqldf}<LSEP>[argument 0; litteral](str){select * from m3 where train2 ...}<LEND>[assign](){<-}<LSEP>[](symbol){m5}<LEND>[call](){}<LSEP>[](symbol){sqldf}<LSEP>[argument 0; litteral](str){select * from m3 where train2 ...}<LEND>[assign](){<-}<LSEP>[](symbol){m6}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m4}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){200.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m5}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){200.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){m}<LEND>[assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){train2}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass2}<LSEP>[](symbol){Pclass3}<LEND>[](symbol){Sexmale}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp1}<LEND>[](symbol){SibSp2}<LEND>[](symbol){SibSp3}<LEND>[](symbol){SibSp4}<LEND>[](symbol){SibSp5}<LEND>[](symbol){SibSp8}<LEND>[](symbol){Parch1}<LEND>[](symbol){Parch2}<LEND>[](symbol){Parch3}<LEND>[](symbol){Parch4}<LEND>[](symbol){Parch5}<LEND>[](symbol){Parch6}<LEND>[](symbol){Fare}<LEND>[](symbol){EmbarkedQ}<LEND>[](symbol){EmbarkedS}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){m}<LEND>[argument 2; litteral](real){1000.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[](symbol){r}<LEND>[assign](){<-}<LSEP>[](symbol){m2}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){extractFeatures}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){m2}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){m2}<LEND>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){1_random_forest_r_submission.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){stringr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggthemes}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){12.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){3.000000}<LSEP>[argument 4; litteral](real){4.000000}<LSEP>[argument 5; litteral](real){5.000000}<LSEP>[argument 6; litteral](real){6.000000}<LSEP>[argument 7; litteral](real){7.000000}<LSEP>[argument 8; litteral](real){8.000000}<LSEP>[argument 9; litteral](real){9.000000}<LSEP>[argument 10; litteral](real){10.000000}<LSEP>[argument 11; litteral](real){11.000000}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){full}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){full}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[argument 1; litteral](real){1044.000000}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){male}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){male}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){male}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Fare}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){male}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){full}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Ticket}<LEND>[argument 1; litteral](real){113572.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](str){B28}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){75.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){85.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){}<LEND>[litteral](str){C}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){str_extract}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](str){(Mr|Master|Mrs|Miss)\\.}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[litteral](str){Rare}<LEND>[assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Mr.}<LSEP>[argument 1; litteral](str){Mrs.}<LSEP>[argument 2; litteral](str){Miss.}<LSEP>[argument 3; litteral](str){Master.}<LSEP>[argument 4; litteral](str){Rare}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){NA in Age having title}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[argument 3; litteral](str){\n}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LEND>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){family_size}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){family_size}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){dodge}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){11.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Family Size}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){dodge}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){dodge}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Gender}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){dodge}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){cut}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){full}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){count}<LSEP>[argument 1; litteral](str){dodge}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Pclass}<LSEP>[argument 2; litteral](str){Sex}<LSEP>[argument 3; litteral](str){Embarked}<LSEP>[argument 4; litteral](str){Title}<LEND>[assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){full}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LSEP>[](symbol){index}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[assign](){<-}<LSEP>[](symbol){train2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){full}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){892.000000}<LSEP>[argument 1; litteral](real){1309.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){754.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rf_model_test}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Age}<LEND>[](symbol){Sex}<LEND>[](symbol){Title}<LEND>[](symbol){Fare}<LEND>[](symbol){family_size}<LEND>[](symbol){Embarked}<LEND>[](symbol){train2}<LEND>[call](){}<LSEP>[](symbol){importance}<LSEP>[](symbol){rf_model_test}<LEND>[assign](){<-}<LSEP>[](symbol){rf_model_test}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Age}<LEND>[](symbol){Sex}<LEND>[](symbol){Title}<LEND>[](symbol){Fare}<LEND>[](symbol){family_size}<LEND>[](symbol){train2}<LEND>[assign](){<-}<LSEP>[](symbol){rf_model_test}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Age}<LEND>[](symbol){Sex}<LEND>[](symbol){Title}<LEND>[](symbol){Fare}<LEND>[](symbol){train2}<LEND>[assign](){<-}<LSEP>[](symbol){rf_model_test}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Age}<LEND>[](symbol){Title}<LEND>[](symbol){Fare}<LEND>[](symbol){family_size}<LEND>[](symbol){train2}<LEND>[assign](){<-}<LSEP>[](symbol){rf_model_test}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Age}<LSEP>[](symbol){Title}<LEND>[](symbol){Fare}<LEND>[](symbol){family_size}<LEND>[](symbol){train2}<LEND>[assign](){<-}<LSEP>[](symbol){rf_model}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Age}<LEND>[](symbol){Title}<LEND>[](symbol){Fare}<LEND>[](symbol){family_size}<LEND>[](symbol){train2}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){rf_model}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.400000}<LEND>[call](){}<LSEP>[](symbol){legend}<LSEP>[argument 0; litteral](str){topright}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rf_model}<LSEP>[](symbol){err.rate}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){importance}<LEND>[call](){}<LSEP>[](symbol){importance}<LSEP>[](symbol){rf_model}<LEND>[assign](){<-}<LSEP>[](symbol){varImportance}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){importance}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){importance}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){MeanDecreaseGini}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rankImportance}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){varImportance}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){#}<LEND>[argument 1; call](){}<LSEP>[](symbol){dense_rank}<LEND>[argument 0; call](){}<LSEP>[](symbol){desc}<LSEP>[](symbol){Importance}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){rankImportance}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){reorder}<LSEP>[](symbol){Variables}<LSEP>[](symbol){Importance}<LEND>[](symbol){Importance}<LSEP>[](symbol){Importance}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Variables}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[](symbol){Rank}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.550000}<LSEP>[argument 3; litteral](real){4.000000}<LSEP>[argument 4; litteral](str){red}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Variables}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_few}<LEND>[assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){rf_model}<LSEP>[](symbol){test2}<LEND>[assign](){<-}<LSEP>[](symbol){sol}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){sol}<LSEP>[argument 1; litteral](str){Survived.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){list.files}<LSEP>[argument 0; litteral](str){../input}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){F}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LEND>[argument 0; call](){}<LSEP>[](symbol){ls}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){data.table}<LEND>[assign](){<-}<LSEP>[](symbol){label_train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/gender_age_train.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){character}<LSEP>[argument 1; litteral](str){character}<LSEP>[argument 2; litteral](str){integer}<LSEP>[argument 3; litteral](str){character}<LEND>[assign](){<-}<LSEP>[](symbol){label_test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/gender_age_test.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){character}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label_test}<LSEP>[](symbol){gender}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label_test}<LSEP>[](symbol){age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label_test}<LSEP>[](symbol){group}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){label}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){label_train}<LSEP>[](symbol){label_test}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){label}<LSEP>[](symbol){device_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){label_test}<LSEP>[](symbol){label_train}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){brand}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/phone_brand_device_mo...}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){character}<LSEP>[argument 1; litteral](str){character}<LSEP>[argument 2; litteral](str){character}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){brand}<LSEP>[](symbol){device_id}<LEND>[assign](){<-}<LSEP>[](symbol){brand0}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){brand}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){brand0}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){brand0}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){brand0}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){brand2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){brand0}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){brand0}<LSEP>[](symbol){device_id}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){label1}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){label}<LSEP>[](symbol){brand2}<LSEP>[argument 2; litteral](str){device_id}<LSEP>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){brand}<LSEP>[](symbol){brand0}<LSEP>[](symbol){brand2}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){events}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/events.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){character}<LSEP>[argument 1; litteral](str){character}<LSEP>[argument 2; litteral](str){character}<LSEP>[argument 3; litteral](str){numeric}<LSEP>[argument 4; litteral](str){numeric}<LEND>[call](){}<LSEP>[](symbol){setkeyv}<LSEP>[](symbol){events}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){device_id}<LSEP>[argument 1; litteral](str){event_id}<LEND>[assign](){<-}<LSEP>[](symbol){event_app}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/app_events.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){character}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){event_app}<LSEP>[](symbol){event_id}<LEND>[assign](){<-}<LSEP>[](symbol){events}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){events}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){device_id}<LSEP>[](symbol){event_id}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){event_apps}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){event_app}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){app_id}<LEND>[argument 1; litteral](str){,}<LEND>[argument 3; litteral](str){event_id}<LEND>[assign](){<-}<LSEP>[](symbol){device_event_apps}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){events}<LSEP>[](symbol){event_apps}<LSEP>[argument 2; litteral](str){event_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){events}<LSEP>[](symbol){event_app}<LSEP>[](symbol){event_apps}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){f_split_paste}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](str){,}<LEND>[assign](){<-}<LSEP>[](symbol){device_apps}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){device_event_apps}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){f_split_paste}<LSEP>[](symbol){apps}<LEND>[argument 3; litteral](str){device_id}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){device_event_apps}<LSEP>[](symbol){f_split_paste}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){device_apps}<LSEP>[](symbol){apps}<LEND>[argument 1; litteral](str){,}<LEND>[assign](){<-}<LSEP>[](symbol){device_apps}<LEND>[call](){}<LSEP>[](symbol){data.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){device_apps}<LSEP>[](symbol){device_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){tmp}<LSEP>[](symbol){length}<LEND>[argument 1; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tmp}<LEND>[assign](){<-}<LSEP>[](symbol){d1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){label1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){device_id}<LSEP>[](symbol){phone_brand}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){phone_brand}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){d2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){label1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){device_id}<LSEP>[](symbol){device_model}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_model}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){d3}<LSEP>[](symbol){device_apps}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){device_apps}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){phone_brand}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){phone_brand:}<LSEP>[](symbol){phone_brand}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d2}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){device_model}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){device_model:}<LSEP>[](symbol){device_model}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d3}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){app_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){app_id:}<LSEP>[](symbol){app_id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){d1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){d2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){d3}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){device_id}<LSEP>[argument 1; litteral](str){feature_name}<LEND>[assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){d1}<LSEP>[](symbol){d2}<LSEP>[](symbol){d3}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){d1}<LSEP>[](symbol){d2}<LSEP>[](symbol){d3}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){Matrix}<LEND>[assign](){<-}<LSEP>[](symbol){ii}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){device_id}<LEND>[assign](){<-}<LSEP>[](symbol){jj}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){feature_name}<LEND>[assign](){<-}<LSEP>[](symbol){id_i}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){device_id}<LEND>[](symbol){ii}<LEND>[assign](){<-}<LSEP>[](symbol){id_j}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){feature_name}<LEND>[](symbol){jj}<LEND>[assign](){<-}<LSEP>[](symbol){id_ij}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){id_i}<LSEP>[](symbol){id_j}<LEND>[assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){Matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ii}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){jj}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ii}<LSEP>[](symbol){jj}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){M}<LSEP>[](symbol){id_ij}<LEND>[litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){ii}<LSEP>[](symbol){jj}<LSEP>[](symbol){id_i}<LSEP>[](symbol){id_j}<LSEP>[](symbol){id_ij}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_id}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){label1}<LSEP>[](symbol){device_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){M}<LSEP>[](symbol){label1}<LEND>[assign](){<-}<LSEP>[](symbol){x_train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){tmp_cnt_train}<LEND>[call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){x_train}<LEND>[assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp_cnt_train}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp_cnt_train}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x_train}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){x_train}<LSEP>[](symbol){tmp_cnt_train}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){group_name}<LEND>[call](){}<LSEP>[](symbol){na.omit}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){idx_train}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){idx_test}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){train_data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){idx_train}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test_data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){idx_test}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){train_label}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){idx_train}<LEND>[](symbol){group_name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test_label}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){idx_test}<LEND>[](symbol){group_name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){train_data}<LSEP>[](symbol){train_label}<LSEP>[argument 2; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){dtest}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){test_data}<LSEP>[](symbol){test_label}<LSEP>[argument 2; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){gblinear}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group_name}<LEND>[argument 2; litteral](str){multi:softprob}<LSEP>[argument 3; litteral](str){mlogloss}<LSEP>[argument 4; litteral](real){0.010000}<LSEP>[argument 5; litteral](real){5.000000}<LSEP>[argument 6; litteral](real){0.000000}<LSEP>[argument 7; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){ntree}<LSEP>[litteral](real){330.000000}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){114.000000}<LEND>[assign](){<-}<LSEP>[](symbol){fit_xgb}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){dtrain}<LSEP>[](symbol){ntree}<LSEP>[](symbol){watchlist}<LSEP>[argument 4; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit_xgb}<LSEP>[](symbol){dtest}<LEND>[assign](){<-}<LSEP>[](symbol){pred_detail}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group_name}<LEND>[assign](){<-}<LSEP>[](symbol){res_submit}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){id}<LSEP>[](symbol){idx_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){pred_detail}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){res_submit}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){device_id}<LSEP>[](symbol){group_name}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){res_submit}<LSEP>[argument 1; litteral](str){submit_v0_7_1.csv}<LSEP>[](symbol){F}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){parallel}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){vtreat}<LEND>[assign](){=}<LSEP>[](symbol){num_cpu}<LSEP>[litteral](real){8.000000}<LEND>[assign](){=}<LSEP>[](symbol){cl}<LEND>[call](){}<LSEP>[](symbol){makePSOCKcluster}<LSEP>[](symbol){num_cpu}<LEND>[assign](){=}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){=}<LSEP>[](symbol){testdf}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){id}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testdf}<LSEP>[](symbol){id}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[](symbol){mk}<LEND>[call](){}<LSEP>[](symbol){designTreatmentsN}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){131.000000}<LEND>[argument 2; litteral](str){loss}<LSEP>[](symbol){T}<LSEP>[](symbol){cl}<LEND>[assign](){=}<LSEP>[](symbol){treatedtrain}<LEND>[call](){}<LSEP>[](symbol){prepare}<LSEP>[](symbol){mk}<LSEP>[](symbol){df}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){treatedtest}<LEND>[call](){}<LSEP>[](symbol){prepare}<LSEP>[](symbol){mk}<LSEP>[](symbol){testdf}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){df}<LEND>[assign](){=}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.900000}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){treatedtrain}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){valid}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){treatedtrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){gbmtrain.csv}<LSEP>[](symbol){F}<LSEP>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){valid}<LSEP>[argument 1; litteral](str){gbmvalid.csv}<LSEP>[](symbol){F}<LSEP>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){treatedtest}<LSEP>[argument 1; litteral](str){gbmtest.csv}<LSEP>[](symbol){F}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){formattable}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){lubridate}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){stringr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggthemes}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){maps}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){scales}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){knitr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){kableExtra}<LEND>[assign](){<-}<LSEP>[](symbol){theme_mj}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){font}<LSEP>[litteral](str){Arial}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){my_color}<LSEP>[litteral](str){#333333}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theme_color}<LSEP>[litteral](str){#FAFAFA}<LEND>[statement 3; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){plain}<LSEP>[argument 1; litteral](real){16.000000}<LSEP>[](symbol){font}<LSEP>[](symbol){my_color}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){plain}<LSEP>[argument 1; litteral](real){16.000000}<LSEP>[](symbol){font}<LSEP>[](symbol){my_color}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){16.000000}<LSEP>[](symbol){font}<LSEP>[](symbol){my_color}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){26.000000}<LSEP>[](symbol){font}<LSEP>[](symbol){my_color}<LSEP>[argument 3; litteral](str){bold}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_blank}<LEND>[argument 5; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[](symbol){font}<LSEP>[argument 2; litteral](str){plain}<LEND>[argument 3; call](){}<LSEP>[](symbol){margin}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[](symbol){my_color}<LEND>[argument 6; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){14.000000}<LSEP>[](symbol){my_color}<LSEP>[](symbol){font}<LEND>[argument 7; call](){}<LSEP>[](symbol){element_blank}<LEND>[argument 8; call](){}<LSEP>[](symbol){element_blank}<LEND>[argument 9; call](){}<LSEP>[](symbol){element_blank}<LEND>[argument 10; litteral](real){0.500000}<LEND>[argument 11; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){12.000000}<LSEP>[](symbol){font}<LSEP>[argument 2; litteral](str){bold}<LSEP>[](symbol){my_color}<LEND>[argument 12; call](){}<LSEP>[](symbol){element_blank}<LEND>[argument 13; call](){}<LSEP>[](symbol){element_blank}<LEND>[argument 14; call](){}<LSEP>[](symbol){element_blank}<LEND>[argument 15; call](){}<LSEP>[](symbol){element_text}<LSEP>[](symbol){my_color}<LSEP>[](symbol){font}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 16; call](){}<LSEP>[](symbol){element_rect}<LSEP>[](symbol){theme_color}<LEND>[argument 17; call](){}<LSEP>[](symbol){element_line}<LSEP>[argument 0; litteral](real){0.450000}<LEND>[argument 18; call](){}<LSEP>[](symbol){element_line}<LSEP>[argument 0; litteral](str){light grey}<LSEP>[argument 1; litteral](real){0.450000}<LEND>[argument 19; call](){}<LSEP>[](symbol){element_rect}<LSEP>[](symbol){theme_color}<LEND>[argument 20; call](){}<LSEP>[](symbol){element_rect}<LSEP>[](symbol){theme_color}<LEND>[argument 21; call](){}<LSEP>[](symbol){element_line}<LSEP>[argument 0; litteral](str){dashed}<LSEP>[argument 1; litteral](str){light grey}<LSEP>[argument 2; litteral](real){0.450000}<LEND>[assign](){<-}<LSEP>[](symbol){answers}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/answers.csv}<LEND>[assign](){<-}<LSEP>[](symbol){comments}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/comments.csv}<LEND>[assign](){<-}<LSEP>[](symbol){emails}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/emails.csv}<LEND>[assign](){<-}<LSEP>[](symbol){group_memberships}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/group_memberships.csv}<LEND>[assign](){<-}<LSEP>[](symbol){groups}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/groups.csv}<LEND>[assign](){<-}<LSEP>[](symbol){matches}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/matches.csv}<LEND>[assign](){<-}<LSEP>[](symbol){professionals}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/professionals.csv}<LEND>[assign](){<-}<LSEP>[](symbol){questions}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/questions.csv}<LEND>[assign](){<-}<LSEP>[](symbol){school_memberships}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/school_memberships.csv}<LEND>[assign](){<-}<LSEP>[](symbol){students}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/students.csv}<LEND>[assign](){<-}<LSEP>[](symbol){tag_questions}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/tag_questions.csv}<LEND>[assign](){<-}<LSEP>[](symbol){tag_users}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/tag_users.csv}<LEND>[assign](){<-}<LSEP>[](symbol){tags}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/tags.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){emails}<LSEP>[](symbol){emails_frequency_level}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){email_notification_}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){emails}<LSEP>[](symbol){emails_frequency_level}<LEND>[assign](){<-}<LSEP>[](symbol){questions}<LEND>[call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){students}<LSEP>[](symbol){questions}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){questions_author_id}<LEND>[assign](){<-}<LSEP>[](symbol){questions_answers}<LEND>[call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){questions}<LSEP>[](symbol){answers}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){answers_question_id}<LEND>[assign](){<-}<LSEP>[](symbol){qa_professionals}<LEND>[call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){questions_answers}<LSEP>[](symbol){professionals}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){professionals_id}<LEND>[assign](){<-}<LSEP>[](symbol){prof_loc}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){professionals_location}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){top_n}<LSEP>[argument 0; litteral](real){15.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){professionals_location}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){professionals_location}<LSEP>[argument 1; litteral](str){New York, New York}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){professionals_location}<LSEP>[argument 1; litteral](str){Greater New York City Area}<LEND>[argument 1; litteral](str){y}<LSEP>[argument 2; litteral](str){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){reorder}<LSEP>[](symbol){professionals_location}<LSEP>[](symbol){n}<LEND>[](symbol){n}<LSEP>[](symbol){filler}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_col}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){9.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](NULL){NULL}<LSEP>[argument 1; litteral](str){Num. Professionals}<LSEP>[argument 2; litteral](str){CareerVillage Professionals Lo...}<LSEP>[argument 3; litteral](str){New York has the largest numbe...}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){dark grey}<LSEP>[argument 1; litteral](str){#354c7c}<LEND>[](symbol){F}<LEND>[](symbol){prof_loc}<LEND>[assign](){<-}<LSEP>[](symbol){qa_professionals}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_date}<LSEP>[](symbol){questions_date_added}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){lubridate}<LSEP>[](symbol){year}<LEND>[](symbol){date_added_no_time}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_date}<LSEP>[](symbol){answers_date_added}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){lubridate}<LSEP>[](symbol){year}<LEND>[](symbol){date_answered_no_time}<LEND>[assign](){<-}<LSEP>[](symbol){added}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){year_added}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[assign](){<-}<LSEP>[](symbol){answered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){year_answered}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[assign](){<-}<LSEP>[](symbol){add_ans}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){left_join}<LSEP>[](symbol){added}<LSEP>[](symbol){answered}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){year_answered}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){year_added}<LEND>[assign](){<-}<LSEP>[](symbol){qa_time_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){add_ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){year}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){n_added}<LSEP>[argument 1; litteral](str){Questions Added}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){n_added}<LSEP>[argument 1; litteral](str){Questions Added}<LEND>[argument 1; litteral](real){1.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){n_answered}<LSEP>[argument 1; litteral](str){Questions Answered}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){n_answered}<LSEP>[argument 1; litteral](str){Questions Answered}<LEND>[argument 1; litteral](real){1.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.200000}<LSEP>[argument 1; litteral](real){0.850000}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){90.000000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](NULL){NULL}<LSEP>[argument 1; litteral](str){Num. of Questions}<LSEP>[argument 2; litteral](NULL){NULL}<LSEP>[argument 3; litteral](str){Questions on CareerVillage}<LSEP>[argument 4; litteral](str){Interesting phenomenon observe...}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#354c7c}<LSEP>[argument 1; litteral](str){dark grey}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){comma_format}<LSEP>[argument 0; litteral](real){0.001000}<LSEP>[argument 1; litteral](str){k}<LEND>[](symbol){qa_time_plot}<LEND>[assign](){<-}<LSEP>[](symbol){years_answer}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){year_added}<LSEP>[](symbol){year_answered}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){years_to_answer}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[assign](){<-}<LSEP>[](symbol){years_answer_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){years_answer}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){years_to_answer}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){Fill}<LSEP>[argument 2; litteral](str){No}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){years_to_answer}<LSEP>[](symbol){n}<LSEP>[](symbol){filler}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_col}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Years to Answer}<LSEP>[argument 1; litteral](str){Num. Questions}<LSEP>[argument 2; litteral](str){Are questions answered fast en...}<LSEP>[argument 3; litteral](str){Some questions are taking year...}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){comma_format}<LSEP>[argument 0; litteral](real){0.001000}<LSEP>[argument 1; litteral](str){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){pretty_breaks}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#354c7c}<LSEP>[argument 1; litteral](str){dark grey}<LEND>[](symbol){F}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_curve}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){36000.000000}<LSEP>[argument 3; litteral](real){35000.000000}<LSEP>[argument 4; litteral](real){0.300000}<LEND>[argument 5; call](){}<LSEP>[](symbol){arrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){unit}<LSEP>[argument 0; litteral](real){0.030000}<LSEP>[argument 1; litteral](str){npc}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){annotate}<LSEP>[argument 0; litteral](str){text}<LSEP>[argument 1; litteral](real){4.100000}<LSEP>[argument 2; litteral](real){36500.000000}<LSEP>[argument 3; litteral](str){Most questions are answered wi...}<LSEP>[argument 4; litteral](str){#5b5b5b}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_curve}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){1.500000}<LSEP>[argument 2; litteral](real){12000.000000}<LSEP>[argument 3; litteral](real){8000.000000}<LSEP>[argument 4; litteral](real){0.300000}<LEND>[argument 5; call](){}<LSEP>[](symbol){arrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){unit}<LSEP>[argument 0; litteral](real){0.030000}<LSEP>[argument 1; litteral](str){npc}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){annotate}<LSEP>[argument 0; litteral](str){text}<LSEP>[argument 1; litteral](real){4.700000}<LSEP>[argument 2; litteral](real){13000.000000}<LSEP>[argument 3; litteral](str){#5b5b5b}<LSEP>[argument 4; litteral](str){A number of questions take at\...}<LEND>[](symbol){years_answer_plot}<LEND>[assign](){<-}<LSEP>[](symbol){worst_answers}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){date_added_no_time}<LSEP>[](symbol){date_answered_no_time}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){answers_author_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){time_answer}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){avg_time_answer}<LEND>[argument 1; call](){}<LSEP>[](symbol){top_n}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){worst_answers}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){answers_author_id}<LSEP>[](symbol){avg_time_answer}<LEND>[argument 1; call](){}<LSEP>[](symbol){kable}<LEND>[argument 1; call](){}<LSEP>[](symbol){kable_styling}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){striped}<LSEP>[argument 1; litteral](str){hover}<LEND>[argument 1; litteral](str){center}<LEND>[assign](){<-}<LSEP>[](symbol){qa_professionals}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){date_added_no_time}<LSEP>[](symbol){date_answered_no_time}<LEND>[assign](){<-}<LSEP>[](symbol){em_match}<LEND>[call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){matches}<LSEP>[](symbol){emails}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){emails_id}<LEND>[assign](){<-}<LSEP>[](symbol){qa_em_match}<LEND>[call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){em_match}<LSEP>[](symbol){qa_professionals}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){questions_id}<LEND>[assign](){<-}<LSEP>[](symbol){rec_ans}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_em_match}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){emails_recipient_id}<LSEP>[](symbol){answers_author_id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qa_professionals}<LSEP>[](symbol){received_email}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qa_professionals}<LSEP>[](symbol){answers_author_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rec_ans}<LSEP>[](symbol){emails_recipient_id}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){log_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){time_to_answer}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){received_email}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){0.050000}<LSEP>[argument 1; litteral](str){dark grey}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_smooth}<LSEP>[argument 0; litteral](str){glm}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binomial}<LEND>[](symbol){F}<LSEP>[argument 3; litteral](str){#354c7c}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Days to Answer}<LSEP>[argument 1; litteral](str){Prob. Match}<LSEP>[argument 2; litteral](str){Email Match/Days to Answer}<LSEP>[argument 3; litteral](str){Email matches tend to take les...}<LEND>[](symbol){log_plot}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rec_ans}<LSEP>[](symbol){rec_daily}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rec_ans}<LSEP>[](symbol){emails_frequency_level}<LEND>[argument 1; litteral](str){daily}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rec_ans_temp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){rec_ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rec_daily}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){qa_professionals}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_date}<LSEP>[](symbol){professionals_date_joined}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){lubridate}<LSEP>[](symbol){year}<LEND>[](symbol){joined_no_time}<LEND>[assign](){<-}<LSEP>[](symbol){qa_professionals}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){answers_author_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rec_ans_temp}<LSEP>[](symbol){answers_author_id}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){time_to_answer}<LSEP>[argument 1; litteral](real){31.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){qa_professionals}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){joined_year}<LSEP>[argument 1; litteral](real){2011.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){joined_year}<LSEP>[argument 1; litteral](real){2015.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){longtime_members}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){longtime_member}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){answers_author_id}<LEND>[assign](){<-}<LSEP>[](symbol){scoring_table}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_date}<LSEP>[](symbol){professionals_date_joined}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){lubridate}<LSEP>[](symbol){year}<LEND>[](symbol){joined_no_time}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){answers_author_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){quick_resp}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){quick_resp}<LSEP>[](symbol){n_q_answered}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){per_q_quick_resp}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){answers_author_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rec_ans}<LSEP>[](symbol){emails_recipient_id}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){answers_author_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){longtime_members}<LSEP>[](symbol){answers_author_id}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){score_cal}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){q_ans}<LSEP>[](symbol){quick_resp}<LSEP>[](symbol){per_q_quick_resp}<LSEP>[](symbol){rec_daily}<LSEP>[](symbol){long_mem}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){initial_result}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q_ans}<LSEP>[](symbol){per_q_quick_resp}<LEND>[](symbol){rec_daily}<LEND>[](symbol){long_mem}<LEND>[statement 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){initial_result}<LEND>[assign](){<-}<LSEP>[](symbol){scoring_table}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){scoring_table}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){score_cal}<LSEP>[](symbol){n_q_answered}<LSEP>[](symbol){quick_resp}<LSEP>[](symbol){per_q_quick_resp}<LSEP>[](symbol){rec_daily}<LSEP>[](symbol){longtime_member}<LEND>[assign](){<-}<LSEP>[](symbol){scoring_table}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){scoring_table}<LEND>[argument 1; call](){}<LSEP>[](symbol){top_n}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){score}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){scoring_table}<LEND>[argument 1; call](){}<LSEP>[](symbol){kable}<LEND>[argument 1; call](){}<LSEP>[](symbol){kable_styling}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){striped}<LSEP>[argument 1; litteral](str){hover}<LEND>[assign](){<-}<LSEP>[](symbol){emails}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){emails}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_date}<LSEP>[](symbol){emails_date_sent}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){lubridate}<LSEP>[](symbol){year}<LEND>[](symbol){date_sent_no_time}<LEND>[assign](){<-}<LSEP>[](symbol){em_time}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){emails}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){sent_year}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){sent_year}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](str){#354c7c}<LSEP>[argument 1; litteral](real){1.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LSEP>[argument 0; litteral](str){#354c7c}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){90.000000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](NULL){NULL}<LSEP>[argument 1; litteral](str){Num. Emails}<LSEP>[argument 2; litteral](str){CareerVillage Email Volume by ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){comma_format}<LSEP>[argument 0; litteral](real){0.001000}<LSEP>[argument 1; litteral](str){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){pretty_breaks}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[](symbol){em_time}<LEND>[assign](){<-}<LSEP>[](symbol){em_freq}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){emails}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){emails_frequency_level}<LSEP>[argument 1; litteral](str){daily}<LEND>[argument 1; litteral](str){y}<LSEP>[argument 2; litteral](str){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){emails_frequency_level}<LSEP>[](symbol){filler}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](real){0.450000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){dark grey}<LSEP>[argument 1; litteral](str){#354c7c}<LEND>[](symbol){F}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){comma_format}<LSEP>[argument 0; litteral](real){0.000010}<LSEP>[argument 1; litteral](str){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](NULL){NULL}<LSEP>[argument 1; litteral](str){Num. Emails}<LSEP>[argument 2; litteral](str){CareerVillage Emails}<LSEP>[argument 3; litteral](str){Most emails are received daily.}<LEND>[](symbol){em_freq}<LEND>[assign](){<-}<LSEP>[](symbol){years_ans_rec}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){rec_ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_date}<LSEP>[](symbol){emails_date_sent}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){lubridate}<LSEP>[](symbol){year}<LEND>[](symbol){date_sent_no_time}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){year_added}<LSEP>[](symbol){year_answered}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){year_answered}<LSEP>[](symbol){sent_year}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){year_from_email}<LSEP>[](symbol){emails_frequency_level}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[assign](){<-}<LSEP>[](symbol){years_ans_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){years_ans_rec}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){year_from_email}<LEND>[](symbol){n}<LSEP>[](symbol){emails_frequency_level}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_col}<LSEP>[argument 0; litteral](real){0.450000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.750000}<LSEP>[argument 1; litteral](real){0.700000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#354c7c}<LSEP>[argument 1; litteral](str){#505a74}<LSEP>[argument 2; litteral](str){#b0b8ce}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){comma_format}<LSEP>[argument 0; litteral](real){0.001000}<LSEP>[argument 1; litteral](str){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Years to Answer}<LSEP>[argument 1; litteral](str){Num. Questions}<LSEP>[argument 2; litteral](str){Email Frequency}<LSEP>[argument 3; litteral](str){The "Recipients"}<LSEP>[argument 4; litteral](str){Of questions answered by match...}<LEND>[](symbol){years_ans_plot}<LEND>[assign](){<-}<LSEP>[](symbol){comp_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){rec_ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){difftime}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rec_ans}<LSEP>[](symbol){date_added_no_time}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rec_ans}<LSEP>[](symbol){date_answered_no_time}<LEND>[argument 2; litteral](str){days}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){days_answer}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){days_answer}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](str){#354c7c}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_wrap}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){emails_frequency_level}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Days to Answer}<LSEP>[argument 1; litteral](str){Density}<LSEP>[argument 2; litteral](str){Notification Comparison}<LSEP>[argument 3; litteral](str){Immediate email notifications ...}<LEND>[](symbol){comp_plot}<LEND>[assign](){<-}<LSEP>[](symbol){tags_and_q}<LEND>[call](){}<LSEP>[](symbol){left_join}<LSEP>[](symbol){tags}<LSEP>[](symbol){tag_questions}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tag_questions_tag_id}<LEND>[assign](){<-}<LSEP>[](symbol){tag_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){tags_and_q}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){tags_tag_name}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){top_n}<LSEP>[argument 0; litteral](real){15.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tags_tag_name}<LSEP>[argument 1; litteral](str){college}<LEND>[argument 1; litteral](str){fill}<LSEP>[argument 2; litteral](str){no}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){reorder}<LSEP>[](symbol){tags_tag_name}<LSEP>[](symbol){n}<LEND>[](symbol){n}<LSEP>[](symbol){filler}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_col}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_mj}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](NULL){NULL}<LSEP>[argument 1; litteral](str){Num. Tagged Questions}<LSEP>[argument 2; litteral](str){College, college college!}<LSEP>[argument 3; litteral](str){Most tagged questions involve ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#354c7c}<LSEP>[argument 1; litteral](str){dark grey}<LEND>[](symbol){F}<LEND>[](symbol){tag_plot}<LEND>[assign](){<-}<LSEP>[](symbol){students_usa}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){qa_professionals}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){students_location}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){top_n}<LSEP>[argument 0; litteral](real){12.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){students_location}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){students_location}<LSEP>[argument 1; litteral](str){Bengaluru, Karnataka, India}<LEND>[assign](){<-}<LSEP>[](symbol){students_usa}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){students_usa}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_remove}<LSEP>[](symbol){students_location}<LSEP>[argument 1; litteral](str){.*, }<LEND>[argument 1; call](){}<LSEP>[](symbol){str_remove}<LSEP>[](symbol){students_location}<LSEP>[argument 1; litteral](str){,.*}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){state.abb}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){state}<LSEP>[](symbol){state.name}<LEND>[argument 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_c}<LEND>[](symbol){city}<LSEP>[](symbol){abb}<LSEP>[argument 2; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){students_location}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){state}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){city}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){abb}<LEND>[assign](){<-}<LSEP>[](symbol){students_usa}<LEND>[call](){}<LSEP>[](symbol){left_join}<LSEP>[](symbol){students_usa}<LSEP>[](symbol){us.cities}<LSEP>[argument 2; litteral](str){name}<LEND>[assign](){<-}<LSEP>[](symbol){font}<LSEP>[litteral](str){Arial}<LEND>[assign](){<-}<LSEP>[](symbol){my_color}<LSEP>[litteral](str){#333333}<LEND>[assign](){<-}<LSEP>[](symbol){usa}<LEND>[call](){}<LSEP>[](symbol){map_data}<LSEP>[argument 0; litteral](str){state}<LEND>[assign](){<-}<LSEP>[](symbol){us_map_students}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){usa}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_polygon}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){long}<LSEP>[](symbol){lat}<LSEP>[](symbol){group}<LEND>[argument 1; litteral](str){black}<LSEP>[argument 2; litteral](str){#FAFAFA}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_map}<LSEP>[argument 0; litteral](real){14.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){26.000000}<LSEP>[](symbol){font}<LSEP>[](symbol){my_color}<LSEP>[argument 3; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_blank}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[](symbol){font}<LSEP>[argument 2; litteral](str){plain}<LEND>[argument 3; call](){}<LSEP>[](symbol){margin}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[](symbol){my_color}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){14.000000}<LSEP>[](symbol){my_color}<LSEP>[](symbol){font}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_map}<LSEP>[argument 0; litteral](str){albers}<LSEP>[argument 1; litteral](real){39.000000}<LSEP>[argument 2; litteral](real){45.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[](symbol){students_usa}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){long}<LSEP>[](symbol){lat}<LSEP>[](symbol){n}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_continuous}<LSEP>[argument 0; litteral](str){#D1E5F0}<LSEP>[argument 1; litteral](str){#053061}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_continuous}<LSEP>[](symbol){F}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Num. Students}<LSEP>[argument 1; litteral](str){Students in the USA}<LSEP>[argument 2; litteral](str){US students are primarily base...}<LEND>[](symbol){us_map_students}<LEND>[assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){students_usa}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){name}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){name}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){table}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){color_bar}<LSEP>[argument 0; litteral](str){#D1E5F0}<LEND>[](symbol){Num. Students}<LEND>[argument 1; call](){}<LSEP>[](symbol){kable}<LSEP>[](symbol){F}<LEND>[argument 1; call](){}<LSEP>[](symbol){kable_styling}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){hover}<LSEP>[argument 1; litteral](str){striped}<LEND>[argument 1; litteral](str){center}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){train}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggmap}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){geosphere}<LEND>[assign](){<-}<LSEP>[](symbol){distance}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){longitude}<LSEP>[](symbol){latitude}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dist1}<LEND>[call](){}<LSEP>[](symbol){distHaversine}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stations}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[](symbol){Longitude}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stations}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[](symbol){Latitude}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){longitude}<LSEP>[](symbol){latitude}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dist2}<LEND>[call](){}<LSEP>[](symbol){distHaversine}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stations}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[](symbol){Longitude}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stations}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[](symbol){Latitude}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){longitude}<LSEP>[](symbol){latitude}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){dist1}<LSEP>[](symbol){dist2}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mapdata}<LEND>[call](){}<LSEP>[](symbol){readRDS}<LSEP>[argument 0; litteral](str){../input/mapdata_copyright_ope...}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){stations}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){41.995000}<LSEP>[argument 1; litteral](real){41.786000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){87.933000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){87.752000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){stations}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Station}<LSEP>[argument 1; litteral](str){Latitude}<LSEP>[argument 2; litteral](str){Longitude}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Station}<LEND>[call](){}<LSEP>[](symbol){mapply}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Longitude}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Latitude}<LEND>[assign](){<-}<LSEP>[](symbol){pl}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggmap}<LSEP>[](symbol){mapdata}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Longitude}<LSEP>[](symbol){Latitude}<LEND>[argument 2; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Station}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[](symbol){stations}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Longitude}<LSEP>[](symbol){Latitude}<LSEP>[](symbol){Station}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){green}<LEND>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){ggsave}<LSEP>[argument 0; litteral](str){rplot.png}<LSEP>[](symbol){pl}<LSEP>[argument 2; litteral](real){100.000000}<LSEP>[argument 3; litteral](real){10.000000}<LSEP>[argument 4; litteral](real){15.000000}<LSEP>[argument 5; litteral](str){in}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[assign](){<-}<LSEP>[](symbol){ppl}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/people.csv}<LEND>[assign](){<-}<LSEP>[](symbol){p_logi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ppl}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){ppl}<LSEP>[](symbol){is.logical}<LEND>[control flow](){for}<LSEP>[](symbol){col}<LSEP>[](symbol){p_logi}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set}<LSEP>[](symbol){ppl}<LSEP>[](symbol){col}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ppl}<LSEP>[](symbol){col}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){p_logi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ppl}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){date}<LEND>[argument 1; litteral](str){%Y-%m-%d}<LEND>[assign](){<-}<LSEP>[](symbol){activs}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/act_train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){TestActivs}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/act_test.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){TestActivs}<LSEP>[](symbol){outcome}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){activs}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){activs}<LSEP>[](symbol){TestActivs}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){TestActivs}<LEND>[assign](){<-}<LSEP>[](symbol){activs}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){activs}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){people_id}<LSEP>[argument 1; litteral](str){outcome}<LSEP>[argument 2; litteral](str){activity_id}<LSEP>[argument 3; litteral](str){date}<LEND>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){d1}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){activs}<LSEP>[](symbol){ppl}<LSEP>[argument 2; litteral](str){people_id}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){testset}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ppl}<LSEP>[](symbol){people_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){people_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){outcome}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){activdate}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){date.x}<LEND>[argument 1; litteral](str){%Y-%m-%d}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){activs}<LEND>[assign](){<-}<LSEP>[](symbol){minactivdate}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){activdate}<LEND>[assign](){<-}<LSEP>[](symbol){maxactivdate}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){activdate}<LEND>[assign](){<-}<LSEP>[](symbol){alldays}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){minactivdate}<LSEP>[](symbol){maxactivdate}<LSEP>[argument 2; litteral](str){day}<LEND>[assign](){<-}<LSEP>[](symbol){allCompaniesAndDays}<LEND>[call](){}<LSEP>[](symbol){data.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){expand.grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){group_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){people_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ppl}<LSEP>[](symbol){people_id}<LEND>[](symbol){testset}<LEND>[](symbol){alldays}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){allCompaniesAndDays}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){group_1}<LSEP>[argument 1; litteral](str){date.p}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){allCompaniesAndDays}<LSEP>[argument 1; litteral](str){group_1}<LSEP>[argument 2; litteral](str){date.p}<LEND>[assign](){<-}<LSEP>[](symbol){meanbycomdate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d1}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){people_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ppl}<LSEP>[](symbol){people_id}<LEND>[](symbol){testset}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){outcome}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){group_1}<LSEP>[argument 1; litteral](str){activdate}<LEND>[assign](){<-}<LSEP>[](symbol){allCompaniesAndDays}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){allCompaniesAndDays}<LSEP>[](symbol){meanbycomdate}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){group_1}<LSEP>[argument 1; litteral](str){date.p}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){group_1}<LSEP>[argument 1; litteral](str){activdate}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){interpolateFun}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){borders}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){forward_border}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){borders}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){borders}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){backward_border}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){borders}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){borders}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){forward_border_x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){forward_border}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){forward_border_x}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){forward_border_x}<LEND>[call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){forward_border_x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){forward_border_x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){backward_border_x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){backward_border}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){backward_border_x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){forward_border_x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){forward_x_fill}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){forward_border_x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){forward_border}<LSEP>[](symbol){backward_border}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){backward_x_fill}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){backward_border_x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){forward_border}<LSEP>[](symbol){backward_border}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){forward_x_fill_2}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){forward_border}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){forward_border}<LSEP>[](symbol){backward_border}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){forward_x_fill}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){backward_x_fill_2}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){forward_x_fill}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){backward_border}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){forward_border}<LSEP>[](symbol){backward_border}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){vec}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){forward_x_fill}<LSEP>[](symbol){backward_x_fill}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vec}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allCompaniesAndDays}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){filled}<LEND>[argument 1; call](){}<LSEP>[](symbol){interpolateFun}<LSEP>[](symbol){V1}<LEND>[argument 3; litteral](str){group_1}<LEND>[assign](){<-}<LSEP>[](symbol){d1}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){d1}<LSEP>[](symbol){allCompaniesAndDays}<LSEP>[](symbol){T}<LSEP>[](symbol){F}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){group_1}<LSEP>[argument 1; litteral](str){activdate}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){group_1}<LSEP>[argument 1; litteral](str){date.p}<LEND>[assign](){<-}<LSEP>[](symbol){testsetdt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){people_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ppl}<LSEP>[](symbol){people_id}<LEND>[](symbol){testset}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){activity_id}<LSEP>[argument 1; litteral](str){filled}<LEND>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testsetdt}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testsetdt}<LSEP>[](symbol){filled}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){filled}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testsetdt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){filled}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){testsetdt}<LEND>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){outcome}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){testsetdt}<LSEP>[argument 1; litteral](str){Submission.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){plyr}<LEND>[assign](){<-}<LSEP>[](symbol){Mode}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ux}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){x}<LEND>[statement 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ux}<LEND>[argument 1; call](){}<LSEP>[](symbol){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){tabulate}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){x}<LSEP>[](symbol){ux}<LEND>[assign](){<-}<LSEP>[](symbol){fitModel}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sequence}<LSEP>[](symbol){numberOfPoints}<LSEP>[](symbol){forSubmission}<LSEP>[](symbol){modeFallbackThreshold}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sequence}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){sequence}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){forSubmission}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){oos}<LEND>[call](){}<LSEP>[](symbol){tail}<LSEP>[](symbol){sequence}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sequence}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){sequence}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sequence}<LEND>[](symbol){numberOfPoints}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sequence}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){prediction}<LSEP>[litteral](logical){NA}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){tail}<LSEP>[](symbol){sequence}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mae}<LSEP>[litteral](logical){NA}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){tail}<LSEP>[](symbol){sequence}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){numberOfPoints}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){formulaString}<LSEP>[litteral](str){y~}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numberOfPoints}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){x}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sequence}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sequence}<LEND>[](symbol){numberOfPoints}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){formulaString}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){formulaString}<LSEP>[argument 1; litteral](str){+x}<LSEP>[](symbol){i}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){formulaString}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){~\\+}<LSEP>[argument 1; litteral](str){~}<LSEP>[](symbol){formulaString}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){formulaString}<LEND>[](symbol){df}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mae}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){residuals}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LSEP>[](symbol){forSubmission}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){mae}<LSEP>[](symbol){modeFallbackThreshold}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){Mode}<LSEP>[](symbol){sequence}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numberOfPoints}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){x}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sequence}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sequence}<LEND>[](symbol){numberOfPoints}<LEND>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){df}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LSEP>[](symbol){df}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){prediction}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){forSubmission}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){prediction}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){prediction}<LSEP>[](symbol){mae}<LSEP>[](symbol){oos}<LEND>[argument 3; call](){}<LSEP>[](symbol){Mode}<LSEP>[](symbol){sequence}<LEND>[assign](){<-}<LSEP>[](symbol){evaluateResults}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){results}<LSEP>[](symbol){modeFallbackThreshold}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){prediction}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){oos}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){mae}<LEND>[](symbol){modeFallbackThreshold}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){mode}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){oos}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){mae}<LEND>[](symbol){modeFallbackThreshold}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){prediction}<LEND>[assign](){<-}<LSEP>[](symbol){generateSubmission}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){filename}<LSEP>[](symbol){numberOfPoints}<LSEP>[](symbol){modeFallbackThreshold}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){data}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){fitModel}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Sequence}<LEND>[](symbol){i}<LEND>[](symbol){numberOfPoints}<LSEP>[](symbol){modeFallbackThreshold}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LSEP>[](symbol){verbose}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1000.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Done}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){sequences}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){model}<LEND>[statement 1; call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){999.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[](symbol){filename}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){generateSubmission}<LSEP>[argument 0; litteral](str){linearPrevious10WithModeFallba...}<LSEP>[argument 1; litteral](real){10.000000}<LSEP>[argument 2; litteral](real){15.000000}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart}<LEND>[assign](){<-}<LSEP>[](symbol){my_tree_two}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){train}<LSEP>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){my_tree_two}<LEND>[call](){}<LSEP>[](symbol){text}<LSEP>[](symbol){my_tree_two}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){FeatureHashing}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Matrix}<LEND>[assign](){<-}<LSEP>[](symbol){people}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/people.csv}<LEND>[assign](){<-}<LSEP>[](symbol){p_logi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){people}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){people}<LSEP>[](symbol){is.logical}<LEND>[control flow](){for}<LSEP>[](symbol){col}<LSEP>[](symbol){p_logi}<LEND>[body; call](){}<LSEP>[](symbol){set}<LSEP>[](symbol){people}<LSEP>[](symbol){col}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){people}<LSEP>[](symbol){col}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/act_train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){d1}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){train}<LSEP>[](symbol){people}<LSEP>[argument 2; litteral](str){people_id}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d1}<LSEP>[](symbol){outcome}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){outcome}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){.}<LSEP>[](symbol){people_id}<LEND>[](symbol){activity_id}<LEND>[](symbol){date.x}<LEND>[](symbol){date.y}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){starting the train_matrix cons...}<LEND>[assign](){<-}<LSEP>[](symbol){X_train}<LEND>[call](){}<LSEP>[](symbol){sparse.model.matrix}<LSEP>[](symbol){f}<LSEP>[](symbol){d1}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){X_train}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){d1}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){gc}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](str){auc}<LSEP>[argument 2; litteral](str){gblinear}<LSEP>[argument 3; litteral](real){0.100000}<LSEP>[argument 4; litteral](real){0.250000}<LEND>[assign](){<-}<LSEP>[](symbol){m2}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){dtrain}<LSEP>[](symbol){param}<LSEP>[argument 2; litteral](real){45.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/act_test.csv}<LEND>[assign](){<-}<LSEP>[](symbol){d2}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){test}<LSEP>[](symbol){people}<LSEP>[argument 2; litteral](str){people_id}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){X_test}<LEND>[call](){}<LSEP>[](symbol){sparse.model.matrix}<LSEP>[](symbol){f}<LSEP>[](symbol){d2}<LEND>[assign](){<-}<LSEP>[](symbol){dtest}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){X_test}<LEND>[assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){m2}<LSEP>[](symbol){dtest}<LEND>[assign](){<-}<LSEP>[](symbol){sub}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d2}<LSEP>[](symbol){activity_id}<LEND>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){sub}<LSEP>[argument 1; litteral](str){sub1.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pROC}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/act_train.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){people}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/people.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){train}<LSEP>[](symbol){people}<LSEP>[argument 2; litteral](str){people_id}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){tree}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){outcome}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){index}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){18.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){20.000000}<LSEP>[argument 1; litteral](real){55.000000}<LEND>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){tree completed}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){index}<LEND>[](symbol){}<LEND>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){pred 1 completed}<LEND>[assign](){<-}<LSEP>[](symbol){accuracy}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){pred}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){outcome}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){index}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pred}<LEND>[](symbol){accuracy}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){index}<LEND>[](symbol){}<LEND>[argument 2; litteral](str){prob}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){pred 2 completed}<LEND>[assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){outcome}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){index}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){out}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[litteral](str){X0}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){out}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){X1}<LEND>[call](){}<LSEP>[](symbol){auc}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pred}<LSEP>[](symbol){X1}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){knitr}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts_chunk}<LSEP>[](symbol){set}<LEND>[argument 0; litteral](real){100.000000}<LSEP>[argument 1; litteral](str){center}<LSEP>[argument 2; litteral](logical){NA}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){FALSE}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LEND>[argument 0; call](){}<LSEP>[](symbol){ls}<LEND>[assign](){<-}<LSEP>[](symbol){settings}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){left}<LEND>[argument 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){grid}<LSEP>[](symbol){unit}<LEND>[argument 0; litteral](real){5.000000}<LSEP>[argument 1; litteral](str){mm}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](str){left}<LEND>[argument 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){grid}<LSEP>[](symbol){unit}<LEND>[argument 0; litteral](real){5.000000}<LSEP>[argument 1; litteral](str){mm}<LEND>[assign](){<-}<LSEP>[](symbol){kobe}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/data.csv}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){latticeExtra}<LEND>[call](){}<LSEP>[](symbol){barchart}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kobe}<LSEP>[](symbol){combined_shot_type}<LEND>[argument 1; litteral](str){#0080ff}<LSEP>[argument 2; litteral](str){transparent}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){27000.000000}<LEND>[argument 4; litteral](str){Number of shots}<LSEP>[argument 5; litteral](str){Number of shots by shot type}<LSEP>[](symbol){settings}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){panel.abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){26000.000000}<LSEP>[argument 2; litteral](real){1000.000000}<LEND>[argument 1; litteral](str){gray90}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){panel.text}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){y}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 3; litteral](str){%)}<LEND>[argument 3; litteral](real){4.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){panel.barchart}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){devel1}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){xtabs}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){playoffs}<LSEP>[](symbol){combined_shot_type}<LEND>[](symbol){kobe}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel1}<LSEP>[](symbol){combined_shot_type}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel1}<LSEP>[](symbol){combined_shot_type}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel1}<LSEP>[](symbol){combined_shot_type}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel1}<LSEP>[](symbol){playoffs}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Regular season}<LSEP>[argument 1; litteral](str){Playoffs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel1}<LSEP>[](symbol){playoffs}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel1}<LSEP>[](symbol){playoffs}<LEND>[argument 1; litteral](str){: }<LEND>[argument 2; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kobe}<LSEP>[](symbol){playoffs}<LEND>[argument 3; litteral](str){ (}<LEND>[argument 4; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kobe}<LSEP>[](symbol){playoffs}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 5; litteral](str){%)}<LEND>[call](){}<LSEP>[](symbol){barchart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){combined_shot_type}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){Freq}<LSEP>[](symbol){playoffs}<LEND>[argument 1; litteral](str){#0080ff}<LSEP>[argument 2; litteral](str){transparent}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){free}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){27000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){4500.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){strip.custom}<LSEP>[argument 0; litteral](str){white}<LEND>[argument 6; litteral](str){Number of shots}<LSEP>[argument 7; litteral](str){Number of shots by regular sea...}<LSEP>[](symbol){settings}<LSEP>[](symbol){devel1}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){panel.text}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){y}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 3; litteral](str){%)}<LEND>[argument 3; litteral](real){4.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){panel.barchart}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){devel2}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){xtabs}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){period}<LSEP>[](symbol){combined_shot_type}<LEND>[](symbol){kobe}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel2}<LSEP>[](symbol){combined_shot_type}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel2}<LSEP>[](symbol){combined_shot_type}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel2}<LSEP>[](symbol){combined_shot_type}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel2}<LSEP>[](symbol){period}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1 period}<LSEP>[argument 1; litteral](str){2 period}<LSEP>[argument 2; litteral](str){3 period}<LSEP>[argument 3; litteral](str){4 period}<LSEP>[argument 4; litteral](str){1 overtime}<LSEP>[argument 5; litteral](str){2 overtime}<LSEP>[argument 6; litteral](str){3 overtime}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel2}<LSEP>[](symbol){period}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel2}<LSEP>[](symbol){period}<LEND>[argument 1; litteral](str){: }<LEND>[argument 2; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kobe}<LSEP>[](symbol){period}<LEND>[argument 3; litteral](str){ (}<LEND>[argument 4; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kobe}<LSEP>[](symbol){period}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 5; litteral](str){%)}<LEND>[call](){}<LSEP>[](symbol){barchart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){combined_shot_type}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){Freq}<LSEP>[](symbol){period}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){free}<LEND>[argument 2; call](){}<LSEP>[](symbol){strip.custom}<LSEP>[argument 0; litteral](str){white}<LEND>[argument 3; litteral](str){Number of shots}<LSEP>[argument 4; litteral](str){Number of shots by period}<LSEP>[](symbol){settings}<LSEP>[argument 6; litteral](str){#0080ff}<LSEP>[argument 7; litteral](str){transparent}<LEND>[argument 8; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){11000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){8000.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){11000.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){10000.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){400.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){50.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){8.000000}<LEND>[argument 9; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){devel2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){panel.text}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){y}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 3; litteral](str){%)}<LEND>[argument 3; litteral](real){4.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){panel.barchart}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){devel3}<LSEP>[](symbol){kobe}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel3}<LSEP>[](symbol){season}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel3}<LSEP>[](symbol){season}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel3}<LSEP>[](symbol){season}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){20.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){barchart}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){devel3}<LSEP>[](symbol){season}<LEND>[argument 1; litteral](str){#0080ff}<LSEP>[argument 2; litteral](str){transparent}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){3000.000000}<LEND>[argument 4; litteral](str){Number of shots}<LSEP>[argument 5; litteral](str){Number of shots by season}<LSEP>[](symbol){settings}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){panel.abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){3000.000000}<LSEP>[argument 2; litteral](real){100.000000}<LEND>[argument 1; litteral](str){gray90}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){panel.text}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){y}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 3; litteral](str){%)}<LEND>[argument 3; litteral](real){4.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){panel.barchart}<LSEP>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){xyplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){loc_y}<LSEP>[](symbol){loc_x}<LEND>[](symbol){shot_type}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){p}<LSEP>[argument 1; litteral](str){g}<LEND>[argument 3; litteral](real){19.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#0080ff}<LSEP>[argument 1; litteral](str){gray}<LEND>[argument 5; litteral](str){Longitude}<LSEP>[argument 6; litteral](str){Latitude}<LSEP>[argument 7; litteral](str){Shots}<LEND>[argument 8; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){2PT Field Goal}<LSEP>[argument 1; litteral](str){3PT Field Goal}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#0080ff}<LSEP>[argument 1; litteral](str){gray}<LEND>[argument 3; litteral](real){19.000000}<LSEP>[argument 4; litteral](real){2.000000}<LEND>[](symbol){kobe}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){utils}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){stats}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){loss}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cat101}<LSEP>[](symbol){cat105}<LEND>[](symbol){cat107}<LEND>[](symbol){cat109}<LEND>[](symbol){cat110}<LEND>[](symbol){cat112}<LEND>[](symbol){cat113}<LEND>[](symbol){cat114}<LEND>[](symbol){cat115}<LEND>[](symbol){cat116}<LEND>[](symbol){cont1}<LEND>[](symbol){cont2}<LEND>[](symbol){cont3}<LEND>[](symbol){cont4}<LEND>[](symbol){cont5}<LEND>[](symbol){cont6}<LEND>[](symbol){cont7}<LEND>[](symbol){cont8}<LEND>[](symbol){cont9}<LEND>[](symbol){cont10}<LEND>[](symbol){cont11}<LEND>[](symbol){cont12}<LEND>[](symbol){cont13}<LEND>[](symbol){cont14}<LEND>[](symbol){train}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat89}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat89}<LEND>[argument 1; litteral](str){F}<LEND>[litteral](str){A}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat92}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat92}<LEND>[argument 1; litteral](str){E}<LEND>[litteral](str){A}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat92}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat92}<LEND>[argument 1; litteral](str){G}<LEND>[litteral](str){A}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat96}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat96}<LEND>[argument 1; litteral](str){H}<LEND>[litteral](str){E}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat99}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat99}<LEND>[argument 1; litteral](str){U}<LEND>[litteral](str){P}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat103}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat103}<LEND>[argument 1; litteral](str){M}<LEND>[litteral](str){A}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat106}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat106}<LEND>[argument 1; litteral](str){Q}<LEND>[litteral](str){G}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat109}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat109}<LEND>[argument 1; litteral](str){AD}<LEND>[litteral](str){BI}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat110}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat110}<LEND>[argument 1; litteral](str){BH}<LEND>[litteral](str){CL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat110}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat110}<LEND>[argument 1; litteral](str){CA}<LEND>[litteral](str){CL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat110}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat110}<LEND>[argument 1; litteral](str){EN}<LEND>[litteral](str){CL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat111}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat111}<LEND>[argument 1; litteral](str){L}<LEND>[litteral](str){A}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat113}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat113}<LEND>[argument 1; litteral](str){AA}<LEND>[litteral](str){BM}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat113}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat113}<LEND>[argument 1; litteral](str){R}<LEND>[litteral](str){BM}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){A}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){AI}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){AQ}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){BE}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){BH}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){BJ}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){BN}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){BR}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){DB}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){EM}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){ER}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){ET}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){EX}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){FY}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){HS}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){IS}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){IW}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){JS}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){KO}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){LP}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){LS}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){MX}<LEND>[litteral](str){HK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cat116}<LEND>[argument 1; litteral](str){N}<LEND>[litteral](str){HK}<LEND>[assign](){<-}<LSEP>[](symbol){loss}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){model}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){id}<LEND>[assign](){<-}<LSEP>[](symbol){loss}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){loss}<LEND>[assign](){<-}<LSEP>[](symbol){loss}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){loss}<LSEP>[](symbol){loss}<LEND>[assign](){<-}<LSEP>[](symbol){fin}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){id}<LSEP>[](symbol){loss}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){fin}<LSEP>[argument 1; litteral](str){final.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Dates}<LSEP>[argument 1; litteral](str){DayOfWeek}<LSEP>[argument 2; litteral](str){Address}<LSEP>[argument 3; litteral](str){X}<LSEP>[argument 4; litteral](str){Y}<LSEP>[argument 5; litteral](str){PdDistrict}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){data}<LEND>[assign](){<-}<LSEP>[](symbol){date_and_time}<LEND>[call](){}<LSEP>[](symbol){strptime}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Dates}<LEND>[argument 1; litteral](str){%Y-%m-%d %H:%M:%S}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Year}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){date_and_time}<LSEP>[argument 1; litteral](str){%Y}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Month}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){date_and_time}<LSEP>[argument 1; litteral](str){%m}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Day}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){date_and_time}<LSEP>[argument 1; litteral](str){%d}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Week}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){date_and_time}<LSEP>[argument 1; litteral](str){%W}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Hour}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){date_and_time}<LSEP>[argument 1; litteral](str){%H}<LEND>[assign](){<-}<LSEP>[](symbol){columns}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Descript}<LSEP>[argument 1; litteral](str){Resolution}<LEND>[control flow](){for}<LSEP>[](symbol){column}<LSEP>[](symbol){columns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){data}<LSEP>[](symbol){column}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AddressTypeIsOf}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[](symbol){n}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AddressTypeIsOf}<LEND>[argument 1; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){.?of.?}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Address}<LEND>[litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Y}<LSEP>[argument 1; litteral](real){90.000000}<LEND>[assign](){<-}<LSEP>[](symbol){transform}<LEND>[call](){}<LSEP>[](symbol){preProcess}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){X}<LSEP>[argument 1; litteral](str){Y}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){center}<LSEP>[argument 1; litteral](str){scale}<LSEP>[argument 2; litteral](str){pca}<LEND>[assign](){<-}<LSEP>[](symbol){pc}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){transform}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){X}<LSEP>[argument 1; litteral](str){Y}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pc}<LSEP>[](symbol){PC1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pc}<LSEP>[](symbol){PC2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){MinuteAbs30}<LEND>[call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){date_and_time}<LSEP>[argument 1; litteral](str){%M}<LEND>[argument 1; litteral](real){30.000000}<LEND>[assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Category}<LEND>[assign](){<-}<LSEP>[](symbol){classes}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){idx}<LEND>[](symbol){Category}<LEND>[assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){classes}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Class}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Category}<LEND>[](symbol){classes}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Id}<LSEP>[argument 1; litteral](str){Address}<LSEP>[argument 2; litteral](str){Dates}<LSEP>[argument 3; litteral](str){Category}<LSEP>[argument 4; litteral](str){Class}<LEND>[control flow](){for}<LSEP>[](symbol){feature}<LSEP>[](symbol){feature.names}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){data}<LSEP>[](symbol){feature}<LEND>[argument 1; litteral](str){character}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){feature}<LSEP>[argument 1; litteral](str){converted\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){data}<LSEP>[](symbol){feature}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){data}<LSEP>[](symbol){feature}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){data}<LSEP>[](symbol){feature}<LEND>[](symbol){levels}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){gbtree}<LSEP>[argument 1; litteral](str){multi:softprob}<LSEP>[](symbol){m}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](real){6.000000}<LSEP>[argument 5; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){9.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){idx}<LEND>[argument 1; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dval}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LEND>[](symbol){feature.names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LEND>[](symbol){Class}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){idx}<LSEP>[](symbol){h}<LEND>[](symbol){feature.names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){idx}<LSEP>[](symbol){h}<LEND>[](symbol){Class}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dval}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){bst}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){dtrain}<LSEP>[](symbol){watchlist}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){mlogloss}<LSEP>[argument 5; litteral](real){15.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dtest}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){Id}<LEND>[](symbol){}<LSEP>[](symbol){feature.names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){bst}<LSEP>[](symbol){dtest}<LEND>[assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){%f}<LSEP>[](symbol){prediction}<LEND>[assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){Id}<LEND>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){prediction}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){prediction}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Id}<LSEP>[](symbol){classes}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){prediction}<LSEP>[argument 1; litteral](str){submission.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyverse}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[](symbol){train_id}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ID}<LEND>[assign](){<-}<LSEP>[](symbol){train_labels}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){test_id}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ID}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){y}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){df_all}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[assign](){=}<LSEP>[](symbol){features_to_encode}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){3.000000}<LSEP>[argument 4; litteral](real){4.000000}<LSEP>[argument 5; litteral](real){5.000000}<LSEP>[argument 6; litteral](real){6.000000}<LSEP>[argument 7; litteral](real){8.000000}<LEND>[assign](){<-}<LSEP>[](symbol){categorical_features}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){df_all}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){one_of}<LSEP>[](symbol){features_to_encode}<LEND>[assign](){<-}<LSEP>[](symbol){binary_features}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){df_all}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){one_of}<LSEP>[](symbol){features_to_encode}<LEND>[assign](){<-}<LSEP>[](symbol){dmy}<LEND>[call](){}<LSEP>[](symbol){dummyVars}<LSEP>[argument 0; litteral](str){ ~ .}<LSEP>[](symbol){categorical_features}<LEND>[assign](){<-}<LSEP>[](symbol){ohe_features}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){dmy}<LSEP>[](symbol){categorical_features}<LEND>[call](){}<LSEP>[](symbol){image}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){ohe_features}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){white}<LSEP>[argument 1; litteral](str){black}<LEND>[assign](){<-}<LSEP>[](symbol){res_pca}<LEND>[call](){}<LSEP>[](symbol){prcomp}<LSEP>[](symbol){binary_features}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){res_pca}<LSEP>[argument 1; litteral](str){l}<LEND>[assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[argument 2; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){circle}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cos}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){circle}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_path}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res_pca}<LSEP>[](symbol){rotation}<LEND>[argument 1; call](){}<LSEP>[](symbol){row.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res_pca}<LSEP>[](symbol){rotation}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PC1}<LSEP>[](symbol){PC2}<LSEP>[](symbol){.names}<LSEP>[](symbol){.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){PC1}<LSEP>[argument 1; litteral](str){PC2}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){circle}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_path}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res_pca}<LSEP>[](symbol){rotation}<LEND>[argument 1; call](){}<LSEP>[](symbol){row.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res_pca}<LSEP>[](symbol){rotation}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PC3}<LSEP>[](symbol){PC4}<LSEP>[](symbol){.names}<LSEP>[](symbol){.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){PC3}<LSEP>[argument 1; litteral](str){PC4}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){circle}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_path}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res_pca}<LSEP>[](symbol){rotation}<LEND>[argument 1; call](){}<LSEP>[](symbol){row.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res_pca}<LSEP>[](symbol){rotation}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PC5}<LSEP>[](symbol){PC6}<LSEP>[](symbol){.names}<LSEP>[](symbol){.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){PC5}<LSEP>[argument 1; litteral](str){PC6}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[assign](){<-}<LSEP>[](symbol){explained_variance_threshold}<LSEP>[litteral](real){0.900000}<LEND>[assign](){<-}<LSEP>[](symbol){importance_pca}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){res_pca}<LEND>[](symbol){importance}<LEND>[call](){}<LSEP>[](symbol){barplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){importance_pca}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){importance_pca}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){0.010000}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.140000}<LEND>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](real){0.600000}<LSEP>[argument 5; litteral](str){Explained Variance by Principa...}<LSEP>[argument 6; litteral](str){Proportion of explained variance}<LEND>[assign](){<-}<LSEP>[](symbol){last_upper}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){importance_pca}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){}<LEND>[](symbol){explained_variance_threshold}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){retain_vars}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){importance_pca}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){last_upper}<LEND>[call](){}<LSEP>[](symbol){barplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){importance_pca}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; litteral](str){}<LSEP>[argument 4; litteral](str){Proportion of explained variance}<LEND>[call](){}<LSEP>[](symbol){abline}<LSEP>[](symbol){explained_variance_threshold}<LSEP>[argument 1; litteral](str){red}<LEND>[assign](){<-}<LSEP>[](symbol){pca_features}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){res_pca}<LSEP>[](symbol){df_all}<LEND>[](symbol){}<LSEP>[](symbol){retain_vars}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ica}<LEND>[assign](){<-}<LSEP>[](symbol){n_ica_features}<LSEP>[litteral](real){50.000000}<LEND>[assign](){<-}<LSEP>[](symbol){ica_model}<LEND>[call](){}<LSEP>[](symbol){icafast}<LSEP>[](symbol){binary_features}<LSEP>[](symbol){n_ica_features}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){binary_features}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){tcrossprod}<LSEP>[](symbol){S}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ica_model}<LSEP>[](symbol){Q}<LEND>[assign](){<-}<LSEP>[](symbol){ica_features}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ica_model}<LSEP>[](symbol){R}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ica_features}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){IC}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_ica_features}<LEND>[assign](){<-}<LSEP>[](symbol){df_all}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){df_all}<LSEP>[](symbol){ohe_features}<LSEP>[](symbol){pca_features}<LSEP>[](symbol){ica_features}<LEND>[assign](){<-}<LSEP>[](symbol){ntrain}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df_all}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ntrain}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df_all}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ntrain}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){df_all}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){train_id}<LSEP>[](symbol){train}<LSEP>[](symbol){train_labels}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){test_id}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){train_prep.csv}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){test_prep.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){party}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart.plot}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){combi}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Mme}<LSEP>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Mlle}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Capt}<LSEP>[argument 1; litteral](str){Don}<LSEP>[argument 2; litteral](str){Major}<LSEP>[argument 3; litteral](str){Sir}<LEND>[litteral](str){Sir}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Dona}<LSEP>[argument 1; litteral](str){Lady}<LSEP>[argument 2; litteral](str){the Countess}<LSEP>[argument 3; litteral](str){Jonkheer}<LEND>[litteral](str){Lady}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilySize}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Surname}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilySize}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Surname}<LEND>[argument 2; litteral](str){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilySize}<LEND>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){Small}<LEND>[assign](){<-}<LSEP>[](symbol){famIDs}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID}<LEND>[assign](){<-}<LSEP>[](symbol){famIDs}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){famIDs}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){famIDs}<LSEP>[](symbol){Freq}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){famIDs}<LSEP>[](symbol){Var1}<LEND>[litteral](str){Small}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID}<LEND>[assign](){<-}<LSEP>[](symbol){Agefit}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){Title}<LEND>[](symbol){FamilySize}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){combi}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[argument 2; litteral](str){anova}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){Agefit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){combi}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Child}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Child}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){18.000000}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Child}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Child}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[litteral](str){S}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){1044.000000}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID2}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID2}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID2}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilySize}<LEND>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){Small}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID2}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){FamilyID2}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){combi}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LEND>[litteral](str){A}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){B}<LEND>[litteral](str){B}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){C}<LEND>[litteral](str){C}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){D}<LEND>[litteral](str){D}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){E}<LEND>[litteral](str){E}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){F}<LEND>[litteral](str){F}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){combi}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){combi}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){892.000000}<LSEP>[argument 1; litteral](real){1309.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){415.000000}<LEND>[assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){cforest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Child}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){Title}<LEND>[](symbol){FamilySize}<LEND>[](symbol){FamilyID}<LEND>[](symbol){train}<LEND>[argument 2; call](){}<LSEP>[](symbol){cforest_unbiased}<LSEP>[argument 0; litteral](real){2000.000000}<LSEP>[argument 1; litteral](real){3.000000}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){train}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyverse}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){catboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){forecast}<LEND>[assign](){<-}<LSEP>[](symbol){tr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/sessiondataframes/dtr...}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){transactionRevenue}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){log1p}<LSEP>[](symbol){transactionRevenue}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.table}<LEND>[assign](){=}<LSEP>[](symbol){brws}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){browser}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[assign](){=}<LSEP>[](symbol){ctrys}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){country}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[assign](){<-}<LSEP>[](symbol){tr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){tr}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){browser}<LSEP>[](symbol){brws}<LEND>[](symbol){browser}<LSEP>[argument 2; litteral](str){otro}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){country}<LSEP>[](symbol){ctrys}<LEND>[](symbol){country}<LSEP>[argument 2; litteral](str){otro}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){channelGrouping}<LSEP>[argument 1; litteral](str){(Other)}<LEND>[argument 1; litteral](str){Organic Search}<LSEP>[](symbol){channelGrouping}<LEND>[assign](){<-}<LSEP>[](symbol){tr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){tr}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate_if}<LSEP>[](symbol){is.character}<LSEP>[](symbol){factor}<LEND>[assign](){<-}<LSEP>[](symbol){te}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/sessiondataframes/dte...}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.table}<LEND>[assign](){<-}<LSEP>[](symbol){te}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){te}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){browser}<LSEP>[](symbol){brws}<LEND>[](symbol){browser}<LSEP>[argument 2; litteral](str){otro}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){country}<LSEP>[](symbol){ctrys}<LEND>[](symbol){country}<LSEP>[argument 2; litteral](str){otro}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){channelGrouping}<LSEP>[argument 1; litteral](str){(Other)}<LEND>[argument 1; litteral](str){Organic Search}<LSEP>[](symbol){channelGrouping}<LEND>[assign](){<-}<LSEP>[](symbol){te}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){te}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate_if}<LSEP>[](symbol){is.character}<LSEP>[](symbol){factor}<LEND>[assign](){=}<LSEP>[](symbol){mtR}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.table}<LSEP>[](symbol){tr}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){transactionRevenue}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){hits}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){adwordsClickInfo.page}<LSEP>[](symbol){T}<LEND>[argument 3; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){pageviews}<LSEP>[](symbol){T}<LEND>[argument 4; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){week}<LSEP>[](symbol){date}<LEND>[](symbol){T}<LEND>[](symbol){date}<LEND>[assign](){=}<LSEP>[](symbol){mtE}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.table}<LSEP>[](symbol){te}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){hits}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){adwordsClickInfo.page}<LSEP>[](symbol){T}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){pageviews}<LSEP>[](symbol){T}<LEND>[argument 3; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){week}<LSEP>[](symbol){date}<LEND>[](symbol){T}<LEND>[](symbol){date}<LEND>[assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){date}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){xvarsTR}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){hits}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){adwordsClickInfo.page}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){pageviews}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){woy}<LEND>[assign](){<-}<LSEP>[](symbol){m_aa_reg}<LEND>[call](){}<LSEP>[](symbol){auto.arima}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){revenue}<LEND>[](symbol){xvarsTR}<LEND>[assign](){=}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){forecast}<LSEP>[](symbol){m_aa_reg}<LSEP>[](symbol){h}<LSEP>[](symbol){xvarsTR}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){FitRevenue}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pred}<LSEP>[](symbol){fitted}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){366.000000}<LEND>[assign](){<-}<LSEP>[](symbol){he}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){date}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){xvars}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){hits}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){adwordsClickInfo.page}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){pageviews}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){woy}<LEND>[assign](){=}<LSEP>[](symbol){predTe}<LEND>[call](){}<LSEP>[](symbol){forecast}<LSEP>[](symbol){m_aa_reg}<LSEP>[](symbol){he}<LSEP>[](symbol){xvars}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){FitRevenue}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){predTe}<LSEP>[](symbol){fitted}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){272.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){FitRev}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){FitRevenue}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){date}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){te}<LSEP>[](symbol){FitRev}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){FitRevenue}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){te}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){date}<LEND>[assign](){=}<LSEP>[](symbol){od}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtR}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){revenue}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtR}<LSEP>[](symbol){od}<LSEP>[](symbol){}<LEND>[argument 2; litteral](str){l}<LSEP>[argument 3; litteral](str){n}<LSEP>[argument 4; litteral](real){1.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){te}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){FitRevenue}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtR}<LSEP>[](symbol){od}<LSEP>[](symbol){}<LEND>[argument 2; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){odte}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtE}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){FitRevenue}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtE}<LSEP>[](symbol){odte}<LSEP>[](symbol){}<LEND>[argument 2; litteral](real){4.000000}<LEND>[assign](){=}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){date}<LEND>[argument 1; litteral](str){2017-04-01}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tr}<LSEP>[](symbol){idx}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){23.000000}<LSEP>[argument 1; litteral](real){24.000000}<LEND>[argument 2; litteral](real){31.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dtest}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tr}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){23.000000}<LSEP>[argument 1; litteral](real){24.000000}<LEND>[argument 2; litteral](real){31.000000}<LEND>[assign](){<-}<LSEP>[](symbol){fit_params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){100.000000}<LSEP>[argument 1; litteral](str){RMSE}<LSEP>[argument 2; litteral](real){32.000000}<LSEP>[argument 3; litteral](real){5.000000}<LSEP>[argument 4; litteral](real){0.030000}<LSEP>[argument 5; litteral](real){3.500000}<LSEP>[argument 6; litteral](str){CPU}<LSEP>[argument 7; litteral](real){10.000000}<LEND>[assign](){=}<LSEP>[](symbol){categoriK}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){Filter}<LSEP>[](symbol){is.factor}<LSEP>[](symbol){dtrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dtrain}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){pool}<LEND>[call](){}<LSEP>[](symbol){catboost.load_pool}<LSEP>[](symbol){dtrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){transactionRevenue}<LEND>[](symbol){idx}<LEND>[](symbol){categoriK}<LEND>[assign](){=}<LSEP>[](symbol){testPool}<LEND>[call](){}<LSEP>[](symbol){catboost.load_pool}<LSEP>[](symbol){dtest}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){transactionRevenue}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[](symbol){categoriK}<LEND>[assign](){<-}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){catboost.train}<LSEP>[](symbol){pool}<LSEP>[](symbol){testPool}<LSEP>[](symbol){fit_params}<LEND>[assign](){=}<LSEP>[](symbol){yobs}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){transactionRevenue}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[assign](){=}<LSEP>[](symbol){yexp}<LEND>[call](){}<LSEP>[](symbol){catboost.predict}<LSEP>[](symbol){model}<LSEP>[](symbol){testPool}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){jitter}<LSEP>[](symbol){yobs}<LSEP>[argument 1; litteral](real){150.000000}<LEND>[](symbol){yexp}<LSEP>[argument 2; litteral](real){19.000000}<LSEP>[argument 3; litteral](real){0.100000}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[argument 5; litteral](str){observed}<LSEP>[argument 6; litteral](str){predicted}<LEND>[argument 7; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){yobs}<LEND>[argument 8; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){yobs}<LEND>[call](){}<LSEP>[](symbol){abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){yobs}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){yobs}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){predi}<LEND>[litteral](logical){NA}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){predi}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[](symbol){yexp}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.table}<LSEP>[](symbol){tr}<LEND>[](symbol){idx}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){transactionRevenue}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){date}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.table}<LSEP>[](symbol){tr}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){transactionRevenue}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){date}<LEND>[assign](){=}<LSEP>[](symbol){valid}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.table}<LSEP>[](symbol){tr}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){idx}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){predi}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){date}<LEND>[assign](){=}<LSEP>[](symbol){indi}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dtrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){te}<LEND>[assign](){=}<LSEP>[](symbol){validPool}<LEND>[call](){}<LSEP>[](symbol){catboost.load_pool}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){te}<LSEP>[](symbol){}<LSEP>[](symbol){indi}<LEND>[](symbol){categoriK}<LEND>[assign](){<-}<LSEP>[](symbol){predIcted}<LEND>[call](){}<LSEP>[](symbol){catboost.predict}<LSEP>[](symbol){model}<LSEP>[](symbol){validPool}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){te}<LSEP>[](symbol){predi}<LEND>[](symbol){predIcted}<LEND>[assign](){=}<LSEP>[](symbol){Forecast}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.table}<LSEP>[](symbol){te}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){predi}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){date}<LEND>[assign](){=}<LSEP>[](symbol){od.fore}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Forecast}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){od.tr}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){revenue}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){od.tr}<LSEP>[](symbol){}<LEND>[argument 2; litteral](str){l}<LSEP>[argument 3; litteral](str){n}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tr}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){te}<LSEP>[](symbol){date}<LEND>[assign](){=}<LSEP>[](symbol){od.te}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){revenue}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){od.te}<LSEP>[](symbol){}<LEND>[argument 2; litteral](str){blue}<LEND>[call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){predi}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){valid}<LSEP>[](symbol){od.te}<LSEP>[](symbol){}<LEND>[argument 2; litteral](str){green}<LEND>[call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){revenue}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Forecast}<LSEP>[](symbol){od.fore}<LSEP>[](symbol){}<LEND>[argument 2; litteral](str){red}<LEND>[assign](){=}<LSEP>[](symbol){submiPred}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){te}<LSEP>[](symbol){fullVisitorId}<LEND>[](symbol){predIcted}<LEND>[assign](){<-}<LSEP>[](symbol){submiPred}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){submiPred}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){fullVisitorId}<LSEP>[](symbol){PredictedLogRevenue}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){fullVisitorId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){PredictedLogRevenue}<LEND>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){PredictedLogRevenue}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){expm1}<LSEP>[](symbol){PredictedLogRevenue}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){log1p}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){PredictedLogRevenue}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){submiPred}<LSEP>[argument 1; litteral](str){submiCatboost1.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Reading data}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Semana}<LSEP>[argument 1; litteral](str){Cliente_ID}<LSEP>[argument 2; litteral](str){Producto_ID}<LSEP>[argument 3; litteral](str){Agencia_ID}<LSEP>[argument 4; litteral](str){Ruta_SAK}<LSEP>[argument 5; litteral](str){Demanda_uni_equil}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){Semana}<LSEP>[argument 2; litteral](str){Cliente_ID}<LSEP>[argument 3; litteral](str){Producto_ID}<LSEP>[argument 4; litteral](str){Agencia_ID}<LSEP>[argument 5; litteral](str){Ruta_SAK}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){log_demand}<LEND>[call](){}<LSEP>[](symbol){log1p}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Demanda_uni_equil}<LEND>[assign](){<-}<LSEP>[](symbol){mean_P}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){log_demand}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){Semana}<LSEP>[](symbol){Producto_ID}<LEND>[assign](){=}<LSEP>[](symbol){mean_P_a}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){log_demand}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){Producto_ID}<LEND>[assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mean_P}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){MP}<LSEP>[](symbol){Semana}<LEND>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){MP}<LSEP>[](symbol){Semana}<LEND>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){Producto_ID}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){test}<LSEP>[](symbol){w}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Producto_ID}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){submit}<LEND>[assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){submit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){id}<LSEP>[](symbol){Producto_ID}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Semana}<LSEP>[](symbol){a}<LEND>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Done!}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){rm}<LEND>[argument 0; call](){}<LSEP>[](symbol){ls}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){a}<LEND>[assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){sample}<LSEP>[](symbol){LETTERS}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){c}<LEND>[assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){sample}<LSEP>[](symbol){LETTERS}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){d}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){h2o}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){=}<LSEP>[](symbol){sample_submission}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/sample_submission.csv}<LEND>[assign](){<-}<LSEP>[](symbol){factorVariables}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Product_Info_1}<LSEP>[argument 1; litteral](str){Product_Info_2}<LSEP>[argument 2; litteral](str){Product_Info_3}<LSEP>[argument 3; litteral](str){Product_Info_5}<LSEP>[argument 4; litteral](str){Product_Info_6}<LSEP>[argument 5; litteral](str){Product_Info_7}<LSEP>[argument 6; litteral](str){Employment_Info_2}<LSEP>[argument 7; litteral](str){Employment_Info_3}<LSEP>[argument 8; litteral](str){Employment_Info_5}<LSEP>[argument 9; litteral](str){InsuredInfo_1}<LSEP>[argument 10; litteral](str){InsuredInfo_2}<LSEP>[argument 11; litteral](str){InsuredInfo_3}<LSEP>[argument 12; litteral](str){InsuredInfo_4}<LSEP>[argument 13; litteral](str){InsuredInfo_5}<LSEP>[argument 14; litteral](str){InsuredInfo_6}<LSEP>[argument 15; litteral](str){InsuredInfo_7}<LSEP>[argument 16; litteral](str){Insurance_History_1}<LSEP>[argument 17; litteral](str){Insurance_History_2}<LSEP>[argument 18; litteral](str){Insurance_History_3}<LSEP>[argument 19; litteral](str){Insurance_History_4}<LSEP>[argument 20; litteral](str){Insurance_History_7}<LSEP>[argument 21; litteral](str){Insurance_History_8}<LSEP>[argument 22; litteral](str){Insurance_History_9}<LSEP>[argument 23; litteral](str){Family_Hist_1}<LSEP>[argument 24; litteral](str){Medical_History_2}<LSEP>[argument 25; litteral](str){Medical_History_3}<LSEP>[argument 26; litteral](str){Medical_History_4}<LSEP>[argument 27; litteral](str){Medical_History_5}<LSEP>[argument 28; litteral](str){Medical_History_6}<LSEP>[argument 29; litteral](str){Medical_History_7}<LSEP>[argument 30; litteral](str){Medical_History_8}<LSEP>[argument 31; litteral](str){Medical_History_9}<LSEP>[argument 32; litteral](str){Medical_History_10}<LSEP>[argument 33; litteral](str){Medical_History_11}<LSEP>[argument 34; litteral](str){Medical_History_12}<LSEP>[argument 35; litteral](str){Medical_History_13}<LSEP>[argument 36; litteral](str){Medical_History_14}<LSEP>[argument 37; litteral](str){Medical_History_16}<LSEP>[argument 38; litteral](str){Medical_History_17}<LSEP>[argument 39; litteral](str){Medical_History_18}<LSEP>[argument 40; litteral](str){Medical_History_19}<LSEP>[argument 41; litteral](str){Medical_History_20}<LSEP>[argument 42; litteral](str){Medical_History_21}<LSEP>[argument 43; litteral](str){Medical_History_22}<LSEP>[argument 44; litteral](str){Medical_History_23}<LSEP>[argument 45; litteral](str){Medical_History_25}<LSEP>[argument 46; litteral](str){Medical_History_26}<LSEP>[argument 47; litteral](str){Medical_History_27}<LSEP>[argument 48; litteral](str){Medical_History_28}<LSEP>[argument 49; litteral](str){Medical_History_29}<LSEP>[argument 50; litteral](str){Medical_History_30}<LSEP>[argument 51; litteral](str){Medical_History_31}<LSEP>[argument 52; litteral](str){Medical_History_33}<LSEP>[argument 53; litteral](str){Medical_History_34}<LSEP>[argument 54; litteral](str){Medical_History_35}<LSEP>[argument 55; litteral](str){Medical_History_36}<LSEP>[argument 56; litteral](str){Medical_History_37}<LSEP>[argument 57; litteral](str){Medical_History_38}<LSEP>[argument 58; litteral](str){Medical_History_39}<LSEP>[argument 59; litteral](str){Medical_History_40}<LSEP>[argument 60; litteral](str){Medical_History_41}<LEND>[control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){factorVariables}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){n}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Response}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Response}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){train_local}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){s}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test_local}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){s}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){test}<LEND>[assign](){=}<LSEP>[](symbol){target}<LSEP>[litteral](str){Response}<LEND>[assign](){=}<LSEP>[](symbol){features}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Id}<LSEP>[argument 1; litteral](str){Response}<LSEP>[argument 2; litteral](str){Product_Info_2}<LEND>[call](){}<LSEP>[](symbol){h2o.init}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](str){4G}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){trainHex}<LEND>[call](){}<LSEP>[](symbol){as.h2o}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){testHex}<LEND>[call](){}<LSEP>[](symbol){as.h2o}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Training model}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rf}<LEND>[call](){}<LSEP>[](symbol){h2o.randomForest}<LSEP>[](symbol){features}<LSEP>[](symbol){target}<LSEP>[argument 2; litteral](real){150.000000}<LSEP>[argument 3; litteral](real){50.000000}<LSEP>[](symbol){trainHex}<LEND>[assign](){<-}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){h2o.predict}<LSEP>[](symbol){rf}<LSEP>[](symbol){testHex}<LEND>[call](){}<LSEP>[](symbol){head}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){10.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Creating submission file}<LEND>[assign](){<-}<LSEP>[](symbol){submit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submit}<LSEP>[argument 1; litteral](str){script_test.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){polycor}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){reshape2}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){caret}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){gridExtra}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){scales}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){Rmisc}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){ggrepel}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){Metrics}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){moments}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){corrplot}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){mice}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){kernlab}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){1000000.000000}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){1000000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){40.000000}<LSEP>[argument 2; litteral](str){orange}<LSEP>[argument 3; litteral](str){SalePrice}<LSEP>[argument 4; litteral](str){Histogram with Normal Curve}<LEND>[assign](){<-}<LSEP>[](symbol){xfit}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](real){40.000000}<LEND>[assign](){<-}<LSEP>[](symbol){yfit}<LEND>[call](){}<LSEP>[](symbol){dnorm}<LSEP>[](symbol){xfit}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){yfit}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){yfit}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){mids}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){xfit}<LSEP>[](symbol){yfit}<LSEP>[argument 2; litteral](str){blue}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){skewness}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[assign](){<-}<LSEP>[](symbol){numericV}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train}<LSEP>[](symbol){is.numeric}<LEND>[call](){}<LSEP>[](symbol){cor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){numericV}<LEND>[assign](){<-}<LSEP>[](symbol){numVar}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){numericV}<LEND>[assign](){<-}<LSEP>[](symbol){corpairnumVar}<LEND>[call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){numVar}<LSEP>[argument 1; litteral](str){pairwise.complete.obs}<LEND>[assign](){<-}<LSEP>[](symbol){cor_sorted}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){corpairnumVar}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){SalePrice}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){varhighcor}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){cor_sorted}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){corpairnumVar}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){corpairnumVar}<LSEP>[](symbol){varhighcor}<LSEP>[](symbol){varhighcor}<LEND>[call](){}<LSEP>[](symbol){corrplot.mixed}<LSEP>[](symbol){corpairnumVar}<LSEP>[argument 1; litteral](str){maroon}<LSEP>[argument 2; litteral](str){maroon}<LSEP>[argument 3; litteral](str){lt}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){n}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){GrLivArea}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){blue}<LSEP>[argument 2; litteral](real){21.000000}<LSEP>[argument 3; litteral](real){0.500000}<LSEP>[argument 4; litteral](real){2.000000}<LSEP>[argument 5; litteral](real){0.400000}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){524.000000}<LSEP>[argument 1; litteral](real){1299.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){OverallQual}<LEND>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){blue}<LSEP>[argument 2; litteral](real){21.000000}<LSEP>[argument 3; litteral](real){0.500000}<LSEP>[argument 4; litteral](real){3.000000}<LSEP>[argument 5; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Overall Quality}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){YearBuilt}<LEND>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){blue}<LSEP>[argument 2; litteral](real){21.000000}<LSEP>[argument 3; litteral](real){0.500000}<LSEP>[argument 4; litteral](real){2.000000}<LSEP>[argument 5; litteral](real){0.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_discrete}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1872.000000}<LSEP>[argument 1; litteral](real){2010.000000}<LSEP>[argument 2; litteral](real){30.000000}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MasVnrArea}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Id}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotFrontage}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotFrontage}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotFrontage}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Neighborhood}<LEND>[](symbol){i}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){misscols}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){colswithmiss}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){misscols}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){misscols}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){colswithmiss}<LEND>[assign](){<-}<LSEP>[](symbol){PercentMissingData}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){col}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){col}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){col}<LEND>[assign](){<-}<LSEP>[](symbol){missing.char}<LEND>[call](){}<LSEP>[](symbol){as.data.table}<LSEP>[](symbol){PercentMissingData}<LSEP>[argument 1; litteral](str){Column}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){missing.char}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MiscFeature}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fence}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){PoolQC}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Alley}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSZoning}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){FV}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){RL}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){RH}<LSEP>[argument 1; litteral](str){RM}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){C (all)}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSZoning}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.street}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Street}<LEND>[argument 1; litteral](str){Pave}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.street}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Street}<LEND>[argument 1; litteral](str){Pave}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Street}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotShape}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.lotshape}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotShape}<LEND>[argument 1; litteral](str){Reg}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.lotshape}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotShape}<LEND>[argument 1; litteral](str){Reg}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotShape}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LandContour}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LandContour}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Utilities}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.util}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Utilities}<LEND>[argument 1; litteral](str){AllPub}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.util}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Utilities}<LEND>[argument 1; litteral](str){AllPub}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Utilities}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){subclassprice}<LEND>[call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){60.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){120.000000}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){40.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){50.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){70.000000}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){75.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){80.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){85.000000}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){30.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){45.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){90.000000}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){160.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){180.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){190.000000}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MSSubClass}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.lot}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotConfig}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){CulDSac}<LSEP>[argument 1; litteral](str){FR3}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.lot}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotConfig}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){CulDSac}<LSEP>[argument 1; litteral](str){FR3}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LotConfig}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LandSlope}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){revalue}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){LandSlope}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){nbhdprice}<LEND>[call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){train}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){low.nbhdprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){nbhdprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nbhdprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mid.nbhdprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){nbhdprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nbhdprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nbhdprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){high.nbhdprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){nbhdprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nbhdprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){nhbd.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.nbhdprice}<LSEP>[](symbol){Neighborhood}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){nhbd.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.nbhdprice}<LSEP>[](symbol){Neighborhood}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){nhbd.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.nbhdprice}<LSEP>[](symbol){Neighborhood}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Neighborhood}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){condprice}<LEND>[call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition1}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){low.condprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){condprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){condprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mid.condprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){condprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){condprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){condprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){high.condprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){condprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){condprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){cond1.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.condprice}<LSEP>[](symbol){Condition1}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){cond1.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.condprice}<LSEP>[](symbol){Condition1}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){cond1.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.condprice}<LSEP>[](symbol){Condition1}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition1}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){cond2price}<LEND>[call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition2}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){low.cond2price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){cond2price}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cond2price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mid.cond2price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){cond2price}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cond2price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cond2price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){high.cond2price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){cond2price}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cond2price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){cond2.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.cond2price}<LSEP>[](symbol){Condition2}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){cond2.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.cond2price}<LSEP>[](symbol){Condition2}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){cond2.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.cond2price}<LSEP>[](symbol){Condition2}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Condition2}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bldg}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BldgType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1Fam}<LSEP>[argument 1; litteral](str){TwnhsE}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bldg}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BldgType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1Fam}<LSEP>[argument 1; litteral](str){TwnhsE}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BldgType}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){hstylprice}<LEND>[call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){train}<LSEP>[](symbol){HouseStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){low.hstylprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){hstylprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hstylprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mid.hstylprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){hstylprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hstylprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hstylprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){high.hstylprice}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){hstylprice}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hstylprice}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.house}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HouseStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.hstylprice}<LSEP>[](symbol){HouseStyle}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.house}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HouseStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.hstylprice}<LSEP>[](symbol){HouseStyle}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.house}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HouseStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.hstylprice}<LSEP>[](symbol){HouseStyle}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HouseStyle}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.roofst}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){RoofStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Hip}<LSEP>[argument 1; litteral](str){Shed}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.roofst}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){RoofStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Hip}<LSEP>[argument 1; litteral](str){Shed}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){RoofStyle}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.roofst}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){RoofMatl}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Membran}<LSEP>[argument 1; litteral](str){WdShake}<LSEP>[argument 2; litteral](str){WdShngl}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.roofst}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){RoofMatl}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Membran}<LSEP>[argument 1; litteral](str){WdShake}<LSEP>[argument 2; litteral](str){WdShngl}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){RoofMatl}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){ext1price}<LEND>[call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){low.ext1price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){ext1price}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ext1price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mid.ext1price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){ext1price}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ext1price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ext1price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){high.ext1price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){ext1price}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ext1price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extr1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.ext1price}<LSEP>[](symbol){Exterior1st}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extr1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.ext1price}<LSEP>[](symbol){Exterior1st}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extr1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.ext1price}<LSEP>[](symbol){Exterior1st}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior1st}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){ext2price}<LEND>[call](){}<LSEP>[](symbol){summarize}<LEND>[argument 0; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior2nd}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){low.ext2price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){ext2price}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ext2price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mid.ext2price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){ext2price}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ext2price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ext2price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){140000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){high.ext2price}<LEND>[call](){}<LSEP>[](symbol){filter}<LSEP>[](symbol){ext2price}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ext2price}<LSEP>[](symbol){mean(SalePrice, na.rm = T)}<LEND>[argument 1; litteral](real){200000.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extr2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior2nd}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.ext2price}<LSEP>[](symbol){Exterior2nd}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extr2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior2nd}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.ext2price}<LSEP>[](symbol){Exterior2nd}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extr2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior2nd}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.ext2price}<LSEP>[](symbol){Exterior2nd}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Exterior2nd}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.mastype}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MasVnrType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stone}<LSEP>[argument 1; litteral](str){BrkFace}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MasVnrType}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.mastype}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MasVnrType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stone}<LSEP>[argument 1; litteral](str){BrkFace}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MasVnrType}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){MasVnrType}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterQual}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){Po}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ExterCond}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.found}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Foundation}<LEND>[argument 1; litteral](str){PConc}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.found}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Foundation}<LEND>[argument 1; litteral](str){PConc}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Foundation}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtQual}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtQual}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtQual}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtFinType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtFinType1}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtFinType2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtFinType2}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Heating}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.heat}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Heating}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GasA}<LSEP>[argument 1; litteral](str){GasW}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.heat}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Heating}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GasA}<LSEP>[argument 1; litteral](str){GasW}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Heating}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HeatingQC}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){Po}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){HeatingQC}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){CentralAir}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.air}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){CentralAir}<LEND>[argument 1; litteral](str){Y}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.air}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){CentralAir}<LEND>[argument 1; litteral](str){N}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){CentralAir}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Electrical}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.electric}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Electrical}<LEND>[argument 1; litteral](str){SBrkr}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Electrical}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.electric}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Electrical}<LEND>[argument 1; litteral](str){SBrkr}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Electrical}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Electrical}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){KitchenQual}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){Po}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){KitchenQual}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.func}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Functional}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Typ}<LSEP>[argument 1; litteral](str){Mod}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.func}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Functional}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Typ}<LSEP>[argument 1; litteral](str){Mod}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Functional}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){FireplaceQu}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){FireplaceQu}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.gartype}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Attchd}<LSEP>[argument 1; litteral](str){BuiltIn}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.gartype}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Attchd}<LSEP>[argument 1; litteral](str){BuiltIn}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageType}<LEND>[litteral](NULL){NULL}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageYrBlt}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageYrBlt}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){YearBuilt}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageFinish}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garfin}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageFinish}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Fin}<LSEP>[argument 1; litteral](str){RFn}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garfin}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageFinish}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Fin}<LSEP>[argument 1; litteral](str){RFn}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageFinish}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){Po}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageQual}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageQual}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){Po}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageCond}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){GarageCond}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.paved}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){PavedDrive}<LEND>[argument 1; litteral](str){Y}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.paved}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){PavedDrive}<LEND>[argument 1; litteral](str){Y}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){PavedDrive}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){hetcor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleType}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){New}<LSEP>[argument 1; litteral](str){Con}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){CWD}<LSEP>[argument 1; litteral](str){ConLI}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){WD}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){COD}<LSEP>[argument 1; litteral](str){ConLw}<LSEP>[argument 2; litteral](str){ConLD}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Oth}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleType}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.salecond}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleCondition}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Partial}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.salecond}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleCondition}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Normal}<LSEP>[argument 1; litteral](str){Alloca}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.salecond}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleCondition}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Family}<LSEP>[argument 1; litteral](str){Abnorml}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.salecond}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleCondition}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AdjLand}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SaleCondition}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; litteral](str){Av}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; litteral](str){Mn}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; litteral](str){No}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtExposure}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtExposure}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; litteral](str){Po}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtCond}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){BsmtCond}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){TotalBsmtSF}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){TotalBsmtSF}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.paved}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.paved}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.util}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){dummy.util}<LEND>[litteral](real){0.000000}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotFrontage}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotFrontage}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotFrontage}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Neighborhood}<LEND>[](symbol){i}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MiscFeature}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fence}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PoolQC}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Alley}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){FV}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){RL}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){RH}<LSEP>[argument 1; litteral](str){RM}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSZoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){C (all)}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSZoning}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.street}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Street}<LEND>[argument 1; litteral](str){Pave}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.street}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Street}<LEND>[argument 1; litteral](str){Pave}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Street}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.lotshape}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotShape}<LEND>[argument 1; litteral](str){Reg}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.lotshape}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotShape}<LEND>[argument 1; litteral](str){Reg}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotShape}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LandContour}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.util}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Utilities}<LEND>[argument 1; litteral](str){AllPub}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.util}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Utilities}<LEND>[argument 1; litteral](str){AllPub}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Utilities}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){60.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){120.000000}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){40.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){50.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){70.000000}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){75.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){80.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){85.000000}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){30.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){45.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){90.000000}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){160.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){180.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[argument 1; litteral](real){190.000000}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MSSubClass}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.lot}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotConfig}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){CulDSac}<LSEP>[argument 1; litteral](str){FR3}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.lot}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotConfig}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){CulDSac}<LSEP>[argument 1; litteral](str){FR3}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotConfig}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LandSlope}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){revalue}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LandSlope}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){nhbd.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.nbhdprice}<LSEP>[](symbol){Neighborhood}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){nhbd.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.nbhdprice}<LSEP>[](symbol){Neighborhood}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){nhbd.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Neighborhood}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.nbhdprice}<LSEP>[](symbol){Neighborhood}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Neighborhood}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cond1.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Condition1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.condprice}<LSEP>[](symbol){Condition1}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cond1.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Condition1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.condprice}<LSEP>[](symbol){Condition1}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cond1.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Condition1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.condprice}<LSEP>[](symbol){Condition1}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Condition1}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cond2.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Condition2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.cond2price}<LSEP>[](symbol){Condition2}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cond2.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Condition2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.cond2price}<LSEP>[](symbol){Condition2}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){cond2.price}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Condition2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.cond2price}<LSEP>[](symbol){Condition2}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Condition2}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bldg}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BldgType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1Fam}<LSEP>[argument 1; litteral](str){TwnhsE}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bldg}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BldgType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1Fam}<LSEP>[argument 1; litteral](str){TwnhsE}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BldgType}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.house}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HouseStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.hstylprice}<LSEP>[](symbol){HouseStyle}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.house}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HouseStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.hstylprice}<LSEP>[](symbol){HouseStyle}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.house}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HouseStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.hstylprice}<LSEP>[](symbol){HouseStyle}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HouseStyle}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.roofst}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){RoofStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Hip}<LSEP>[argument 1; litteral](str){Shed}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.roofst}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){RoofStyle}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Hip}<LSEP>[argument 1; litteral](str){Shed}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){RoofStyle}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.roofst}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){RoofMatl}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Membran}<LSEP>[argument 1; litteral](str){WdShake}<LSEP>[argument 2; litteral](str){WdShngl}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.roofst}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){RoofMatl}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Membran}<LSEP>[argument 1; litteral](str){WdShake}<LSEP>[argument 2; litteral](str){WdShngl}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){RoofMatl}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.ext1price}<LSEP>[](symbol){Exterior1st}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.ext1price}<LSEP>[](symbol){Exterior1st}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Exterior1st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.ext1price}<LSEP>[](symbol){Exterior1st}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Exterior1st}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Exterior2nd}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){low.ext2price}<LSEP>[](symbol){Exterior2nd}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Exterior2nd}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mid.ext2price}<LSEP>[](symbol){Exterior2nd}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Exterior2nd}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){high.ext2price}<LSEP>[](symbol){Exterior2nd}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Exterior2nd}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrArea}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrArea}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.mastype}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stone}<LSEP>[argument 1; litteral](str){BrkFace}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrType}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.mastype}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stone}<LSEP>[argument 1; litteral](str){BrkFace}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrType}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrType}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterQual}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterQual}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterCond}<LEND>[argument 1; litteral](str){Po}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ExterCond}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.found}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Foundation}<LEND>[argument 1; litteral](str){PConc}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.found}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Foundation}<LEND>[argument 1; litteral](str){PConc}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Foundation}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtQual}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmt}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtQual}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtQual}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtFinType1}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtFinType2}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.heat}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Heating}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GasA}<LSEP>[argument 1; litteral](str){GasW}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.heat}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Heating}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GasA}<LSEP>[argument 1; litteral](str){GasW}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Heating}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.heatqc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HeatingQC}<LEND>[argument 1; litteral](str){Po}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){HeatingQC}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.air}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){CentralAir}<LEND>[argument 1; litteral](str){Y}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.air}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){CentralAir}<LEND>[argument 1; litteral](str){N}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){CentralAir}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.electric}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Electrical}<LEND>[argument 1; litteral](str){SBrkr}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Electrical}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.electric}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Electrical}<LEND>[argument 1; litteral](str){SBrkr}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Electrical}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Electrical}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){KitchenQual}<LEND>[argument 1; litteral](str){Po}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){KitchenQual}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.func}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Functional}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Typ}<LSEP>[argument 1; litteral](str){Mod}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.func}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Functional}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Typ}<LSEP>[argument 1; litteral](str){Mod}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Functional}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){FireplaceQu}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.gartype}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Attchd}<LSEP>[argument 1; litteral](str){BuiltIn}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.gartype}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Attchd}<LSEP>[argument 1; litteral](str){BuiltIn}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageType}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garfin}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageFinish}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Fin}<LSEP>[argument 1; litteral](str){RFn}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garfin}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageFinish}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Fin}<LSEP>[argument 1; litteral](str){RFn}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageFinish}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garqual}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageQual}<LEND>[argument 1; litteral](str){Po}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageQual}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageQual}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){Ex}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.garcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCond}<LEND>[argument 1; litteral](str){Po}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCond}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCond}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.paved}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PavedDrive}<LEND>[argument 1; litteral](str){Y}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.paved}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PavedDrive}<LEND>[argument 1; litteral](str){Y}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PavedDrive}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){New}<LSEP>[argument 1; litteral](str){Con}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){CWD}<LSEP>[argument 1; litteral](str){ConLI}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){WD}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){COD}<LSEP>[argument 1; litteral](str){ConLw}<LSEP>[argument 2; litteral](str){ConLD}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleType}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Oth}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleType}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.salecond}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleCondition}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Partial}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.salecond}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleCondition}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Normal}<LSEP>[argument 1; litteral](str){Alloca}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.salecond}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleCondition}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Family}<LSEP>[argument 1; litteral](str){Abnorml}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.salecond}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleCondition}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AdjLand}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SaleCondition}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; litteral](str){Av}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; litteral](str){Mn}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtExposure}<LEND>[argument 1; litteral](str){No}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtexp}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtExposure}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtExposure}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; litteral](str){Gd}<LEND>[litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; litteral](str){TA}<LEND>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; litteral](str){Fa}<LEND>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtCond}<LEND>[argument 1; litteral](str){Po}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.bsmtcond}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtCond}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtCond}<LEND>[litteral](NULL){NULL}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageYrBlt}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageYrBlt}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){YearBuilt}<LEND>[](symbol){i}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageYrBlt}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageYrBlt}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrArea}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){MasVnrArea}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotFrontage}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){LotFrontage}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtFinSF1}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtFinSF1}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtFinSF2}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtFinSF2}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtUnfSF}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtUnfSF}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){TotalBsmtSF}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){TotalBsmtSF}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.util}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.util}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.sale}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.sale}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.kit}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.kit}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr1}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr1}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr2}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.extr2}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.subclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){dummy.subclass}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){zone}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtFullBath}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtFullBath}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtHalfBath}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){BsmtHalfBath}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCars}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){GarageCars}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Id}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){SalePrice}<LEND>[assign](){=}<LSEP>[](symbol){partition}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[assign](){=}<LSEP>[](symbol){dummy.train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){partition}<LSEP>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){dummy.test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){partition}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){trainDM}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){dummy.train}<LSEP>[argument 1; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){testDM}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){dummy.test}<LSEP>[argument 1; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){trainSM}<LEND>[call](){}<LSEP>[](symbol){as}<LSEP>[](symbol){trainDM}<LSEP>[argument 1; litteral](str){sparseMatrix}<LEND>[assign](){<-}<LSEP>[](symbol){testSM}<LEND>[call](){}<LSEP>[](symbol){as}<LSEP>[](symbol){testDM}<LSEP>[argument 1; litteral](str){sparseMatrix}<LEND>[assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){LotFrontage}<LSEP>[argument 1; litteral](str){LotArea}<LSEP>[argument 2; litteral](str){LandSlope}<LSEP>[argument 3; litteral](str){OverallQual}<LSEP>[argument 4; litteral](str){OverallCond}<LSEP>[argument 5; litteral](str){GarageArea}<LSEP>[argument 6; litteral](str){X1stFlrSF}<LSEP>[argument 7; litteral](str){TotRmsAbvGrd}<LSEP>[argument 8; litteral](str){YearBuilt}<LSEP>[argument 9; litteral](str){YearRemodAdd}<LSEP>[argument 10; litteral](str){MasVnrArea}<LSEP>[argument 11; litteral](str){BsmtFinSF1}<LSEP>[argument 12; litteral](str){BsmtFinSF2}<LSEP>[argument 13; litteral](str){BsmtUnfSF}<LSEP>[argument 14; litteral](str){TotalBsmtSF}<LSEP>[argument 15; litteral](str){X2ndFlrSF}<LSEP>[argument 16; litteral](str){GrLivArea}<LSEP>[argument 17; litteral](str){GarageYrBlt}<LSEP>[argument 18; litteral](str){BsmtFullBath}<LSEP>[argument 19; litteral](str){BsmtHalfBath}<LSEP>[argument 20; litteral](str){FullBath}<LSEP>[argument 21; litteral](str){HalfBath}<LSEP>[argument 22; litteral](str){BedroomAbvGr}<LSEP>[argument 23; litteral](str){KitchenAbvGr}<LSEP>[argument 24; litteral](str){Fireplaces}<LSEP>[argument 25; litteral](str){GarageCars}<LSEP>[argument 26; litteral](str){WoodDeckSF}<LSEP>[argument 27; litteral](str){OpenPorchSF}<LSEP>[argument 28; litteral](str){EnclosedPorch}<LSEP>[argument 29; litteral](str){X3SsnPorch}<LSEP>[argument 30; litteral](str){ScreenPorch}<LSEP>[argument 31; litteral](str){PoolArea}<LSEP>[argument 32; litteral](str){MiscVal}<LSEP>[argument 33; litteral](str){MoSold}<LSEP>[argument 34; litteral](str){YrSold}<LSEP>[argument 35; litteral](str){zone}<LSEP>[argument 36; litteral](str){dummy.street}<LSEP>[argument 37; litteral](str){dummy.lotshape}<LSEP>[argument 38; litteral](str){dummy.util}<LSEP>[argument 39; litteral](str){dummy.subclass}<LSEP>[argument 40; litteral](str){dummy.lot}<LSEP>[argument 41; litteral](str){nhbd.price}<LSEP>[argument 42; litteral](str){cond1.price}<LSEP>[argument 43; litteral](str){cond2.price}<LSEP>[argument 44; litteral](str){dummy.bldg}<LSEP>[argument 45; litteral](str){dummy.house}<LSEP>[argument 46; litteral](str){dummy.roofst}<LSEP>[argument 47; litteral](str){dummy.garcond}<LSEP>[argument 48; litteral](str){dummy.extr1}<LSEP>[argument 49; litteral](str){dummy.extr2}<LSEP>[argument 50; litteral](str){dummy.mastype}<LSEP>[argument 51; litteral](str){dummy.extcond}<LSEP>[argument 52; litteral](str){dummy.found}<LSEP>[argument 53; litteral](str){dummy.bsmt}<LSEP>[argument 54; litteral](str){dummy.heat}<LSEP>[argument 55; litteral](str){dummy.heatqc}<LSEP>[argument 56; litteral](str){dummy.air}<LSEP>[argument 57; litteral](str){dummy.electric}<LSEP>[argument 58; litteral](str){dummy.kit}<LSEP>[argument 59; litteral](str){dummy.func}<LSEP>[argument 60; litteral](str){dummy.garfin}<LSEP>[argument 61; litteral](str){dummy.garqual}<LSEP>[argument 62; litteral](str){dummy.paved}<LSEP>[argument 63; litteral](str){dummy.sale}<LSEP>[argument 64; litteral](str){dummy.salecond}<LSEP>[argument 65; litteral](str){dummy.bsmtexp}<LSEP>[argument 66; litteral](str){dummy.bsmtcond}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){trainDM1}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){trainSM}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){trainSM}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){SalePrice}<LEND>[assign](){<-}<LSEP>[](symbol){trainDM2}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){trainSM}<LSEP>[](symbol){}<LSEP>[](symbol){vars}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){trainSM}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){SalePrice}<LEND>[assign](){<-}<LSEP>[](symbol){cv.sparse}<LEND>[call](){}<LSEP>[](symbol){xgb.cv}<LSEP>[](symbol){trainDM2}<LSEP>[argument 1; litteral](real){600.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){10.000000}<LSEP>[argument 4; litteral](real){0.020000}<LSEP>[argument 5; litteral](real){0.700000}<LSEP>[argument 6; litteral](real){0.700000}<LSEP>[argument 7; litteral](str){gbtree}<LSEP>[argument 8; litteral](str){rmse}<LSEP>[argument 9; litteral](logical){TRUE}<LSEP>[argument 10; litteral](real){50.000000}<LSEP>[argument 11; litteral](real){4.000000}<LSEP>[argument 12; litteral](real){2.000000}<LSEP>[argument 13; litteral](str){reg:linear}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){0.700000}<LSEP>[argument 1; litteral](real){0.700000}<LSEP>[argument 2; litteral](str){gbtree}<LSEP>[argument 3; litteral](real){10.000000}<LSEP>[argument 4; litteral](real){0.020000}<LSEP>[argument 5; litteral](str){rmse}<LSEP>[argument 6; litteral](str){reg:linear}<LEND>[assign](){<-}<LSEP>[](symbol){mod.sparse}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){trainDM2}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){trainDM2}<LEND>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](real){50.000000}<LSEP>[argument 6; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){testDM}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testSM}<LSEP>[](symbol){}<LSEP>[](symbol){vars}<LEND>[assign](){<-}<LSEP>[](symbol){predic.testDM}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){mod.sparse}<LSEP>[](symbol){testDM}<LEND>[assign](){<-}<LSEP>[](symbol){test.comp}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){testSM}<LEND>[assign](){<-}<LSEP>[](symbol){predic.testDM}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){predic.testDM}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){predic.testDM}<LEND>[litteral](str){prediction}<LEND>[assign](){<-}<LSEP>[](symbol){model_result}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){test.comp}<LSEP>[](symbol){predic.testDM}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){log_prediction}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){prediction}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){log_SalePrice}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){SalePrice}<LEND>[call](){}<LSEP>[](symbol){rmse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){log_SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){log_prediction}<LEND>[assign](){<-}<LSEP>[](symbol){testdf}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){testmt}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){testdf}<LSEP>[argument 1; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){testSM1}<LEND>[call](){}<LSEP>[](symbol){as}<LSEP>[](symbol){testmt}<LSEP>[argument 1; litteral](str){sparseMatrix}<LEND>[assign](){<-}<LSEP>[](symbol){predict1}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){mod.sparse}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testSM1}<LSEP>[](symbol){}<LSEP>[](symbol){vars}<LEND>[assign](){<-}<LSEP>[](symbol){predict1}<LEND>[call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){predict1}<LEND>[assign](){<-}<LSEP>[](symbol){predict1}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){predict1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){predict1}<LEND>[litteral](str){pred_value}<LEND>[assign](){<-}<LSEP>[](symbol){model_result}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){testdf}<LSEP>[](symbol){predict1}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){Id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){pred_value}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model_result}<LSEP>[](symbol){pred_value}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){submission2.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){rpart}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){rpart.plot}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Survived}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){combi}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){[,.]}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){[,.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; litteral](real){797.000000}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Lady}<LSEP>[argument 1; litteral](str){the Countess}<LSEP>[argument 2; litteral](str){Mlle}<LSEP>[argument 3; litteral](str){Mee}<LSEP>[argument 4; litteral](str){Ms}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Capt}<LSEP>[argument 1; litteral](str){Don}<LSEP>[argument 2; litteral](str){Major}<LSEP>[argument 3; litteral](str){Sir}<LSEP>[argument 4; litteral](str){Col}<LSEP>[argument 5; litteral](str){Jonkheer}<LSEP>[argument 6; litteral](str){Rev}<LSEP>[argument 7; litteral](str){Dr}<LSEP>[argument 8; litteral](str){Master}<LEND>[litteral](str){Mr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Dona}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[litteral](str){S}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){1044.000000}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){family_size}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Female}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){UpperClass}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](str){1}<LEND>[assign](){<-}<LSEP>[](symbol){predicted_age}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){Title}<LEND>[](symbol){family_size}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){combi}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[argument 2; litteral](str){anova}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){predicted_age}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){combi}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){combi}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){train_new}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){combi}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test_new}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){combi}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){892.000000}<LSEP>[argument 1; litteral](real){1309.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_new}<LSEP>[](symbol){Survived}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_new}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_new}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_new}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_new}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](str){}<LEND>[litteral](str){H}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_new}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_new}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](str){T}<LEND>[litteral](str){H}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_new}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_new}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_new}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_new}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](str){}<LEND>[litteral](str){H}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_new}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_new}<LSEP>[](symbol){Cabin}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_new}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_new}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){train_new}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){test_new}<LEND>[assign](){<-}<LSEP>[](symbol){my_tree}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Age}<LSEP>[](symbol){Female}<LEND>[](symbol){UpperClass}<LEND>[](symbol){train_new}<LSEP>[argument 2; litteral](str){class}<LEND>[argument 3; call](){}<LSEP>[](symbol){rpart.control}<LSEP>[argument 0; litteral](real){0.000100}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){my_tree}<LEND>[call](){}<LSEP>[](symbol){prp}<LSEP>[](symbol){my_tree}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){my_prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){my_tree}<LSEP>[](symbol){test_new}<LSEP>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){my_prediction}<LEND>[assign](){<-}<LSEP>[](symbol){vector_passengerid}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_new}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){my_solution}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){vector_passengerid}<LSEP>[](symbol){my_prediction}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){my_solution}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){my_solution}<LSEP>[argument 1; litteral](str){my_solution.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){721.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){reading the train and test data\n}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){train}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_1}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_2}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[argument 1; litteral](str){target}<LEND>[assign](){=}<LSEP>[](symbol){delete_const}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_1}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA56}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){145175.000000}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA89}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){145142.000000}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA918}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){144313.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[assign](){=}<LSEP>[](symbol){datecolumns}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){VAR_0073}<LSEP>[argument 1; litteral](str){VAR_0075}<LSEP>[argument 2; litteral](str){VAR_0156}<LSEP>[argument 3; litteral](str){VAR_0157}<LSEP>[argument 4; litteral](str){VAR_0158}<LSEP>[argument 5; litteral](str){VAR_0159}<LSEP>[argument 6; litteral](str){VAR_0166}<LSEP>[argument 7; litteral](str){VAR_0167}<LSEP>[argument 8; litteral](str){VAR_0168}<LSEP>[argument 9; litteral](str){VAR_0176}<LSEP>[argument 10; litteral](str){VAR_0177}<LSEP>[argument 11; litteral](str){VAR_0178}<LSEP>[argument 12; litteral](str){VAR_0179}<LSEP>[argument 13; litteral](str){VAR_0204}<LSEP>[argument 14; litteral](str){VAR_0217}<LEND>[assign](){<-}<LSEP>[](symbol){train_cropped}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){datecolumns}<LEND>[assign](){<-}<LSEP>[](symbol){train_cc}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){train_cropped}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){%d%b%y:%H:%M:%S}<LSEP>[argument 2; litteral](str){UTC}<LEND>[control flow](){for}<LSEP>[](symbol){dc}<LSEP>[](symbol){datecolumns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){dc}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){dc}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_cc}<LSEP>[](symbol){dc}<LEND>[assign](){<-}<LSEP>[](symbol){train_cc}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){train_cropped}<LSEP>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){test_cropped}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){datecolumns}<LEND>[assign](){<-}<LSEP>[](symbol){test_cc}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){test_cropped}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){%d%b%y:%H:%M:%S}<LSEP>[argument 2; litteral](str){UTC}<LEND>[control flow](){for}<LSEP>[](symbol){dc}<LSEP>[](symbol){datecolumns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){dc}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){dc}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_cc}<LSEP>[](symbol){dc}<LEND>[assign](){<-}<LSEP>[](symbol){test_cc}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){test_cropped}<LSEP>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){train_target}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[](symbol){train_target}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){1.000000}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){feature.names}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](str){character}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){replacing missing values with ...}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){sampling train to get around 8...}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){120000.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){80000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){h}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){dval}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){val}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){val}<LSEP>[](symbol){target}<LEND>[assign](){=}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){val}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dval}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](real){0.010000}<LSEP>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](real){0.700000}<LSEP>[argument 4; litteral](real){0.700000}<LSEP>[argument 5; litteral](str){auc}<LEND>[assign](){<-}<LSEP>[](symbol){clf}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){dtrain}<LSEP>[argument 2; litteral](real){1500.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){watchlist}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[assign](){=}<LSEP>[](symbol){dtrain}<LSEP>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){=}<LSEP>[](symbol){dval}<LSEP>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission}<LSEP>[](symbol){target}<LEND>[litteral](logical){NA}<LEND>[control flow](){for}<LSEP>[](symbol){rows}<LEND>[range; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 1; litteral](real){10000.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){submission}<LSEP>[](symbol){rows}<LSEP>[argument 2; litteral](str){target}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){clf}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){rows}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){saving the submission file\n}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){xgb3.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyverse}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){keras}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){123.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train_init_df}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test_df}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[](symbol){sample_size}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.800000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train_init_df}<LEND>[assign](){<-}<LSEP>[](symbol){train_df}<LEND>[call](){}<LSEP>[](symbol){sample_n}<LSEP>[](symbol){train_init_df}<LSEP>[](symbol){sample_size}<LEND>[assign](){<-}<LSEP>[](symbol){dev_df}<LEND>[call](){}<LSEP>[](symbol){anti_join}<LSEP>[](symbol){train_init_df}<LSEP>[](symbol){train_df}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){train_df}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train_df}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){train_df}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dev_df}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){test_df}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){train_df}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dev_df}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){test_df}<LEND>[assign](){<-}<LSEP>[](symbol){missing_age}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_df}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){missing_fare}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_df}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){missing_embk}<LSEP>[litteral](str){S}<LEND>[assign](){<-}<LSEP>[](symbol){full_df}<LEND>[call](){}<LSEP>[](symbol){bind_rows}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){train_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){dev_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){test_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){full_1_df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coalesce}<LSEP>[](symbol){Age}<LSEP>[](symbol){missing_age}<LEND>[argument 2; call](){}<LSEP>[](symbol){coalesce}<LSEP>[](symbol){Cabin}<LSEP>[argument 1; litteral](str){UNK}<LEND>[argument 3; call](){}<LSEP>[](symbol){coalesce}<LSEP>[](symbol){Embarked}<LSEP>[](symbol){missing_embk}<LEND>[argument 4; call](){}<LSEP>[](symbol){coalesce}<LSEP>[](symbol){Fare}<LSEP>[](symbol){missing_fare}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){full_1_df}<LEND>[assign](){<-}<LSEP>[](symbol){obtainTitles}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){col}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){map}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_split}<LSEP>[](symbol){col}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){map}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_split}<LSEP>[](symbol){res}<LSEP>[argument 1; litteral](str){ }<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){titles}<LEND>[call](){}<LSEP>[](symbol){obtainTitles}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_df}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){titles}<LEND>[assign](){<-}<LSEP>[](symbol){low_count_titles}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){titles}<LEND>[argument 1; litteral](real){5.000000}<LEND>[assign](){<-}<LSEP>[](symbol){titles_proc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){titles}<LSEP>[](symbol){low_count_titles}<LEND>[argument 1; litteral](str){Other}<LSEP>[](symbol){titles}<LEND>[assign](){<-}<LSEP>[](symbol){titles_dict}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){tibble}<LSEP>[](symbol){titles}<LSEP>[](symbol){titles_proc}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[assign](){<-}<LSEP>[](symbol){full_2_df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_1_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){obtainTitles}<LSEP>[](symbol){Name}<LEND>[argument 1; call](){}<LSEP>[](symbol){left_join}<LSEP>[](symbol){titles_dict}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){coalesce}<LSEP>[](symbol){TitleProc}<LSEP>[argument 1; litteral](str){Other}<LEND>[assign](){<-}<LSEP>[](symbol){full_3_df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_2_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Cabin}<LSEP>[argument 1; litteral](str){UNK}<LEND>[argument 1; litteral](str){UNK}<LEND>[argument 2; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){Cabin}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){[A-z]}<LSEP>[](symbol){Ticket}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){[(|)]}<LSEP>[](symbol){Name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){categorical_binary_df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_3_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LSEP>[](symbol){SibSp}<LSEP>[](symbol){Parch}<LSEP>[](symbol){Embarked}<LSEP>[](symbol){MissingAge}<LSEP>[](symbol){TitleProc}<LSEP>[](symbol){HasParenthesis}<LSEP>[](symbol){LettersInTicket}<LSEP>[](symbol){CabinFirstLetter}<LSEP>[](symbol){isTraining}<LSEP>[](symbol){isDev}<LEND>[assign](){<-}<LSEP>[](symbol){categorical_factors}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){categorical_binary_df}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){as.factor}<LEND>[assign](){<-}<LSEP>[](symbol){numerical_categorical}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LSEP>[](symbol){categorical_factors}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){categorical_df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){numerical_categorical}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){MissingAge}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){HasParenthesis}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){LettersInTicket}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){isTraining}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){isDev}<LEND>[assign](){<-}<LSEP>[](symbol){binary_df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){numerical_categorical}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Sex}<LSEP>[](symbol){MissingAge}<LSEP>[](symbol){HasParenthesis}<LSEP>[](symbol){LettersInTicket}<LSEP>[](symbol){isTraining}<LSEP>[](symbol){isDev}<LEND>[assign](){<-}<LSEP>[](symbol){normalizeSeries}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){series}<LSEP>[](symbol){min_val}<LSEP>[](symbol){max_val}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){series}<LSEP>[](symbol){min_val}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){max_val}<LSEP>[](symbol){min_val}<LEND>[assign](){<-}<LSEP>[](symbol){min_age}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_3_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isDev}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pull}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[](symbol){max_age}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_3_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isDev}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pull}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[](symbol){min_fare}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_3_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isDev}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pull}<LSEP>[](symbol){Fare}<LEND>[assign](){<-}<LSEP>[](symbol){max_fare}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_3_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isDev}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pull}<LSEP>[](symbol){Fare}<LEND>[assign](){<-}<LSEP>[](symbol){numeric_df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_3_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Age}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){normalizeSeries}<LSEP>[](symbol){Age}<LSEP>[](symbol){min_age}<LSEP>[](symbol){max_age}<LEND>[argument 1; call](){}<LSEP>[](symbol){normalizeSeries}<LSEP>[](symbol){Fare}<LSEP>[](symbol){min_fare}<LSEP>[](symbol){max_fare}<LEND>[assign](){<-}<LSEP>[](symbol){oneHotEncodeCategoricals}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){df}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){output_df}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){numeric}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){df}<LEND>[argument 2; litteral](real){1.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){col}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){df}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){to_bind}<LEND>[call](){}<LSEP>[](symbol){to_categorical}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){pull}<LSEP>[](symbol){col}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){to_bind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){col}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){to_bind}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){output_df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){output_df}<LSEP>[](symbol){to_bind}<LEND>[statement 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){output_df}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){cat_one_hot_enc}<LEND>[call](){}<LSEP>[](symbol){oneHotEncodeCategoricals}<LSEP>[](symbol){categorical_df}<LEND>[assign](){<-}<LSEP>[](symbol){full_proc_df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){binary_df}<LSEP>[](symbol){cat_one_hot_enc}<LSEP>[](symbol){numeric_df}<LEND>[assign](){<-}<LSEP>[](symbol){x_train}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_proc_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isDev}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){isTraining}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){isDev}<LEND>[assign](){<-}<LSEP>[](symbol){x_val}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_proc_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isDev}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){isTraining}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){isDev}<LEND>[assign](){<-}<LSEP>[](symbol){x_test}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_proc_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){isTraining}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){isDev}<LEND>[assign](){<-}<LSEP>[](symbol){y_train}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_3_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isDev}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pull}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){y_val}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){full_3_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isTraining}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){isDev}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pull}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){keras_model_sequential}<LEND>[argument 1; call](){}<LSEP>[](symbol){layer_dense}<LSEP>[argument 0; litteral](real){32.000000}<LSEP>[argument 1; litteral](str){relu}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){43.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){layer_dense}<LSEP>[argument 0; litteral](real){16.000000}<LSEP>[argument 1; litteral](str){relu}<LEND>[argument 1; call](){}<LSEP>[](symbol){layer_dense}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){sigmoid}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){model}<LEND>[argument 1; call](){}<LSEP>[](symbol){compile}<LEND>[argument 0; call](){}<LSEP>[](symbol){optimizer_adam}<LEND>[argument 1; litteral](str){binary_crossentropy}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){accuracy}<LEND>[assign](){<-}<LSEP>[](symbol){history}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){model}<LEND>[argument 1; call](){}<LSEP>[](symbol){fit}<LSEP>[](symbol){x_train}<LSEP>[](symbol){y_train}<LSEP>[argument 2; litteral](real){50.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x_val}<LSEP>[](symbol){y_val}<LEND>[assign](){<-}<LSEP>[](symbol){y_test}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){model}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict_classes}<LSEP>[](symbol){x_test}<LEND>[assign](){<-}<LSEP>[](symbol){predictions}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_df}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){y_test}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){predictions}<LSEP>[argument 1; litteral](str){predictions_DC.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){bddTrain}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){,}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){bddTest}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){,}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){bddTrain}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){bddTest}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){PassengerId}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){bddTrain}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){PassengerId}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){bddTest}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](str){}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tmp}<LSEP>[argument 1; litteral](str){}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tmp}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](str){}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tmp}<LSEP>[argument 1; litteral](str){}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tmp}<LEND>[assign](){<-}<LSEP>[](symbol){getVarBarplot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){myVar}<LSEP>[](symbol){doSort}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){meanS}<LEND>[call](){}<LSEP>[](symbol){tapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){myVar}<LEND>[](symbol){mean}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){doSort}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nS}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){myVar}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){meanS}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){meanS}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){meanS}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){meanS}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nS}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){myVar}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){bplot}<LEND>[call](){}<LSEP>[](symbol){barplot}<LSEP>[](symbol){meanS}<LSEP>[](symbol){myVar}<LSEP>[argument 2; litteral](str){Mean survival rate}<LEND>[statement 3; call](){}<LSEP>[](symbol){text}<LSEP>[](symbol){bplot}<LSEP>[](symbol){meanS}<LSEP>[](symbol){nS}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.*, )|(\\..*)}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.*, )|(\\..*)}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[](symbol){rare_title}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Dona}<LSEP>[argument 1; litteral](str){Lady}<LSEP>[argument 2; litteral](str){the Countess}<LSEP>[argument 3; litteral](str){Capt}<LSEP>[argument 4; litteral](str){Col}<LSEP>[argument 5; litteral](str){Don}<LSEP>[argument 6; litteral](str){Dr}<LSEP>[argument 7; litteral](str){Major}<LSEP>[argument 8; litteral](str){Rev}<LSEP>[argument 9; litteral](str){Sir}<LSEP>[argument 10; litteral](str){Jonkheer}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Ms}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mme}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[](symbol){rare_title}<LEND>[litteral](str){Rare Title}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Ms}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mme}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[](symbol){rare_title}<LEND>[litteral](str){Rare Title}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){Title}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){Sex}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){Age}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Fsize}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Parch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Fsize}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Parch}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){Fsize}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){There are }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Ticket}<LEND>[argument 2; litteral](str){ passengers and }<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Ticket}<LEND>[argument 4; litteral](str){ tickets numbers.}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){Fare}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){FareGp}<LEND>[call](){}<LSEP>[](symbol){cut}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){20.000000}<LSEP>[argument 2; litteral](real){50.000000}<LSEP>[argument 3; litteral](real){100.000000}<LSEP>[argument 4; litteral](real){300.000000}<LSEP>[argument 5; litteral](real){600.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){FareGp}<LEND>[call](){}<LSEP>[](symbol){cut}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){20.000000}<LSEP>[argument 2; litteral](real){50.000000}<LSEP>[argument 3; litteral](real){100.000000}<LSEP>[argument 4; litteral](real){300.000000}<LSEP>[argument 5; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){FareGp}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetter}<LEND>[call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){CabLetter}<LEND>[call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){CabLetter}<LEND>[assign](){<-}<LSEP>[](symbol){bplot}<LEND>[call](){}<LSEP>[](symbol){barplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetter}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetter}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){NA}<LSEP>[argument 1; litteral](str){Cabin}<LEND>[call](){}<LSEP>[](symbol){text}<LSEP>[](symbol){bplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetter}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetter}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetter}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetter}<LEND>[argument 3; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetterTF}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){CabLetter}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){CabLetterTF}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTest}<LSEP>[](symbol){CabLetter}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bddTrain}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){getVarBarplot}<LSEP>[argument 0; litteral](str){Embarked}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){bddTrain}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){drat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Matrix}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/train_V2.csv}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){training}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*squad.*}<LSEP>[argument 1; litteral](str){squad}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*solo.*}<LSEP>[argument 1; litteral](str){solo}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*duo.*}<LSEP>[argument 1; litteral](str){duo}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*flare.*}<LSEP>[argument 1; litteral](str){squad}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*crash.*}<LSEP>[argument 1; litteral](str){duo}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){rankPoints}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){rankPoints}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){rankPoints}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){zombiecheater}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){walkDistance}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){winPlacePerc}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){totaldist}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){walkDistance}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){rideDistance}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){swimDistance}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){maxPlace}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){healsboosts}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){heals}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){boosts}<LEND>[assign](){<-}<LSEP>[](symbol){solo}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){solo}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){other}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){crash}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){duosquad}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){squad}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){duo}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){normalized}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){m}<LEND>[assign](){<-}<LSEP>[](symbol){solodf}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){solo}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){winPlacePerc}<LSEP>[](symbol){groupId}<LSEP>[](symbol){Id}<LSEP>[](symbol){matchType}<LSEP>[](symbol){matchType1}<LSEP>[](symbol){DBNOs}<LSEP>[](symbol){revives}<LSEP>[](symbol){teamKills}<LEND>[assign](){<-}<LSEP>[](symbol){solodf}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){solodf}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){killPlace}<LSEP>[](symbol){maxPlace}<LEND>[assign](){<-}<LSEP>[](symbol){solomutate}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){solodf}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate_all}<LEND>[argument 0; call](){}<LSEP>[](symbol){funs}<LSEP>[](symbol){normalized}<LSEP>[](symbol){rank}<LEND>[assign](){<-}<LSEP>[](symbol){solomutate}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){solomutate}<LEND>[assign](){<-}<LSEP>[](symbol){solomutate}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){solomutate}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){solo}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){solomutate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){solomutate}<LEND>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){soloind}<LEND>[call](){}<LSEP>[](symbol){sample}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){solomutate}<LEND>[](symbol){T}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.800000}<LSEP>[argument 1; litteral](real){0.200000}<LEND>[assign](){<-}<LSEP>[](symbol){trainsolo}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){solomutate}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){soloind}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){testsolo}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){solomutate}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){soloind}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){trainsolo}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){trainsolo}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[assign](){<-}<LSEP>[](symbol){testsolo}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){testsolo}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[assign](){<-}<LSEP>[](symbol){trainsolom}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){trainsolo}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchId}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){train_label_solo}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trainsolo}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){train_matrix_solo}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){trainsolom}<LEND>[](symbol){train_label_solo}<LEND>[assign](){<-}<LSEP>[](symbol){testsolom}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){testsolo}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchId}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){test_label_solo}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testsolo}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){test_matrix_solo}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){testsolom}<LEND>[](symbol){test_label_solo}<LEND>[assign](){<-}<LSEP>[](symbol){xgb_params_solo}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){reg:linear}<LSEP>[argument 1; litteral](str){mae}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist_solo}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){train_matrix_solo}<LSEP>[](symbol){test_matrix_solo}<LEND>[assign](){<-}<LSEP>[](symbol){bst_model}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){xgb_params_solo}<LSEP>[](symbol){train_matrix_solo}<LSEP>[argument 2; litteral](real){1326.000000}<LSEP>[](symbol){watchlist_solo}<LSEP>[argument 4; litteral](real){0.300000}<LSEP>[argument 5; litteral](real){25.000000}<LSEP>[argument 6; litteral](real){6.000000}<LSEP>[argument 7; litteral](real){0.800000}<LSEP>[argument 8; litteral](real){8.000000}<LSEP>[argument 9; litteral](real){0.800000}<LSEP>[argument 10; litteral](real){333.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){trainsolo}<LSEP>[](symbol){testsolo}<LSEP>[](symbol){solo}<LSEP>[](symbol){solodf}<LSEP>[](symbol){train_matrix_solo}<LSEP>[](symbol){test_matrix_solo}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){duosquad}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){Id}<LSEP>[](symbol){matchType}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){killPlace}<LSEP>[](symbol){maxPlace}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchDuration}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){groupId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){walkDistance}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){walkDistance}<LEND>[argument 3; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){totaldist}<LEND>[argument 4; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){totaldist}<LEND>[argument 5; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){killPlace}<LEND>[argument 6; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){killPlace}<LEND>[argument 7; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){boosts}<LEND>[argument 8; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){heals}<LEND>[argument 9; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){healsboosts}<LEND>[argument 10; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){killplcmax}<LEND>[argument 11; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){killplcmax}<LEND>[argument 12; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){damageDealt}<LEND>[argument 13; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){weaponsAcquired}<LEND>[argument 14; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){kills}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){normalized}<LSEP>[](symbol){groupmembers}<LEND>[argument 1; call](){}<LSEP>[](symbol){normalized}<LSEP>[](symbol){maxxkillplc}<LEND>[argument 2; call](){}<LSEP>[](symbol){normalized}<LSEP>[](symbol){maxxkillplc}<LEND>[argument 3; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgwalk}<LEND>[argument 4; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxwalk}<LEND>[argument 5; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgtotaldist}<LEND>[argument 6; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxtotaldist}<LEND>[argument 7; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxkill}<LEND>[argument 8; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgkill}<LEND>[argument 9; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgboost}<LEND>[argument 10; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgheal}<LEND>[argument 11; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxhb}<LEND>[argument 12; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxxkillplc}<LEND>[argument 13; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){teamtotaldmg}<LEND>[argument 14; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){damageDealt}<LEND>[argument 15; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){walkDistance}<LEND>[argument 16; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){totaldist}<LEND>[argument 17; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){weaponsAcquired}<LEND>[argument 18; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){kills}<LEND>[argument 19; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){walkDistance}<LEND>[argument 20; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){killplcmax}<LEND>[argument 21; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){killplcmax}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){avgtotaldist}<LSEP>[](symbol){teamtotalwpns}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){teamtotalwpns}<LSEP>[](symbol){totalwpns}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){walkDistance}<LSEP>[](symbol){avgwalkdist}<LEND>[argument 3; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){avgtotaldist}<LSEP>[](symbol){sumtotaldist}<LEND>[argument 4; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){teamtotalkills}<LSEP>[](symbol){totalkills}<LEND>[argument 5; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){kills}<LSEP>[](symbol){avgwalkdist}<LEND>[argument 6; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){teamtotalkills}<LSEP>[](symbol){avgtotaldist}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1233.000000}<LEND>[assign](){<-}<LSEP>[](symbol){squadind}<LEND>[call](){}<LSEP>[](symbol){sample}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){squads}<LEND>[](symbol){T}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.800000}<LSEP>[argument 1; litteral](real){0.200000}<LEND>[assign](){<-}<LSEP>[](symbol){trainsquad}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){squadind}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){testsquad}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){squadind}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){trainsquad}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){trainsquad}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[assign](){<-}<LSEP>[](symbol){testsquad}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){testsquad}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[assign](){<-}<LSEP>[](symbol){trainsquadm}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){trainsquad}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchId}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){winPlacePerc}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){groupId}<LEND>[assign](){<-}<LSEP>[](symbol){train_label_squad}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){trainsquad}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){train_matrix_squad}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){trainsquadm}<LEND>[](symbol){train_label_squad}<LEND>[assign](){<-}<LSEP>[](symbol){testsquadm}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){testsquad}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchId}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){winPlacePerc}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){groupId}<LEND>[assign](){<-}<LSEP>[](symbol){test_label_squad}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testsquad}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){test_matrix_squad}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){testsquadm}<LEND>[](symbol){test_label_squad}<LEND>[assign](){<-}<LSEP>[](symbol){xgb_params2}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){reg:linear}<LSEP>[argument 1; litteral](str){mae}<LEND>[assign](){<-}<LSEP>[](symbol){watchlistsq}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){train_matrix_squad}<LSEP>[](symbol){test_matrix_squad}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){duosquads}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){bst_modelsq}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){xgb_params2}<LSEP>[](symbol){train_matrix_squad}<LSEP>[argument 2; litteral](real){1500.000000}<LSEP>[](symbol){watchlistsq}<LSEP>[argument 4; litteral](real){0.300000}<LSEP>[argument 5; litteral](real){100.000000}<LSEP>[argument 6; litteral](real){6.000000}<LSEP>[argument 7; litteral](real){0.800000}<LSEP>[argument 8; litteral](real){8.000000}<LSEP>[argument 9; litteral](real){0.800000}<LSEP>[argument 10; litteral](real){333.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){trainsquad}<LSEP>[](symbol){testsquad}<LSEP>[](symbol){train_matrix_squad}<LSEP>[](symbol){test_matrix_squad}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/test_V2.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*squad.*}<LSEP>[argument 1; litteral](str){squad}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*solo.*}<LSEP>[argument 1; litteral](str){solo}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*duo.*}<LSEP>[argument 1; litteral](str){duo}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*flare.*}<LSEP>[argument 1; litteral](str){squad}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){.*crash.*}<LSEP>[argument 1; litteral](str){duo}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){rankPoints}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){rankPoints}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){rankPoints}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){zombiecheater}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){walkDistance}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){totaldist}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){walkDistance}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){rideDistance}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){swimDistance}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){healsboosts}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){heals}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){boosts}<LEND>[assign](){<-}<LSEP>[](symbol){solo}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){solo}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){other}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){crash}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){duosquad}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){squad}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){matchType1}<LEND>[argument 1; litteral](str){duo}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){solodf}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){solo}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){groupId}<LSEP>[](symbol){Id}<LSEP>[](symbol){matchType}<LSEP>[](symbol){matchType1}<LSEP>[](symbol){DBNOs}<LSEP>[](symbol){revives}<LSEP>[](symbol){teamKills}<LEND>[assign](){<-}<LSEP>[](symbol){solodf}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){solodf}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){killPlace}<LSEP>[](symbol){maxPlace}<LEND>[assign](){<-}<LSEP>[](symbol){solomutate}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){solodf}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate_all}<LEND>[argument 0; call](){}<LSEP>[](symbol){funs}<LSEP>[](symbol){normalized}<LSEP>[](symbol){rank}<LEND>[assign](){<-}<LSEP>[](symbol){solomutate}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){solomutate}<LEND>[assign](){<-}<LSEP>[](symbol){solomutate}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){solomutate}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchId}<LEND>[assign](){<-}<LSEP>[](symbol){solomutate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){solomutate}<LEND>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){solodf}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){bst_model}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LSEP>[](symbol){solomutate}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){maxPlace}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){maxPlace}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){sl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){solo}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){solofinal}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){sl}<LEND>[assign](){<-}<LSEP>[](symbol){solofinal}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){solofinal}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){55.000000}<LSEP>[argument 1; litteral](real){54.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){solomutate}<LSEP>[](symbol){solo}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LSEP>[](symbol){duosquad}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){killPlace}<LSEP>[](symbol){maxPlace}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){groupId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){walkDistance}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){walkDistance}<LEND>[argument 3; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){totaldist}<LEND>[argument 4; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){totaldist}<LEND>[argument 5; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){killPlace}<LEND>[argument 6; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){killPlace}<LEND>[argument 7; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){boosts}<LEND>[argument 8; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){heals}<LEND>[argument 9; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){healsboosts}<LEND>[argument 10; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){killplcmax}<LEND>[argument 11; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){killplcmax}<LEND>[argument 12; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){damageDealt}<LEND>[argument 13; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){weaponsAcquired}<LEND>[argument 14; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){kills}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){normalized}<LSEP>[](symbol){groupmembers}<LEND>[argument 1; call](){}<LSEP>[](symbol){normalized}<LSEP>[](symbol){maxxkillplc}<LEND>[argument 2; call](){}<LSEP>[](symbol){normalized}<LSEP>[](symbol){maxxkillplc}<LEND>[argument 3; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgwalk}<LEND>[argument 4; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxwalk}<LEND>[argument 5; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgtotaldist}<LEND>[argument 6; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxtotaldist}<LEND>[argument 7; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxkill}<LEND>[argument 8; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgkill}<LEND>[argument 9; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgboost}<LEND>[argument 10; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){avgheal}<LEND>[argument 11; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxhb}<LEND>[argument 12; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){maxxkillplc}<LEND>[argument 13; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){teamtotaldmg}<LEND>[argument 14; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){damageDealt}<LEND>[argument 15; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){walkDistance}<LEND>[argument 16; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){totaldist}<LEND>[argument 17; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){weaponsAcquired}<LEND>[argument 18; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){kills}<LEND>[argument 19; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){walkDistance}<LEND>[argument 20; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){killplcmax}<LEND>[argument 21; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){killplcmax}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){avgtotaldist}<LSEP>[](symbol){teamtotalwpns}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){teamtotalwpns}<LSEP>[](symbol){totalwpns}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){walkDistance}<LSEP>[](symbol){avgwalkdist}<LEND>[argument 3; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){avgtotaldist}<LSEP>[](symbol){sumtotaldist}<LEND>[argument 4; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){teamtotalkills}<LSEP>[](symbol){totalkills}<LEND>[argument 5; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){kills}<LSEP>[](symbol){avgwalkdist}<LEND>[argument 6; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){teamtotalkills}<LSEP>[](symbol){avgtotaldist}<LEND>[assign](){<-}<LSEP>[](symbol){squads}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squads}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){groupId}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Id}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchType}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchType1}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchDuration}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){bst_modelsq}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LSEP>[](symbol){squads}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){maxPlace}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){maxPlace}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){maxPlace}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){numGroups}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){numGroups}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){squads}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){sq}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){duosquad}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){squadsfinal}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){squads}<LSEP>[](symbol){sq}<LEND>[assign](){<-}<LSEP>[](symbol){squadsfinal}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squadsfinal}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){groupId}<LSEP>[](symbol){matchId}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){winPlacePerc}<LEND>[assign](){<-}<LSEP>[](symbol){squadsfinal}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){squadsfinal}<LEND>[argument 1; call](){}<LSEP>[](symbol){ungroup}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){groupId}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){matchId}<LEND>[assign](){<-}<LSEP>[](symbol){squadsfinal}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){squadsfinal}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){73.000000}<LSEP>[argument 1; litteral](real){72.000000}<LEND>[assign](){<-}<LSEP>[](symbol){final}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){squadsfinal}<LSEP>[](symbol){solofinal}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){final}<LSEP>[argument 1; litteral](str){submission.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){999.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){reading the train and test data\n}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){train}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_1}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_2}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){train.unique.count}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){train.unique.count_2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.unique.count_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[argument 1; litteral](str){target}<LEND>[assign](){=}<LSEP>[](symbol){delete_const}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_1}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA56}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){145175.000000}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA89}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){145142.000000}<LEND>[assign](){=}<LSEP>[](symbol){delete_NA918}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.unique.count_2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){always}<LEND>[argument 1; litteral](real){144313.000000}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){delete_const}<LSEP>[](symbol){delete_NA56}<LSEP>[](symbol){delete_NA89}<LSEP>[](symbol){delete_NA918}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){test}<LEND>[assign](){=}<LSEP>[](symbol){datecolumns}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){VAR_0073}<LSEP>[argument 1; litteral](str){VAR_0075}<LSEP>[argument 2; litteral](str){VAR_0156}<LSEP>[argument 3; litteral](str){VAR_0157}<LSEP>[argument 4; litteral](str){VAR_0158}<LSEP>[argument 5; litteral](str){VAR_0159}<LSEP>[argument 6; litteral](str){VAR_0166}<LSEP>[argument 7; litteral](str){VAR_0167}<LSEP>[argument 8; litteral](str){VAR_0168}<LSEP>[argument 9; litteral](str){VAR_0176}<LSEP>[argument 10; litteral](str){VAR_0177}<LSEP>[argument 11; litteral](str){VAR_0178}<LSEP>[argument 12; litteral](str){VAR_0179}<LSEP>[argument 13; litteral](str){VAR_0204}<LSEP>[argument 14; litteral](str){VAR_0217}<LEND>[assign](){<-}<LSEP>[](symbol){train_cropped}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){datecolumns}<LEND>[assign](){<-}<LSEP>[](symbol){train_cc}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){train_cropped}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){%d%b%y:%H:%M:%S}<LSEP>[argument 2; litteral](str){UTC}<LEND>[control flow](){for}<LSEP>[](symbol){dc}<LSEP>[](symbol){datecolumns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){dc}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){dc}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_cc}<LSEP>[](symbol){dc}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){dc}<LSEP>[argument 1; litteral](str){year}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){year}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.IDate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_cc}<LSEP>[](symbol){dc}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){dc}<LSEP>[argument 1; litteral](str){month}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){month}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.IDate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_cc}<LSEP>[](symbol){dc}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){dc}<LSEP>[argument 1; litteral](str){week}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){week}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.IDate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_cc}<LSEP>[](symbol){dc}<LEND>[assign](){<-}<LSEP>[](symbol){train_cc}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){train_cropped}<LSEP>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){test_cropped}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){datecolumns}<LEND>[assign](){<-}<LSEP>[](symbol){test_cc}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){test_cropped}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){%d%b%y:%H:%M:%S}<LSEP>[argument 2; litteral](str){UTC}<LEND>[control flow](){for}<LSEP>[](symbol){dc}<LSEP>[](symbol){datecolumns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){dc}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){dc}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_cc}<LSEP>[](symbol){dc}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){dc}<LSEP>[argument 1; litteral](str){year}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){year}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.IDate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_cc}<LSEP>[](symbol){dc}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){dc}<LSEP>[argument 1; litteral](str){month}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){month}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.IDate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_cc}<LSEP>[](symbol){dc}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){dc}<LSEP>[argument 1; litteral](str){week}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){week}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.IDate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_cc}<LSEP>[](symbol){dc}<LEND>[assign](){<-}<LSEP>[](symbol){test_cc}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){test_cropped}<LSEP>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){train_target}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[](symbol){train_target}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){train}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){feature.names}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](str){character}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){replacing missing values with ...}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){sampling train to get around 8...}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){120000.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){80000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){h}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){dval}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){val}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){val}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dval}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](real){0.010000}<LSEP>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](real){0.700000}<LSEP>[argument 4; litteral](real){0.800000}<LSEP>[argument 5; litteral](real){1.000000}<LSEP>[argument 6; litteral](str){auc}<LEND>[assign](){<-}<LSEP>[](symbol){clf}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){dtrain}<LSEP>[argument 2; litteral](real){950.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){10.000000}<LSEP>[](symbol){watchlist}<LSEP>[argument 6; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dval}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission}<LSEP>[](symbol){target}<LEND>[litteral](logical){NA}<LEND>[control flow](){for}<LSEP>[](symbol){rows}<LEND>[range; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 1; litteral](real){10000.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){submission}<LSEP>[](symbol){rows}<LSEP>[argument 2; litteral](str){target}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){clf}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){rows}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){saving the submission file\n}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){xgb13.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Matrix}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Metrics}<LEND>[assign](){=}<LSEP>[](symbol){ID}<LSEP>[litteral](str){id}<LEND>[assign](){=}<LSEP>[](symbol){TARGET}<LSEP>[litteral](str){loss}<LEND>[assign](){=}<LSEP>[](symbol){SEED}<LSEP>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[](symbol){SHIFT}<LSEP>[litteral](real){200.000000}<LEND>[assign](){=}<LSEP>[](symbol){TRAIN_FILE}<LSEP>[litteral](str){../input/train.csv}<LEND>[assign](){=}<LSEP>[](symbol){TEST_FILE}<LSEP>[litteral](str){../input/test.csv}<LEND>[assign](){=}<LSEP>[](symbol){SUBMISSION_FILE}<LSEP>[litteral](str){../input/sample_submission.csv}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){TRAIN_FILE}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){TEST_FILE}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){=}<LSEP>[](symbol){y_train}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){TARGET}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){SHIFT}<LEND>[](symbol){TARGET}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){ID}<LSEP>[](symbol){TARGET}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){ID}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[](symbol){ntrain}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[assign](){=}<LSEP>[](symbol){train_test}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[assign](){=}<LSEP>[](symbol){features}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){features}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train_test}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](str){character}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train_test}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train_test}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train_test}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[assign](){<-}<LSEP>[](symbol){features_to_drop}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){cat67}<LSEP>[argument 1; litteral](str){cat21}<LSEP>[argument 2; litteral](str){cat60}<LSEP>[argument 3; litteral](str){cat65}<LSEP>[argument 4; litteral](str){cat32}<LSEP>[argument 5; litteral](str){cat30}<LSEP>[argument 6; litteral](str){cat24}<LSEP>[argument 7; litteral](str){cat74}<LSEP>[argument 8; litteral](str){cat85}<LSEP>[argument 9; litteral](str){cat17}<LSEP>[argument 10; litteral](str){cat14}<LSEP>[argument 11; litteral](str){cat18}<LSEP>[argument 12; litteral](str){cat59}<LSEP>[argument 13; litteral](str){cat22}<LSEP>[argument 14; litteral](str){cat63}<LSEP>[argument 15; litteral](str){cat56}<LSEP>[argument 16; litteral](str){cat58}<LSEP>[argument 17; litteral](str){cat55}<LSEP>[argument 18; litteral](str){cat33}<LSEP>[argument 19; litteral](str){cat34}<LSEP>[argument 20; litteral](str){cat46}<LSEP>[argument 21; litteral](str){cat47}<LSEP>[argument 22; litteral](str){cat48}<LSEP>[argument 23; litteral](str){cat68}<LSEP>[argument 24; litteral](str){cat35}<LSEP>[argument 25; litteral](str){cat20}<LSEP>[argument 26; litteral](str){cat69}<LSEP>[argument 27; litteral](str){cat70}<LSEP>[argument 28; litteral](str){cat15}<LSEP>[argument 29; litteral](str){cat62}<LEND>[assign](){=}<LSEP>[](symbol){x_train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ntrain}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){features_to_drop}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[assign](){=}<LSEP>[](symbol){x_test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ntrain}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train_test}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){features_to_drop}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[assign](){=}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x_train}<LEND>[](symbol){y_train}<LEND>[assign](){=}<LSEP>[](symbol){dtest}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x_test}<LEND>[assign](){=}<LSEP>[](symbol){xgb_params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.800000}<LSEP>[argument 3; litteral](real){0.050000}<LSEP>[argument 4; litteral](str){reg:linear}<LSEP>[argument 5; litteral](real){12.000000}<LSEP>[argument 6; litteral](real){1.000000}<LSEP>[argument 7; litteral](real){2.000000}<LSEP>[argument 8; litteral](real){1.000000}<LSEP>[argument 9; litteral](real){7.760000}<LEND>[assign](){<-}<LSEP>[](symbol){xg_eval_mae}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){yhat}<LSEP>[](symbol){dtrain}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){getinfo}<LSEP>[](symbol){dtrain}<LSEP>[argument 1; litteral](str){label}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){err}<LEND>[call](){}<LSEP>[](symbol){mae}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){yhat}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){error}<LSEP>[](symbol){err}<LEND>[assign](){=}<LSEP>[](symbol){best_nrounds}<LSEP>[litteral](real){545.000000}<LEND>[assign](){=}<LSEP>[](symbol){gbdt}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){xgb_params}<LSEP>[](symbol){dtrain}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){best_nrounds}<LSEP>[argument 1; litteral](real){0.800000}<LEND>[assign](){=}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){SUBMISSION_FILE}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){integer}<LSEP>[argument 1; litteral](str){numeric}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission}<LSEP>[](symbol){loss}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){gbdt}<LSEP>[](symbol){dtest}<LEND>[](symbol){SHIFT}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){xgb_starter_v7.sub.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[assign](){<-}<LSEP>[](symbol){expedia_train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){expedia_train}
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){options}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){knitr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){lattice}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){caret}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){rpart}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){rpart.plot}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){RColorBrewer}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){randomForest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){lattice}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){plyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){Rmisc}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){party}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){doMC}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){corrplot}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){tidyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){rpart.plot}<LEND>[assign](){<-}<LSEP>[](symbol){test_set}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){NA}<LSEP>[argument 1; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){train_set}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){NA}<LSEP>[argument 1; litteral](str){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_set}<LSEP>[](symbol){Survived}<LEND>[litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train_set}<LSEP>[](symbol){test_set}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Cabin}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.*[,] )|([.].*)}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Ms}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Mme}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Mlle}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Dona}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Lady}<LEND>[](symbol){}<LEND>[](symbol){Titles}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){the Countess}<LEND>[](symbol){}<LEND>[](symbol){Titles}<LEND>[litteral](str){Mrs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Dr}<LEND>[](symbol){}<LEND>[](symbol){Titles}<LEND>[litteral](str){Miss}<LEND>[assign](){<-}<LSEP>[](symbol){minor_title_male}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Capt}<LSEP>[argument 1; litteral](str){Col}<LSEP>[argument 2; litteral](str){Don}<LSEP>[argument 3; litteral](str){Dr}<LSEP>[argument 4; litteral](str){Major}<LSEP>[argument 5; litteral](str){Rev}<LSEP>[argument 6; litteral](str){Sir}<LSEP>[argument 7; litteral](str){Jonkheer}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[](symbol){minor_title_male}<LEND>[litteral](str){Mr}<LEND>[assign](){<-}<LSEP>[](symbol){mean_age_by_title}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Age}<LSEP>[](symbol){Titles}<LEND>[](symbol){data}<LSEP>[](symbol){mean}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Master}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mean_age_by_title}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Miss}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mean_age_by_title}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Mr}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mean_age_by_title}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[argument 1; litteral](str){Mrs}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mean_age_by_title}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mean_fare_by_pclass}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Fare}<LSEP>[](symbol){Pclass}<LEND>[](symbol){data}<LSEP>[](symbol){mean}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Fare}<LEND>[](symbol){}<LEND>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mean_fare_by_pclass}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Embarked}<LEND>[](symbol){}<LEND>[](symbol){Embarked}<LEND>[litteral](str){S}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AdultTeenChi}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){12.000000}<LEND>[litteral](str){Child}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AdultTeenChi}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){12.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){20.000000}<LEND>[litteral](str){Teen}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AdultTeenChi}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){35.000000}<LEND>[litteral](str){YoungAdult}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AdultTeenChi}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){35.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){50.000000}<LEND>[litteral](str){MiddleAged}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AdultTeenChi}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){50.000000}<LEND>[litteral](str){Siniors}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AdultTeenChi}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){AdultTeenChi}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Titles}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Name}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){Ticket}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){test_set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; litteral](real){892.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){train_set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; litteral](real){892.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_set}<LSEP>[](symbol){PassengerId}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train_set}<LSEP>[](symbol){PassengerId}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){train_set}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){0.400000}<LSEP>[argument 1; litteral](str){dodge}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Survival by passenger class}<LSEP>[argument 1; litteral](str){Passenger class}<LSEP>[argument 2; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){16.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.300000}<LSEP>[argument 1; litteral](real){0.800000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){12.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){Times New Roman}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_brewer}<LSEP>[argument 0; litteral](str){Set1}<LEND>[assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Fare}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Fare by sex}<LSEP>[argument 1; litteral](str){Passenger Fare}<LSEP>[argument 2; litteral](str){Density}<LSEP>[argument 3; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.700000}<LSEP>[argument 1; litteral](real){0.800000}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){16.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){12.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){Times New Roman}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_brewer}<LSEP>[argument 0; litteral](str){Set1}<LEND>[assign](){<-}<LSEP>[](symbol){p3}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){train_set}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Age by Survival }<LSEP>[argument 1; litteral](str){Passenger Age}<LSEP>[argument 2; litteral](str){Density}<LSEP>[argument 3; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.700000}<LSEP>[argument 1; litteral](real){0.800000}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){16.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){12.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){Times New Roman}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_brewer}<LSEP>[argument 0; litteral](str){Set1}<LEND>[assign](){<-}<LSEP>[](symbol){p4}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Age by sex}<LSEP>[argument 1; litteral](str){Passenger Age}<LSEP>[argument 2; litteral](str){Density}<LSEP>[argument 3; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.700000}<LSEP>[argument 1; litteral](real){0.800000}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){16.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){12.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){Times New Roman}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_brewer}<LSEP>[argument 0; litteral](str){Set1}<LEND>[call](){}<LSEP>[](symbol){multiplot}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LSEP>[](symbol){p3}<LSEP>[](symbol){p4}<LSEP>[argument 4; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){seed}<LSEP>[litteral](real){2017.000000}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[](symbol){seed}<LEND>[assign](){<-}<LSEP>[](symbol){n_cores}<LSEP>[litteral](real){8.000000}<LEND>[call](){}<LSEP>[](symbol){registerDoMC}<LSEP>[](symbol){n_cores}<LEND>[assign](){<-}<LSEP>[](symbol){n_resamples}<LSEP>[](symbol){n_cores}<LEND>[assign](){<-}<LSEP>[](symbol){n_repeats}<LSEP>[litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Training}<LSEP>[](symbol){train_set}<LEND>[assign](){<-}<LSEP>[](symbol){list_length}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_resamples}<LSEP>[](symbol){n_repeats}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){seeds}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){list_length}<LEND>[assign](){<-}<LSEP>[](symbol){tuneLength}<LSEP>[litteral](real){20.000000}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){list_length}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){seeds}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sample.int}<LSEP>[argument 0; litteral](real){1000.000000}<LSEP>[](symbol){tuneLength}<LEND>[assign](){<-}<LSEP>[](symbol){knnCtrl}<LEND>[call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){repeatedcv}<LSEP>[](symbol){n_resamples}<LSEP>[](symbol){n_repeats}<LSEP>[](symbol){seeds}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){knnFit}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[](symbol){.}<LEND>[](symbol){Training}<LSEP>[argument 2; litteral](str){knn}<LSEP>[argument 3; litteral](str){Accuracy}<LSEP>[](symbol){knnCtrl}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){center}<LSEP>[argument 1; litteral](str){scale}<LEND>[](symbol){tuneLength}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){knnFit}<LEND>[assign](){<-}<LSEP>[](symbol){knn_best_tune}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){knnFit}<LSEP>[](symbol){bestTune}<LEND>[assign](){<-}<LSEP>[](symbol){knn_cv_acc}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){knnFit}<LSEP>[](symbol){results}<LEND>[](symbol){Accuracy}<LEND>[assign](){<-}<LSEP>[](symbol){treeFit}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[](symbol){.}<LEND>[](symbol){Training}<LSEP>[argument 2; litteral](str){class}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){information}<LEND>[argument 4; call](){}<LSEP>[](symbol){rpart.control}<LSEP>[argument 0; litteral](real){5.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){plotcp}<LSEP>[](symbol){treeFit}<LEND>[call](){}<LSEP>[](symbol){rpart.plot}<LSEP>[](symbol){treeFit}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){gray}<LSEP>[argument 3; litteral](str){Tree Diagram}<LEND>[assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){treeFit}<LSEP>[](symbol){cptable}<LEND>[argument 1; call](){}<LSEP>[](symbol){which.min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){treeFit}<LSEP>[](symbol){cptable}<LEND>[](symbol){}<LSEP>[argument 2; litteral](str){xerror}<LEND>[argument 2; litteral](str){CP}<LEND>[assign](){<-}<LSEP>[](symbol){PtreeFit}<LEND>[call](){}<LSEP>[](symbol){prune}<LSEP>[](symbol){treeFit}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){rpart.plot}<LSEP>[](symbol){PtreeFit}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){0.700000}<LSEP>[argument 3; litteral](real){1.500000}<LSEP>[argument 4; litteral](str){gray}<LSEP>[argument 5; litteral](str){Pruned Tree Diagram}<LEND>[assign](){<-}<LSEP>[](symbol){gbmGrid}<LEND>[call](){}<LSEP>[](symbol){expand.grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](real){0.200000}<LSEP>[argument 2; litteral](real){0.300000}<LSEP>[argument 3; litteral](real){0.400000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){25.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 3; litteral](real){50.000000}<LEND>[assign](){<-}<LSEP>[](symbol){gbmCtrl}<LEND>[call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){repeatedcv}<LSEP>[](symbol){n_resamples}<LSEP>[](symbol){n_repeats}<LSEP>[](symbol){seeds}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){gbmFit}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[](symbol){.}<LEND>[](symbol){Training}<LSEP>[argument 2; litteral](str){gbm}<LSEP>[](symbol){gbmCtrl}<LSEP>[argument 4; litteral](logical){FALSE}<LSEP>[](symbol){gbmGrid}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){gbmFit}<LEND>[assign](){=}<LSEP>[](symbol){decay}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](real){0.900000}<LSEP>[argument 2; litteral](real){0.100000}<LEND>[assign](){=}<LSEP>[](symbol){hidden_net_size}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){18.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){n_weight_decay}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){decay}<LEND>[assign](){<-}<LSEP>[](symbol){n_hidden_units}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){hidden_net_size}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){list_length}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){seeds}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sample.int}<LSEP>[argument 0; litteral](real){1000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_hidden_units}<LSEP>[](symbol){n_weight_decay}<LEND>[assign](){<-}<LSEP>[](symbol){nnetCtrl}<LEND>[call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){repeatedcv}<LSEP>[](symbol){n_resamples}<LSEP>[](symbol){n_repeats}<LSEP>[argument 3; litteral](logical){TRUE}<LSEP>[](symbol){twoClassSummary}<LSEP>[](symbol){seeds}<LSEP>[argument 6; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){nnetGrid}<LEND>[call](){}<LSEP>[](symbol){expand.grid}<LSEP>[](symbol){hidden_net_size}<LSEP>[](symbol){decay}<LEND>[assign](){<-}<LSEP>[](symbol){nnetFit}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){make.names}<LSEP>[](symbol){Survived}<LEND>[](symbol){.}<LEND>[](symbol){Training}<LSEP>[argument 2; litteral](str){nnet}<LSEP>[argument 3; litteral](str){ROC}<LSEP>[](symbol){nnetCtrl}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){center}<LSEP>[argument 1; litteral](str){scale}<LEND>[](symbol){nnetGrid}<LSEP>[argument 7; litteral](logical){FALSE}<LSEP>[argument 8; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){nnetFit}<LEND>[assign](){<-}<LSEP>[](symbol){nnet_best_tune}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nnetFit}<LSEP>[](symbol){bestTune}<LEND>[assign](){<-}<LSEP>[](symbol){nnet_cv_roc}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nnetFit}<LSEP>[](symbol){results}<LEND>[](symbol){ROC}<LEND>[assign](){<-}<LSEP>[](symbol){SVMgridRad}<LEND>[call](){}<LSEP>[](symbol){expand.grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){30.000000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[argument 1; litteral](real){0.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.010000}<LSEP>[argument 1; litteral](real){0.020000}<LSEP>[argument 2; litteral](real){0.030000}<LEND>[assign](){<-}<LSEP>[](symbol){SVMctrl}<LEND>[call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){repeatedcv}<LSEP>[](symbol){n_resamples}<LSEP>[](symbol){n_repeats}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){SVMFit_rk}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[](symbol){.}<LEND>[](symbol){Training}<LSEP>[argument 2; litteral](str){svmRadial}<LSEP>[](symbol){SVMctrl}<LSEP>[](symbol){SVMgridRad}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){scale}<LSEP>[argument 1; litteral](str){center}<LEND>[argument 6; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){SVMFit_rk}<LEND>[assign](){<-}<LSEP>[](symbol){svmr_best_tune}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){SVMFit_rk}<LSEP>[](symbol){bestTune}<LEND>[assign](){<-}<LSEP>[](symbol){svmr_cv_acc}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){SVMFit_rk}<LSEP>[](symbol){results}<LEND>[](symbol){Accuracy}<LEND>[assign](){<-}<LSEP>[](symbol){SVMgridLin}<LEND>[call](){}<LSEP>[](symbol){expand.grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){0.200000}<LEND>[argument 1; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){SVMFit_lk}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[](symbol){.}<LEND>[](symbol){Training}<LSEP>[argument 2; litteral](str){svmLinear}<LSEP>[](symbol){SVMctrl}<LSEP>[](symbol){SVMgridLin}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){scale}<LSEP>[argument 1; litteral](str){center}<LEND>[argument 6; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){svml_best_tune}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){SVMFit_rk}<LSEP>[](symbol){bestTune}<LEND>[assign](){<-}<LSEP>[](symbol){svml_cv_acc}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){SVMFit_rk}<LSEP>[](symbol){results}<LEND>[](symbol){Accuracy}<LEND>[assign](){<-}<LSEP>[](symbol){train_pred_boost}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){gbmFit}<LSEP>[](symbol){Training}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){train_pred_knn}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){knnFit}<LSEP>[](symbol){Training}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){train_pred_tree}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){treeFit}<LSEP>[](symbol){Training}<LSEP>[argument 2; litteral](str){class}<LEND>[assign](){<-}<LSEP>[](symbol){train_pred_Ptree}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){PtreeFit}<LSEP>[](symbol){Training}<LSEP>[argument 2; litteral](str){class}<LEND>[assign](){<-}<LSEP>[](symbol){train_pred_nnet}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){nnetFit}<LSEP>[](symbol){Training}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){train_pred_svmr}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){SVMFit_rk}<LSEP>[](symbol){Training}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){train_pred_svml}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){SVMFit_lk}<LSEP>[](symbol){Training}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){TrainPredDF}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){train_pred_knn}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){train_pred_tree}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){train_pred_Ptree}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){train_pred_boost}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){train_pred_nnet}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){train_pred_svmr}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){train_pred_svml}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test_pred_boost}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){gbmFit}<LSEP>[](symbol){test_set}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){test_pred_knn}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){knnFit}<LSEP>[](symbol){test_set}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){test_pred_tree}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){treeFit}<LSEP>[](symbol){test_set}<LSEP>[argument 2; litteral](str){class}<LEND>[assign](){<-}<LSEP>[](symbol){test_pred_Ptree}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){PtreeFit}<LSEP>[](symbol){test_set}<LSEP>[argument 2; litteral](str){class}<LEND>[assign](){<-}<LSEP>[](symbol){test_pred_nnet}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){nnetFit}<LSEP>[](symbol){test_set}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){test_pred_svmr}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){SVMFit_rk}<LSEP>[](symbol){test_set}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){test_pred_svml}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){SVMFit_lk}<LSEP>[](symbol){test_set}<LSEP>[argument 2; litteral](str){raw}<LEND>[assign](){<-}<LSEP>[](symbol){TestPredDF}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test_pred_knn}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test_pred_tree}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test_pred_Ptree}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test_pred_boost}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test_pred_nnet}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test_pred_svmr}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test_pred_svml}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){10.000000}<LSEP>[argument 3; litteral](real){0.900000}<LEND>[call](){}<LSEP>[](symbol){corrplot.mixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){TestPredDF}<LEND>[call](){}<LSEP>[](symbol){title}<LSEP>[argument 0; litteral](str){Test set}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[call](){}<LSEP>[](symbol){corrplot.mixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){TrainPredDF}<LEND>[call](){}<LSEP>[](symbol){title}<LSEP>[argument 0; litteral](str){Train set}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){TestPredDF}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){TestPredDF}<LEND>[assign](){<-}<LSEP>[](symbol){thresh_val}<LSEP>[litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){tmp}<LSEP>[](symbol){thresh_val}<LEND>[litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LSEP>[](symbol){thresh_val}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test_pred_majority}<LSEP>[](symbol){tmp}<LEND>[assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){confusionMatrix}<LSEP>[](symbol){train_pred_knn}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Training}<LSEP>[](symbol){Survived}<LEND>[](symbol){overall}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.789470}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){confusionMatrix}<LSEP>[](symbol){train_pred_tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Training}<LSEP>[](symbol){Survived}<LEND>[](symbol){overall}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.732050}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){confusionMatrix}<LSEP>[](symbol){train_pred_Ptree}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Training}<LSEP>[](symbol){Survived}<LEND>[](symbol){overall}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.794250}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){confusionMatrix}<LSEP>[](symbol){train_pred_boost}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Training}<LSEP>[](symbol){Survived}<LEND>[](symbol){overall}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.770330}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){confusionMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){train_pred_nnet}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Training}<LSEP>[](symbol){Survived}<LEND>[](symbol){overall}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.779900}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){confusionMatrix}<LSEP>[](symbol){train_pred_svmr}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Training}<LSEP>[](symbol){Survived}<LEND>[](symbol){overall}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.799040}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){confusionMatrix}<LSEP>[](symbol){train_pred_svml}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Training}<LSEP>[](symbol){Survived}<LEND>[](symbol){overall}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.784680}<LEND>[argument 7; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){train}<LSEP>[argument 1; litteral](str){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){gather}<LSEP>[](symbol){results}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){method}<LEND>[argument 4; litteral](str){type}<LSEP>[argument 5; litteral](str){scores}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){method}<LEND>[](symbol){scores}<LSEP>[](symbol){type}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){identity}<LSEP>[argument 1; litteral](str){dodge}<LSEP>[argument 2; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){}<LSEP>[argument 1; litteral](str){Method}<LSEP>[argument 2; litteral](str){Scores}<LSEP>[argument 3; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_brewer}<LSEP>[argument 0; litteral](str){Set1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_set}<LSEP>[](symbol){PassengerId}<LEND>[call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){test_set}<LEND>[assign](){<-}<LSEP>[](symbol){prediction}<LSEP>[](symbol){test_pred_majority}<LEND>[assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_set}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){output}<LSEP>[argument 1; litteral](str){maj_prediction.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](str){markup}<LSEP>[argument 1; litteral](str){center}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LSEP>[argument 4; litteral](logical){FALSE}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){InTrain}<LEND>[call](){}<LSEP>[](symbol){createDataPartition}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){0.700000}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){InTrain}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){InTrain}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){pairs}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Age}<LSEP>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[argument 1; litteral](real){19.000000}<LSEP>[argument 2; litteral](real){0.400000}<LSEP>[](symbol){training}<LEND>[argument 4; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){navy}<LSEP>[argument 2; litteral](str){red}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){binomial}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Age}<LSEP>[](symbol){Sex}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){binomial}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[](symbol){training}<LSEP>[argument 3; litteral](str){boxplot}<LEND>[argument 4; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){blue}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[](symbol){Fare}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){binomial}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){transform}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 2; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[argument 3; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Sex}<LEND>[argument 4; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){SibSp}<LEND>[argument 5; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Parch}<LEND>[argument 6; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){transform}<LSEP>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Survived}<LEND>[argument 2; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[argument 3; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Sex}<LEND>[argument 4; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){SibSp}<LEND>[argument 5; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Parch}<LEND>[argument 6; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){transform}<LSEP>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[argument 2; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Sex}<LEND>[argument 3; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){SibSp}<LEND>[argument 4; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Parch}<LEND>[argument 5; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){training.na}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training.na}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){training.na}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[assign](){<-}<LSEP>[](symbol){Cabin.letter}<LEND>[call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Cabin}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training.na}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Cabin.survival}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training.na}<LSEP>[](symbol){Cabin}<LEND>[assign](){<-}<LSEP>[](symbol){Cabin.Pclass}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training.na}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Cabin.letter}<LEND>[](symbol){Cabin.survival}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Cabin.letter}<LEND>[](symbol){Cabin.Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LSEP>[argument 2; litteral](str){green}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[assign](){<-}<LSEP>[](symbol){Cabin.Fare}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training.na}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Cabin.letter}<LEND>[](symbol){Cabin.Fare}<LSEP>[](symbol){Cabin.survival}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Cabin}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Cabin}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){SibSp}<LSEP>[](symbol){Age}<LSEP>[](symbol){Survived}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){40.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){40.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){40.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){Age}<LSEP>[](symbol){T}<LEND>[assign](){=}<LSEP>[](symbol){lmAge}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Sex}<LSEP>[](symbol){Pclass}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){na.omit}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){lmAge}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){lmAge}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[](symbol){complete.cases.Age}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[](symbol){after.imputation.Age}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){complete.cases.Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){lmAge}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){just.imputed.observations.Age}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){after.imputation.Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){complete.cases}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){complete.cases.Age}<LSEP>[argument 1; litteral](real){20.000000}<LSEP>[argument 2; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){after.imputation.Age}<LSEP>[argument 1; litteral](real){20.000000}<LSEP>[argument 2; litteral](str){lightgreen}<LEND>[call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){just.imputed.observations.Age}<LSEP>[argument 1; litteral](real){20.000000}<LSEP>[argument 2; litteral](str){purple}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){lmAge}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){lmAge}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){lmAge}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){training.na}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training.na}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[](symbol){tune.testing.na}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tune.testing.na}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){testing.na}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){testing}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){testing.na}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){training.na}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tune.testing.na}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 2; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){testing.na}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){training}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){tune.test.set}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){testing}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){is.factor}<LEND>[assign](){<-}<LSEP>[](symbol){factors.training}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){training}<LSEP>[](symbol){is.factor}<LEND>[assign](){<-}<LSEP>[](symbol){factors.tune.test.set}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){is.factor}<LEND>[assign](){<-}<LSEP>[](symbol){factors.testing}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){testing}<LSEP>[](symbol){is.factor}<LEND>[assign](){<-}<LSEP>[](symbol){dummies.training}<LEND>[call](){}<LSEP>[](symbol){dummyVars}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Embarked}<LEND>[](symbol){training}<LEND>[assign](){<-}<LSEP>[](symbol){dummies.tune.test.set}<LEND>[call](){}<LSEP>[](symbol){dummyVars}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Embarked}<LEND>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){dummies.testing}<LEND>[call](){}<LSEP>[](symbol){dummyVars}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Embarked}<LEND>[](symbol){testing}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){factors.training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){dummies.training}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){factors.tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){dummies.tune.test.set}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){factors.testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){dummies.testing}<LSEP>[](symbol){testing}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){PassengerId}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){toupper}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){ }<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){last.space}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){last.space}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){[A-Z]}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\/}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Ticket}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Ticket}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){Fare}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[assign](){<-}<LSEP>[](symbol){num.Ticket}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){toupper}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Ticket}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){ }<LSEP>[](symbol){Ticket}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){last.space}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){last.space}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){[A-Z]}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\/}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Ticket}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Ticket}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){num.Ticket}<LEND>[call](){}<LSEP>[](symbol){num.Ticket}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){num.Ticket}<LEND>[call](){}<LSEP>[](symbol){num.Ticket}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){num.Ticket}<LEND>[call](){}<LSEP>[](symbol){num.Ticket}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){num.Ticket}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){num.Ticket}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){num.Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Pass.Names}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[](symbol){first.comma}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){,}<LSEP>[](symbol){Pass.Names}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){first.dot}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[](symbol){Pass.Names}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){Pass.Names}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){first.comma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){first.dot}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){qplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Titles}<LEND>[](symbol){Age}<LSEP>[](symbol){Survived}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[](symbol){Titles}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Pass.Names}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Name}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){first.comma}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){,}<LSEP>[](symbol){Pass.Names}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){first.dot}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[](symbol){Pass.Names}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){Pass.Names}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){first.comma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){first.dot}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){Titles}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){Titles}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){Titles}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){Titles}<LSEP>[](symbol){testing}<LEND>[assign](){<-}<LSEP>[](symbol){factors.training}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){training}<LSEP>[](symbol){is.factor}<LEND>[assign](){<-}<LSEP>[](symbol){factors.tune.test.set}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){is.factor}<LEND>[assign](){<-}<LSEP>[](symbol){factors.testing}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){testing}<LSEP>[](symbol){is.factor}<LEND>[assign](){<-}<LSEP>[](symbol){dummies.training}<LEND>[call](){}<LSEP>[](symbol){dummyVars}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){Titles}<LEND>[](symbol){training}<LEND>[assign](){<-}<LSEP>[](symbol){dummies.tune.test.set}<LEND>[call](){}<LSEP>[](symbol){dummyVars}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){Titles}<LEND>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){dummies.testing}<LEND>[call](){}<LSEP>[](symbol){dummyVars}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){PassengerId}<LSEP>[](symbol){Titles}<LEND>[](symbol){testing}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){factors.training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){dummies.training}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){factors.tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){dummies.tune.test.set}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){factors.testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){dummies.testing}<LSEP>[](symbol){testing}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){PassengerId}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Ticket}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Ticket}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Ticket}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){training}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tune.test.set}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){tune.test.set}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){testing}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testing}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){27.000000}<LEND>[assign](){<-}<LSEP>[](symbol){nsv}<LEND>[call](){}<LSEP>[](symbol){nearZeroVar}<LSEP>[](symbol){training}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nsv}<LSEP>[](symbol){nzv}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nsv}<LSEP>[](symbol){nzv}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.set}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nsv}<LSEP>[](symbol){nzv}<LEND>[assign](){<-}<LSEP>[](symbol){testing}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){nsv}<LSEP>[](symbol){nzv}<LEND>[assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){cor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){M}<LEND>[litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){M}<LSEP>[argument 1; litteral](real){0.800000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){M}<LSEP>[argument 1; litteral](real){0.800000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){cor.variables}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){M}<LSEP>[argument 1; litteral](real){0.800000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cor.variables}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){prePCA}<LEND>[call](){}<LSEP>[](symbol){preProcess}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cor.variables}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[argument 1; litteral](str){pca}<LEND>[assign](){<-}<LSEP>[](symbol){PCAcor}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){prePCA}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cor.variables}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){PCAcor}<LSEP>[](symbol){PC1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){PCAcor}<LSEP>[](symbol){PC2}<LEND>[](symbol){Survived}<LSEP>[](symbol){cor.variables}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){PCAcor}<LSEP>[](symbol){PC3}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){PCAcor}<LSEP>[](symbol){PC2}<LEND>[](symbol){Survived}<LSEP>[](symbol){cor.variables}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){125745.000000}<LEND>[assign](){<-}<LSEP>[](symbol){RPART}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){rpart}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){cv}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[](symbol){RPART}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){125745.000000}<LEND>[assign](){<-}<LSEP>[](symbol){RF}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){rf}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){cv}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[](symbol){RF}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){125745.000000}<LEND>[assign](){<-}<LSEP>[](symbol){GBM}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){gbm}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){cv}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 4; litteral](logical){FALSE}<LEND>[](symbol){GBM}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){125745.000000}<LEND>[assign](){<-}<LSEP>[](symbol){SVM}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){svmRadial}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){cv}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[](symbol){SVM}<LEND>[assign](){<-}<LSEP>[](symbol){modelsummary}<LEND>[call](){}<LSEP>[](symbol){resamples}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){RPART}<LSEP>[](symbol){RF}<LSEP>[](symbol){GBM}<LSEP>[](symbol){SVM}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){modelsummary}<LEND>[](symbol){statistics}<LEND>[](symbol){Accuracy}<LEND>[call](){}<LSEP>[](symbol){dotPlot}<LEND>[argument 0; call](){}<LSEP>[](symbol){varImp}<LSEP>[](symbol){RPART}<LEND>[call](){}<LSEP>[](symbol){dotPlot}<LEND>[argument 0; call](){}<LSEP>[](symbol){varImp}<LSEP>[](symbol){RF}<LEND>[call](){}<LSEP>[](symbol){dotPlot}<LEND>[argument 0; call](){}<LSEP>[](symbol){varImp}<LSEP>[](symbol){SVM}<LEND>[call](){}<LSEP>[](symbol){dotPlot}<LEND>[argument 0; call](){}<LSEP>[](symbol){varImp}<LSEP>[](symbol){GBM}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){125745.000000}<LEND>[assign](){<-}<LSEP>[](symbol){RF.tune}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){training}<LSEP>[argument 2; litteral](str){rf}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){boot632}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){RF.tune}<LSEP>[](symbol){results}<LEND>[](symbol){Accuracy}<LEND>[assign](){<-}<LSEP>[](symbol){in.sample.predictions}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF.tune}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF}<LSEP>[](symbol){training}<LEND>[argument 2; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){GBM}<LSEP>[](symbol){training}<LEND>[argument 3; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RPART}<LSEP>[](symbol){training}<LEND>[argument 4; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){SVM}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){in.sample.predictions}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){125745.000000}<LEND>[assign](){<-}<LSEP>[](symbol){RF.stack}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){in.sample.predictions}<LSEP>[argument 2; litteral](str){rf}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){cv}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[](symbol){RF.stack}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){125745.000000}<LEND>[assign](){<-}<LSEP>[](symbol){GBM.stack}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){in.sample.predictions}<LSEP>[argument 2; litteral](str){gbm}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){cv}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 4; litteral](logical){FALSE}<LEND>[](symbol){GBM.stack}<LEND>[assign](){<-}<LSEP>[](symbol){pred.tune.test.RF}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){pred.tune.test.RF.tune}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF.tune}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){pred.tune.test.GBM}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){GBM}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){pred.tune.test.RPART}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RPART}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){pred.tune.test.SVM}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){SVM}<LSEP>[](symbol){tune.test.set}<LEND>[assign](){<-}<LSEP>[](symbol){tune.test.predictions}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){pred.tune.test.RF.tune}<LSEP>[](symbol){pred.tune.test.RF}<LSEP>[](symbol){pred.tune.test.GBM}<LSEP>[](symbol){pred.tune.test.RPART}<LSEP>[](symbol){pred.tune.test.SVM}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.predictions}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){pred.tune.test.RF.stack}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF.stack}<LSEP>[](symbol){tune.test.predictions}<LEND>[assign](){<-}<LSEP>[](symbol){pred.tune.test.GBM.stack}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){GBM.stack}<LSEP>[](symbol){tune.test.predictions}<LEND>[call](){}<LSEP>[](symbol){confusionMatrix}<LSEP>[](symbol){pred.tune.test.RF.stack}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){confusionMatrix}<LSEP>[](symbol){pred.tune.test.GBM.stack}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tune.test.set}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){pred.test.RF}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){pred.test.RF.tune}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF.tune}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){pred.test.GBM}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){GBM}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){pred.test.RPART}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RPART}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){pred.test.SVM}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){SVM}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test.predictions}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){pred.test.RF.tune}<LSEP>[](symbol){pred.test.RF}<LSEP>[](symbol){pred.test.GBM}<LSEP>[](symbol){pred.test.RPART}<LSEP>[](symbol){pred.test.SVM}<LEND>[assign](){<-}<LSEP>[](symbol){pred.test.RF.stack}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){RF.stack}<LSEP>[](symbol){test.predictions}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){Age}<LSEP>[](symbol){Fare}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Fare}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 4; call](){}<LSEP>[](symbol){I}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[assign](){=}<LSEP>[](symbol){F.size}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Parch}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){SibSp}<LEND>[call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){F.size}<LSEP>[](symbol){Fare}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 4; call](){}<LSEP>[](symbol){I}<LSEP>[argument 0; litteral](real){0.400000}<LEND>[call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){Sex}<LSEP>[](symbol){Fare}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 4; call](){}<LSEP>[](symbol){I}<LSEP>[argument 0; litteral](real){0.400000}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Name}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Age}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Ticket}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Cabin}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){final_testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Name}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Age}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Ticket}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Cabin}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){final_testing}<LEND>[assign](){<-}<LSEP>[](symbol){lmFit1}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Sex}<LEND>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){lmFit1}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){lmFit1}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){lmFit1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){final_testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){training}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){final_testing}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Female}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Female}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){final_testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[](symbol){prePCA}<LEND>[call](){}<LSEP>[](symbol){preProcess}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](str){pca}<LEND>[assign](){<-}<LSEP>[](symbol){PCAtraining}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){prePCA}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){PC1}<LSEP>[](symbol){PC2}<LSEP>[](symbol){PCAtraining}<LSEP>[](symbol){Survived}<LEND>[argument 4; call](){}<LSEP>[](symbol){I}<LSEP>[argument 0; litteral](real){0.300000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){PC2}<LSEP>[](symbol){PC3}<LSEP>[](symbol){PCAtraining}<LSEP>[](symbol){Survived}<LEND>[argument 4; call](){}<LSEP>[](symbol){I}<LSEP>[argument 0; litteral](real){0.300000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){PC1}<LSEP>[](symbol){PC3}<LSEP>[](symbol){PCAtraining}<LSEP>[](symbol){Survived}<LEND>[argument 4; call](){}<LSEP>[](symbol){I}<LSEP>[argument 0; litteral](real){0.300000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){PCAknn}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){PCAtraining}<LSEP>[argument 2; litteral](str){knn}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){boot632}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){PCA.rf}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){PCAtraining}<LSEP>[argument 2; litteral](str){rf}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){boot632}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){PCA.gbm}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){PCAtraining}<LSEP>[argument 2; litteral](str){gbm}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){boot632}<LSEP>[argument 1; litteral](real){200.000000}<LEND>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){PCA.lda}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){PCAtraining}<LSEP>[argument 2; litteral](str){lda}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){boot632}<LEND>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){PCA.svm}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){PCAtraining}<LSEP>[argument 2; litteral](str){svmRadial}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){boot632}<LEND>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){PCAtesting}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){prePCA}<LSEP>[](symbol){final_testing}<LEND>[assign](){<-}<LSEP>[](symbol){predictions}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){models}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){PCA.lda}<LSEP>[](symbol){PCA.gbm}<LSEP>[](symbol){PCA.rf}<LSEP>[](symbol){PCAknn}<LSEP>[](symbol){PCA.svm}<LEND>[assign](){<-}<LSEP>[](symbol){predictions}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){models}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){PCAtesting}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Cabin}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Embarked}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){final_testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Cabin}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Embarked}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){final_testing}<LEND>[assign](){<-}<LSEP>[](symbol){lmFit1}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Sex}<LEND>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){lmFit1}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){lmFit1}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){lmFit1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){final_testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){training}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){final_testing}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Female}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Female}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){final_testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){toupper}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){ }<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){last.space}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){last.space}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){[A-Z]}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\/}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Ticket}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Ticket}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){log10}<LSEP>[](symbol){Ticket}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Fare}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){log10}<LSEP>[](symbol){Ticket}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){SibSp}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){log10}<LSEP>[](symbol){Ticket}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Parch}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){navy}<LEND>[assign](){<-}<LSEP>[](symbol){num.Ticket}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){toupper}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Ticket}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){ }<LSEP>[](symbol){Ticket}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){last.space}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Ticket}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){last.space}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){[A-Z]}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\/}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){Ticket}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Ticket}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){Ticket}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Ticket}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){log10}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){num.Ticket}<LEND>[call](){}<LSEP>[](symbol){num.Ticket}<LSEP>[](symbol){training}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){num.Ticket}<LEND>[call](){}<LSEP>[](symbol){num.Ticket}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){num.Ticket}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){num.Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){final_testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Ticket}<LEND>[assign](){<-}<LSEP>[](symbol){Titles.func}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Pass.Names}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Name}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){first.comma}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){,}<LSEP>[](symbol){Pass.Names}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){first.dot}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[](symbol){Pass.Names}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){Pass.Names}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){first.comma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){first.dot}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){Titles}<LEND>[assign](){<-}<LSEP>[](symbol){Titles}<LEND>[call](){}<LSEP>[](symbol){Titles.func}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Female}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Titles}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Female}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Female}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[](symbol){Survived}<LEND>[argument 4; call](){}<LSEP>[](symbol){I}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Titles.Master}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Titles}<LSEP>[argument 1; litteral](str){Master}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Titles.Master}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){Titles.func}<LSEP>[](symbol){final_testing}<LEND>[argument 1; litteral](str){Master}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Name}<LEND>[assign](){<-}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){final_testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Name}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){training}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){final_testing}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){training}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){prePCA}<LEND>[call](){}<LSEP>[](symbol){preProcess}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){training}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](str){pca}<LEND>[assign](){<-}<LSEP>[](symbol){PCAtraining}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){prePCA}<LSEP>[](symbol){training}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){qplot}<LSEP>[](symbol){PC1}<LSEP>[](symbol){PC2}<LSEP>[](symbol){PCAtraining}<LSEP>[](symbol){Survived}<LEND>[argument 4; call](){}<LSEP>[](symbol){I}<LSEP>[argument 0; litteral](real){0.300000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](str){navy}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){PCA.svm}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){PCAtraining}<LSEP>[argument 2; litteral](str){svmRadial}<LEND>[argument 3; call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){boot632}<LEND>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){PCAtesting}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){prePCA}<LSEP>[](symbol){final_testing}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){glmnet}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){SibSp}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){SibSp}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Parch}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Parch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){SibSp}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){SibSp}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Parch}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final_testing}<LSEP>[](symbol){Parch}<LEND>[assign](){=}<LSEP>[](symbol){x.training}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){.}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){training}<LEND>[assign](){=}<LSEP>[](symbol){x.testing}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){.}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){final_testing}<LEND>[assign](){=}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){fit.lasso}<LEND>[call](){}<LSEP>[](symbol){glmnet}<LSEP>[](symbol){x.training}<LSEP>[](symbol){y}<LSEP>[argument 2; litteral](str){binomial}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){fit.lasso}<LSEP>[argument 1; litteral](str){lambda}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){fit.lasso}<LSEP>[argument 1; litteral](str){dev}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){cv.lasso}<LEND>[call](){}<LSEP>[](symbol){cv.glmnet}<LSEP>[](symbol){x.training}<LSEP>[](symbol){y}<LSEP>[argument 2; litteral](str){binomial}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){cv.lasso}<LEND>[call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){cv.lasso}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cv.lasso}<LSEP>[argument 1; litteral](str){response}<LSEP>[](symbol){x.training}<LEND>[assign](){<-}<LSEP>[](symbol){pred.training}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pred.training}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){training}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[](symbol){x.testing}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x.testing}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x.testing}<LSEP>[](symbol){Survived}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){x.testing}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.testing}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x.testing}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x.training}<LEND>[assign](){<-}<LSEP>[](symbol){pred.t}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cv.lasso}<LSEP>[argument 1; litteral](str){response}<LEND>[argument 2; call](){}<LSEP>[](symbol){data.matrix}<LSEP>[](symbol){x.testing}<LEND>[assign](){<-}<LSEP>[](symbol){pred.testing}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){pred.t}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){time.1}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){time.1}<LSEP>[argument 1; litteral](str){%d-%m-%Y--%H:%M:%S}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){R.utils}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){gridExtra}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){lubridate}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Matrix}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){plyr}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){Hmisc}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){maps}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){maptools}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){sp}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){corrplot}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){294.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](real){20000.000000}<LEND>[assign](){=}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){ID}<LSEP>[](symbol){target}<LEND>[assign](){=}<LSEP>[](symbol){row_count}<LEND>[call](){}<LSEP>[](symbol){countLines}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Row count : }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){row_count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){; Predictor column count : }<LEND>[argument 3; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){train}<LEND>[assign](){=}<LSEP>[](symbol){col_ct}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Constant feature count:}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){col_ct}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){col_ct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){col_ct}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){col_ct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){train_numr}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train}<LSEP>[](symbol){is.numeric}<LEND>[assign](){=}<LSEP>[](symbol){train_char}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train}<LSEP>[](symbol){is.character}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Numerical column count : }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){train_numr}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){; Character column count : }<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){train_char}<LEND>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){str}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){train_char}<LSEP>[](symbol){unique}<LEND>[argument 1; litteral](real){4.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_char}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){train_char}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[litteral](logical){NA}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_char}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){train_char}<LSEP>[argument 1; litteral](str){}<LEND>[litteral](logical){NA}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_char}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){train_char}<LSEP>[argument 1; litteral](str){[]}<LEND>[litteral](logical){NA}<LEND>[assign](){=}<LSEP>[](symbol){train_date}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_char}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){JAN1|FEB1|MAR1}<LSEP>[](symbol){train_char}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){train_char}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_char}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train_char}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train_date}<LEND>[assign](){=}<LSEP>[](symbol){train_date}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_date}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){%d%B%y:%H:%M:%S}<LEND>[assign](){=}<LSEP>[](symbol){train_date}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){cbind.data.frame}<LSEP>[](symbol){train_date}<LEND>[assign](){=}<LSEP>[](symbol){train_time}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_date}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train_date}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){VAR_0204}<LSEP>[argument 1; litteral](str){VAR_0217}<LEND>[assign](){=}<LSEP>[](symbol){train_time}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_time}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){strftime}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){%H:%M:%S}<LEND>[assign](){=}<LSEP>[](symbol){train_hour}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_time}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){16.000000}<LEND>[body; call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_date}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){weeks}<LSEP>[argument 2; litteral](str){%d %b %y}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train_date}<LEND>[](symbol){i}<LEND>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_hour}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train_hour}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){hourly}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){24.000000}<LEND>[argument 3; litteral](str){}<LSEP>[argument 4; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){mapUSA}<LEND>[call](){}<LSEP>[](symbol){map}<LSEP>[argument 0; litteral](str){state}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){nms}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mapUSA}<LSEP>[](symbol){names}<LEND>[argument 1; litteral](str){:}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){USApolygons}<LEND>[call](){}<LSEP>[](symbol){map2SpatialPolygons}<LSEP>[](symbol){mapUSA}<LSEP>[](symbol){nms}<LEND>[argument 2; call](){}<LSEP>[](symbol){CRS}<LSEP>[argument 0; litteral](str){+proj=longlat}<LEND>[assign](){=}<LSEP>[](symbol){mapStates}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){df}<LSEP>[](symbol){feat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[](symbol){feat}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){state.abb}<LSEP>[argument 1; litteral](str){value}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dat}<LSEP>[](symbol){states}<LEND>[call](){}<LSEP>[](symbol){tolower}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){state.name}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dat}<LSEP>[](symbol){state.abb}<LEND>[](symbol){state.abb}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){nms}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dat}<LSEP>[](symbol){states}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){dat2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dat}<LSEP>[](symbol){value}<LEND>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){nms}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){dat2}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){nms}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){USAsp}<LEND>[call](){}<LSEP>[](symbol){SpatialPolygonsDataFrame}<LSEP>[](symbol){USApolygons}<LSEP>[](symbol){dat2}<LEND>[statement 7; call](){}<LSEP>[](symbol){spplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){USAsp}<LSEP>[argument 1; litteral](str){value}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){feat}<LSEP>[argument 1; litteral](str){value count}<LEND>[argument 2; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){heat.colors}<LSEP>[argument 0; litteral](real){21.000000}<LEND>[call](){}<LSEP>[](symbol){grid.arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){mapStates}<LSEP>[](symbol){train_char}<LSEP>[argument 1; litteral](str){VAR_0274}<LEND>[argument 1; call](){}<LSEP>[](symbol){mapStates}<LSEP>[](symbol){train_char}<LSEP>[argument 1; litteral](str){VAR_0237}<LEND>[argument 2; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){num_ct}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_numr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){char_ct}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_char}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){date_ct}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_date}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){all_ct}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){num_ct}<LSEP>[argument 1; litteral](str){Numerical}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){char_ct}<LSEP>[argument 1; litteral](str){Character}<LEND>[argument 2; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){date_ct}<LSEP>[argument 1; litteral](str){Date}<LEND>[assign](){=}<LSEP>[](symbol){g1}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){all_ct}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){count}<LSEP>[](symbol){type}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.700000}<LSEP>[argument 2; litteral](str){identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){Unique values per feature (0-100)}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){14.000000}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){bold}<LEND>[assign](){=}<LSEP>[](symbol){g2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){all_ct}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){count}<LSEP>[](symbol){type}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){100.000000}<LSEP>[argument 1; litteral](real){0.700000}<LSEP>[argument 2; litteral](str){identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){Unique values per feature(101+)}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){101.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){14.000000}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){bold}<LEND>[call](){}<LSEP>[](symbol){grid.arrange}<LSEP>[](symbol){g1}<LSEP>[](symbol){g2}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[](symbol){num_na}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_numr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){char_na}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_char}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){date_na}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_date}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){all_na}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){num_na}<LSEP>[argument 1; litteral](str){Numerical}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){char_na}<LSEP>[argument 1; litteral](str){Character}<LEND>[argument 2; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){date_na}<LSEP>[argument 1; litteral](str){Date}<LEND>[assign](){=}<LSEP>[](symbol){all_na}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){all_na}<LEND>[assign](){=}<LSEP>[](symbol){all_na}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all_na}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all_na}<LSEP>[](symbol){count}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){breaks}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){5.000000}<LSEP>[argument 1; litteral](real){10.000000}<LSEP>[argument 2; litteral](real){50.000000}<LSEP>[argument 3; litteral](real){100.000000}<LSEP>[argument 4; litteral](real){500.000000}<LSEP>[argument 5; litteral](real){1000.000000}<LSEP>[argument 6; litteral](real){2000.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){all_na}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){count}<LSEP>[](symbol){type}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){0.700000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_log10}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){20000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){breaks}<LSEP>[argument 1; litteral](real){5000.000000}<LSEP>[argument 2; litteral](real){10000.000000}<LSEP>[argument 3; litteral](real){20000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Histogram of feature count per...}<LSEP>[argument 1; litteral](real){24.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){16.000000}<LSEP>[argument 1; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){NA Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){Feature Count}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){200.000000}<LEND>[assign](){=}<LSEP>[](symbol){train_numr_samp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_numr}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){train_numr}<LEND>[argument 1; litteral](real){100.000000}<LEND>[call](){}<LSEP>[](symbol){str}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_numr_samp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){unique}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_numr_samp}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){train_numr_samp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){99999999.000000}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train_numr}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train_numr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){v}<LEND>[body; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){v}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[assign](){<-}<LSEP>[](symbol){descrCor_pear}<LEND>[call](){}<LSEP>[](symbol){cor}<LEND>[argument 0; call](){}<LSEP>[](symbol){scale}<LSEP>[](symbol){train_numr_samp}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](str){pearson}<LEND>[assign](){<-}<LSEP>[](symbol){descrCor_spea}<LEND>[call](){}<LSEP>[](symbol){cor}<LEND>[argument 0; call](){}<LSEP>[](symbol){scale}<LSEP>[](symbol){train_numr_samp}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](str){spearman}<LEND>[call](){}<LSEP>[](symbol){corrplot}<LSEP>[](symbol){descrCor_pear}<LSEP>[argument 1; litteral](str){hclust}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[argument 3; litteral](str){n}<LSEP>[argument 4; litteral](str){Pearson correlation of 100 sam...}<LEND>[call](){}<LSEP>[](symbol){corrplot}<LSEP>[](symbol){descrCor_spea}<LSEP>[argument 1; litteral](str){hclust}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[argument 3; litteral](str){n}<LSEP>[argument 4; litteral](str){Spearman correlation of 100 sa...}<LEND>[assign](){=}<LSEP>[](symbol){corr.df}<LEND>[call](){}<LSEP>[](symbol){expand.grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){corr.df}<LSEP>[](symbol){perc_feat_pear}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){findCorrelation}<LSEP>[](symbol){descrCor_pear}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){corr.df}<LSEP>[](symbol){perc_feat_spea}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){findCorrelation}<LSEP>[](symbol){descrCor_spea}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){corr.df}<LSEP>[](symbol){corr_limit}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){corr.df}<LSEP>[](symbol){perc_feat_pear}<LEND>[argument 2; litteral](real){19.000000}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){Feature % falling below abs(co...}<LSEP>[argument 5; litteral](str){Absolute Correlation}<LSEP>[argument 6; litteral](str){Cumulative distribution of cor...}<LEND>[call](){}<LSEP>[](symbol){abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[argument 1; litteral](real){0.050000}<LEND>[argument 2; litteral](str){gray}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){corr.df}<LSEP>[](symbol){corr_limit}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){corr.df}<LSEP>[](symbol){perc_feat_pear}<LEND>[argument 2; litteral](real){19.000000}<LSEP>[argument 3; litteral](str){blue}<LEND>[call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){corr.df}<LSEP>[](symbol){corr_limit}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){corr.df}<LSEP>[](symbol){perc_feat_spea}<LEND>[argument 2; litteral](real){19.000000}<LSEP>[argument 3; litteral](str){red}<LEND>[call](){}<LSEP>[](symbol){legend}<LSEP>[argument 0; litteral](str){topleft}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Pearson}<LSEP>[argument 1; litteral](str){Spearman}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){blue}<LSEP>[argument 1; litteral](str){red}<LEND>[argument 3; litteral](real){19.000000}<LSEP>[argument 4; litteral](str){white}<LEND>[call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](str){Binary Target}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){step 1. libraries loading}<LEND>[assign](){<-}<LSEP>[](symbol){pkgs}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){data.table}<LSEP>[argument 1; litteral](str){tidyverse}<LSEP>[argument 2; litteral](str){forcats}<LSEP>[argument 3; litteral](str){lubridate}<LSEP>[argument 4; litteral](str){stringr}<LSEP>[argument 5; litteral](str){rpart}<LSEP>[argument 6; litteral](str){randomForest}<LSEP>[argument 7; litteral](str){gbm}<LSEP>[argument 8; litteral](str){gmodels}<LSEP>[argument 9; litteral](str){broom}<LSEP>[argument 10; litteral](str){caret}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){pkgs}<LSEP>[](symbol){require}<LSEP>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){step 2. data import & preproce...}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/churntest/churnTest.csv}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){step 4. test}<LEND>[assign](){<-}<LSEP>[](symbol){test_one}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test_one}<LSEP>[](symbol){is_churn}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test_one}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){test_one}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){msno}<LSEP>[](symbol){is_churn}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){step 5. write.csv}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){test_one}<LSEP>[argument 1; litteral](str){Submission.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){oro.dicom}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){oro.nifti}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input/sample_images/}<LSEP>[argument 1; litteral](logical){TRUE}
[](){expression}<LSEP>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){require}<LSEP>[argument 0; litteral](str){pacman}<LEND>[true branch; call](){}<LSEP>[](symbol){install.packages}<LSEP>[argument 0; litteral](str){pacman}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pacman}<LSEP>[](symbol){p_load}<LEND>[](symbol){knitr}<LSEP>[](symbol){pryr}<LSEP>[](symbol){caTools}<LSEP>[](symbol){tidyverse}<LSEP>[](symbol){data.table}<LSEP>[](symbol){lubridate}<LSEP>[](symbol){tictoc}<LSEP>[](symbol){DescTools}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){84.000000}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){9999.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train_path}<LSEP>[litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test_path}<LSEP>[litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ip}<LSEP>[argument 1; litteral](str){app}<LSEP>[argument 2; litteral](str){device}<LSEP>[argument 3; litteral](str){os}<LSEP>[argument 4; litteral](str){channel}<LSEP>[argument 5; litteral](str){click_time}<LSEP>[argument 6; litteral](str){attributed_time}<LSEP>[argument 7; litteral](str){is_attributed}<LEND>[assign](){<-}<LSEP>[](symbol){most_freq_hours_in_test_data}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){4}<LSEP>[argument 1; litteral](str){5}<LSEP>[argument 2; litteral](str){9}<LSEP>[argument 3; litteral](str){10}<LSEP>[argument 4; litteral](str){13}<LSEP>[argument 5; litteral](str){14}<LEND>[assign](){<-}<LSEP>[](symbol){least_freq_hours_in_test_data}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){6}<LSEP>[argument 1; litteral](str){11}<LSEP>[argument 2; litteral](str){15}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use}<LEND>[call](){}<LSEP>[](symbol){mem_used}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){reading data...}<LEND>[assign](){<-}<LSEP>[](symbol){total_rows}<LSEP>[litteral](real){184903890.000000}<LEND>[assign](){<-}<LSEP>[](symbol){chunk_rows}<LSEP>[litteral](real){50000000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){skiprows}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){total_rows}<LSEP>[](symbol){chunk_rows}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){train_path}<LSEP>[](symbol){skiprows}<LSEP>[](symbol){chunk_rows}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 4; litteral](logical){FALSE}<LSEP>[](symbol){vars}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){attributed_time}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){shuffled split...}<LEND>[assign](){=}<LSEP>[](symbol){sample}<LEND>[call](){}<LSEP>[](symbol){sample.split}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){is_attributed}<LEND>[argument 1; litteral](real){0.900000}<LEND>[assign](){=}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sample}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){=}<LSEP>[](symbol){dvalid}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sample}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){train}<LSEP>[](symbol){sample}<LEND>[call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use}<LEND>[call](){}<LSEP>[](symbol){mem_used}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[assign](){<-}<LSEP>[](symbol){add_features}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dataframe}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Adding new features... }<LSEP>[argument 1; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dataframe}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){dataframe}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){Weekday}<LSEP>[](symbol){click_time}<LEND>[argument 1; call](){}<LSEP>[](symbol){hour}<LSEP>[](symbol){click_time}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){hour}<LSEP>[](symbol){most_freq_hours_in_test_data}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){hour}<LSEP>[](symbol){least_freq_hours_in_test_data}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){click_time}<LEND>[argument 1; call](){}<LSEP>[](symbol){add_count}<LSEP>[](symbol){ip}<LSEP>[](symbol){wday}<LSEP>[](symbol){in_test_hh}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){wday}<LSEP>[](symbol){in_test_hh}<LEND>[argument 1; call](){}<LSEP>[](symbol){add_count}<LSEP>[](symbol){ip}<LSEP>[](symbol){wday}<LSEP>[](symbol){hour}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){add_count}<LSEP>[](symbol){ip}<LSEP>[](symbol){hour}<LSEP>[](symbol){os}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){add_count}<LSEP>[](symbol){ip}<LSEP>[](symbol){hour}<LSEP>[](symbol){app}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){add_count}<LSEP>[](symbol){ip}<LSEP>[](symbol){hour}<LSEP>[](symbol){device}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){add_count}<LSEP>[](symbol){ip}<LSEP>[](symbol){wday}<LSEP>[](symbol){device}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){ip}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){dataframe}<LEND>[assign](){<-}<LSEP>[](symbol){prepare_dataset}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dataframe}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){>>>>---Piping it down--->>>>}<LSEP>[argument 1; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){tic}<LSEP>[argument 0; litteral](str){Total processing time --->}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dataframe}<LEND>[call](){}<LSEP>[](symbol){add_features}<LSEP>[](symbol){dataframe}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){file size: }<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){object.size}<LSEP>[](symbol){dataframe}<LEND>[argument 1; litteral](str){auto}<LEND>[statement 5; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){gc}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use: }<LEND>[statement 7; call](){}<LSEP>[](symbol){mem_used}<LEND>[statement 8; call](){}<LSEP>[](symbol){toc}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){dataframe}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){preparing training data...}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){prepare_dataset}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use: }<LEND>[call](){}<LSEP>[](symbol){mem_used}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){preparing validation data...}<LEND>[assign](){<-}<LSEP>[](symbol){dvalid}<LEND>[call](){}<LSEP>[](symbol){prepare_dataset}<LSEP>[](symbol){dvalid}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use: }<LEND>[call](){}<LSEP>[](symbol){mem_used}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){train dim : }<LEND>[argument 1; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){dtrain}<LEND>[argument 2; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){valid dim : }<LEND>[argument 1; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){dvalid}<LEND>[argument 2; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Converting to xgb.DMatrix}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dtrain}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dtrain}<LEND>[argument 1; litteral](str){is_attributed}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dtrain}<LSEP>[](symbol){is_attributed}<LEND>[assign](){<-}<LSEP>[](symbol){dvalid}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dvalid}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dvalid}<LEND>[argument 1; litteral](str){is_attributed}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dvalid}<LSEP>[](symbol){is_attributed}<LEND>[call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use}<LEND>[call](){}<LSEP>[](symbol){mem_used}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){XGB: Histogram Optimized version}<LEND>[assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](str){lossguide}<LSEP>[argument 2; litteral](str){hist}<LSEP>[argument 3; litteral](str){auc}<LSEP>[argument 4; litteral](real){7.000000}<LSEP>[argument 5; litteral](real){8.000000}<LSEP>[argument 6; litteral](real){9.700000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](real){4.000000}<LSEP>[argument 9; litteral](real){0.750000}<LSEP>[argument 10; litteral](real){0.000000}<LSEP>[argument 11; litteral](real){0.700000}<LSEP>[argument 12; litteral](real){84.000000}<LEND>[call](){}<LSEP>[](symbol){tic}<LSEP>[argument 0; litteral](str){Total time for model training ...}<LEND>[assign](){<-}<LSEP>[](symbol){xgb.model}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){dtrain}<LSEP>[](symbol){params}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dvalid}<LEND>[argument 5; litteral](real){4.000000}<LSEP>[argument 6; litteral](real){1000.000000}<LSEP>[argument 7; litteral](real){50.000000}<LSEP>[argument 8; litteral](real){50.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use}<LEND>[call](){}<LSEP>[](symbol){mem_used}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){dtrain}<LSEP>[](symbol){dvalid}<LEND>[call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){gc}<LEND>[call](){}<LSEP>[](symbol){toc}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Best score: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){xgb.model}<LSEP>[](symbol){best_score}<LEND>[argument 2; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Best iteration: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){xgb.model}<LSEP>[](symbol){best_ntreelimit}<LEND>[argument 2; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use}<LEND>[call](){}<LSEP>[](symbol){mem_used}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){preparing test data...}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){test_path}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){sub}<LEND>[call](){}<LSEP>[](symbol){data.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){click_id}<LEND>[argument 1; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){click_id}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){prepare_dataset}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){memory in use: }<LEND>[call](){}<LSEP>[](symbol){mem_used}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Predictions}<LEND>[assign](){<-}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){xgb.model}<LSEP>[](symbol){test}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){xgb.model}<LSEP>[](symbol){best_ntreelimit}<LEND>[assign](){<-}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){preds}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sub}<LSEP>[](symbol){is_attributed}<LEND>[call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){preds}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){fwrite}<LSEP>[](symbol){sub}<LSEP>[argument 1; litteral](str){sub_xgb_hist_R_50m.csv}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){sub}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){--------------------------------}<LSEP>[argument 1; litteral](str){\n}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Feature importance}<LEND>[call](){}<LSEP>[](symbol){kable}<LEND>[argument 0; call](){}<LSEP>[](symbol){xgb.importance}<LSEP>[](symbol){xgb.model}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){finished...}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){partykit}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){party}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggthemes}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){model1}<LEND>[call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Sex}<LSEP>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Pclass}<LEND>[](symbol){Fare}<LEND>[](symbol){Parch}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Sex}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Sex}<LSEP>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Fare}<LSEP>[](symbol){Age}<LEND>[](symbol){train}<LEND>[argument 2; call](){}<LSEP>[](symbol){binomial}<LSEP>[](symbol){logit}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){model1}<LSEP>[](symbol){test}<LSEP>[argument 2; litteral](str){response}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){pred}<LEND>[assign](){<-}<LSEP>[](symbol){test.res}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){my_solution}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){test.res}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart}<LEND>[call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){mice}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){830.000000}<LEND>[litteral](str){S}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Embarked}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Embarked}<LEND>[assign](){=}<LSEP>[](symbol){reducedTrain}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Pclass}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Age}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Sex}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){SibSp}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Parch}<LEND>[argument 6; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Fare}<LEND>[argument 7; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](str){Embarked}<LEND>[assign](){<-}<LSEP>[](symbol){newTrain}<LEND>[call](){}<LSEP>[](symbol){mice}<LSEP>[](symbol){reducedTrain}<LEND>[assign](){<-}<LSEP>[](symbol){reducedTrain}<LEND>[call](){}<LSEP>[](symbol){complete}<LSEP>[](symbol){newTrain}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){reducedTrain}<LEND>[assign](){=}<LSEP>[](symbol){my_forest}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Age}<LEND>[](symbol){Sex}<LEND>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Fare}<LEND>[](symbol){Embarked}<LEND>[](symbol){reducedTrain}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){1000.000000}<LEND>[assign](){=}<LSEP>[](symbol){reducedTest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){Age}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){Sex}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){SibSp}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){Parch}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){Fare}<LEND>[argument 6; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){Embarked}<LEND>[assign](){<-}<LSEP>[](symbol){newTest}<LEND>[call](){}<LSEP>[](symbol){mice}<LSEP>[](symbol){reducedTest}<LEND>[assign](){<-}<LSEP>[](symbol){betterTestData}<LEND>[call](){}<LSEP>[](symbol){complete}<LSEP>[](symbol){newTest}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){betterTestData}<LEND>[assign](){=}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){my_forest}<LSEP>[](symbol){betterTestData}<LEND>[assign](){=}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){solution}<LSEP>[argument 1; litteral](str){all_random_forest.csv}<LSEP>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){forecast}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){reshape2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){lubridate}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){date}<LSEP>[argument 1; litteral](str){2016-08-01}<LEND>[](symbol){}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){store_item}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){store_nbr}<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){item_nbr}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){store_nbr}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){item_nbr}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){date}<LSEP>[argument 1; litteral](str){store_item}<LSEP>[argument 2; litteral](str){unit_sales}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){unit_sales}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){unit_sales}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){trainMainwide}<LEND>[call](){}<LSEP>[](symbol){dcast}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){store_item}<LSEP>[](symbol){date}<LEND>[argument 2; litteral](str){unit_sales}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){melt}<LSEP>[](symbol){trainMainwide}<LSEP>[argument 1; litteral](str){store_item}<LSEP>[argument 2; litteral](str){Date}<LSEP>[argument 3; litteral](str){unit_sales}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){data.table}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){Date}<LEND>[argument 1; call](){}<LSEP>[](symbol){ymd}<LSEP>[](symbol){Date}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){unit_sales}<LEND>[argument 1; call](){}<LSEP>[](symbol){log1p}<LSEP>[](symbol){unit_sales}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){dow}<LEND>[argument 1; call](){}<LSEP>[](symbol){weekdays}<LSEP>[](symbol){Date}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){AvgsStrItemDow}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){unit_sales}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){store_item}<LSEP>[](symbol){dow}<LEND>[assign](){<-}<LSEP>[](symbol){AvgsStrItemWk}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){AvgsStrItemDow}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){ma_stritemdow}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){store_item}<LEND>[assign](){<-}<LSEP>[](symbol){AvgsStrItem}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){unit_sales}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){store_item}<LEND>[assign](){<-}<LSEP>[](symbol){mas}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){7.000000}<LSEP>[argument 3; litteral](real){14.000000}<LSEP>[argument 4; litteral](real){28.000000}<LSEP>[argument 5; litteral](real){56.000000}<LSEP>[argument 6; litteral](real){112.000000}<LEND>[assign](){<-}<LSEP>[](symbol){masdates}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Date}<LEND>[](symbol){mas}<LEND>[assign](){<-}<LSEP>[](symbol){counts}<LSEP>[litteral](real){1.000000}<LEND>[control flow](){for}<LSEP>[](symbol){dts}<LSEP>[](symbol){masdates}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){dts}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){Date}<LSEP>[](symbol){dts}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){unit_sales}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){store_item}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){temp}<LEND>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){ma_stritem_}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mas}<LSEP>[](symbol){counts}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){counts}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){counts}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){AvgsStrItem}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){AvgsStrItem}<LSEP>[](symbol){temp}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){store_item}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){macols}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){AvgsStrItem}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){9.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){AvgsStrItem}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){ma_median}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){AvgsStrItem}<LSEP>[](symbol){}<LSEP>[](symbol){macols}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){median}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){date}<LEND>[argument 1; call](){}<LSEP>[](symbol){ymd}<LSEP>[](symbol){date}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){dow}<LEND>[argument 1; call](){}<LSEP>[](symbol){weekdays}<LSEP>[](symbol){date}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){store_item}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){store_nbr}<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){item_nbr}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){store_nbr}<LSEP>[argument 1; litteral](str){item_nbr}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){test}<LSEP>[](symbol){AvgsStrItem}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){store_item}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){test}<LSEP>[](symbol){AvgsStrItemWk}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){store_item}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){test}<LSEP>[](symbol){AvgsStrItemDow}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){store_item}<LSEP>[argument 1; litteral](str){dow}<LEND>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){unit_sales}<LSEP>[](symbol){ma_median}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){ma_stritemwk}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){unit_sales}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ma_median}<LSEP>[](symbol){ma_stritemdow}<LEND>[](symbol){ma_stritemwk}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){unit_sales}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){unit_sales}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){unit_sales}<LEND>[argument 1; call](){}<LSEP>[](symbol){expm1}<LSEP>[](symbol){unit_sales}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){onpromotion}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){unit_sales}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){1.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){unit_sales}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){Finalsubmission}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){unit_sales}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){Finalsubmission}<LSEP>[argument 1; litteral](str){LogMA_2016.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){train}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Age}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Age}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Fare}<LEND>[](symbol){T}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Name}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Name}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Ticket}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Ticket}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Cabin}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Cabin}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Sex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Embarked}<LEND>[assign](){<-}<LSEP>[](symbol){mod}<LEND>[call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[](symbol){binomial}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){step}<LSEP>[](symbol){mod}<LEND>[assign](){=}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){step}<LSEP>[](symbol){mod}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){n}<LEND>[assign](){=}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Embarked}<LEND>[](symbol){binomial}<LSEP>[](symbol){train}<LEND>[assign](){=}<LSEP>[](symbol){m2}<LEND>[call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){binomial}<LSEP>[](symbol){train}<LEND>[assign](){=}<LSEP>[](symbol){cv.scores}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){999.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cv.scores}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m1}<LSEP>[](symbol){residuals}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){influence}<LSEP>[](symbol){m1}<LEND>[](symbol){hat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cv.scores}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m2}<LSEP>[](symbol){residuals}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){influence}<LSEP>[](symbol){m2}<LEND>[](symbol){hat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){cv.scores}<LEND>[call](){}<LSEP>[](symbol){which.min}<LSEP>[](symbol){cv.scores}<LEND>[assign](){=}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Sex}<LEND>[](symbol){Age}<LEND>[](symbol){SibSp}<LEND>[](symbol){Embarked}<LEND>[](symbol){binomial}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){m1}<LEND>[assign](){<-}<LSEP>[](symbol){predictions}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){m1}<LSEP>[](symbol){test}<LSEP>[argument 2; litteral](str){response}<LEND>[assign](){<-}<LSEP>[](symbol){predictions}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){predictions}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){predictions}<LSEP>[argument 1; litteral](str){predictions.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){list.files}<LSEP>[argument 0; litteral](str){../input}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){Numeric}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[argument 4; litteral](real){27.000000}<LSEP>[argument 5; litteral](real){35.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){37.000000}<LSEP>[argument 1; litteral](real){39.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){44.000000}<LSEP>[argument 1; litteral](real){53.000000}<LEND>[argument 8; litteral](real){55.000000}<LSEP>[argument 9; litteral](real){57.000000}<LSEP>[argument 10; litteral](real){60.000000}<LSEP>[argument 11; litteral](real){62.000000}<LSEP>[argument 12; litteral](real){63.000000}<LEND>[argument 13; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){67.000000}<LSEP>[argument 1; litteral](real){72.000000}<LEND>[argument 14; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){76.000000}<LSEP>[argument 1; litteral](real){78.000000}<LEND>[argument 15; litteral](real){81.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Categorical}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){6.000000}<LSEP>[argument 1; litteral](real){17.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){22.000000}<LSEP>[argument 1; litteral](real){26.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){28.000000}<LSEP>[argument 1; litteral](real){34.000000}<LEND>[argument 4; litteral](real){36.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){40.000000}<LSEP>[argument 1; litteral](real){43.000000}<LEND>[argument 6; litteral](real){54.000000}<LSEP>[argument 7; litteral](real){56.000000}<LSEP>[argument 8; litteral](real){58.000000}<LSEP>[argument 9; litteral](real){59.000000}<LSEP>[argument 10; litteral](real){61.000000}<LEND>[argument 11; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){64.000000}<LSEP>[argument 1; litteral](real){66.000000}<LEND>[argument 12; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){73.000000}<LSEP>[argument 1; litteral](real){75.000000}<LEND>[argument 13; litteral](real){79.000000}<LSEP>[argument 14; litteral](real){80.000000}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Numeric}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){GarageYrBlt}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){GarageYrBlt}<LEND>[argument 1; litteral](real){1979.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){GarageYrBlt}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){MasVnrArea}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){MasVnrArea}<LEND>[argument 1; litteral](real){103.700000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){MasVnrArea}<LEND>[assign](){<-}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){.}<LEND>[](symbol){Numeric}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){alias}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){car}<LEND>[assign](){<-}<LSEP>[](symbol){Numeric}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[argument 4; litteral](real){27.000000}<LSEP>[argument 5; litteral](real){35.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){37.000000}<LSEP>[argument 1; litteral](real){38.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){44.000000}<LSEP>[argument 1; litteral](real){46.000000}<LEND>[argument 8; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){48.000000}<LSEP>[argument 1; litteral](real){53.000000}<LEND>[argument 9; litteral](real){55.000000}<LSEP>[argument 10; litteral](real){57.000000}<LSEP>[argument 11; litteral](real){60.000000}<LSEP>[argument 12; litteral](real){62.000000}<LSEP>[argument 13; litteral](real){63.000000}<LEND>[argument 14; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){67.000000}<LSEP>[argument 1; litteral](real){72.000000}<LEND>[argument 15; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){76.000000}<LSEP>[argument 1; litteral](real){78.000000}<LEND>[argument 16; litteral](real){81.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){.}<LEND>[](symbol){Numeric}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){alias}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){vif}<LSEP>[](symbol){Model1}<LEND>[assign](){<-}<LSEP>[](symbol){Numeric}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[argument 1; litteral](real){19.000000}<LEND>[argument 4; litteral](real){21.000000}<LSEP>[argument 5; litteral](real){27.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){37.000000}<LSEP>[argument 1; litteral](real){38.000000}<LEND>[argument 7; litteral](real){46.000000}<LEND>[argument 8; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){48.000000}<LSEP>[argument 1; litteral](real){53.000000}<LEND>[argument 9; litteral](real){55.000000}<LSEP>[argument 10; litteral](real){57.000000}<LSEP>[argument 11; litteral](real){60.000000}<LSEP>[argument 12; litteral](real){62.000000}<LSEP>[argument 13; litteral](real){63.000000}<LEND>[argument 14; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){67.000000}<LSEP>[argument 1; litteral](real){72.000000}<LEND>[argument 15; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){76.000000}<LSEP>[argument 1; litteral](real){78.000000}<LEND>[argument 16; litteral](real){81.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){.}<LEND>[](symbol){Numeric}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){alias}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){vif}<LSEP>[](symbol){Model1}<LEND>[assign](){<-}<LSEP>[](symbol){Categorical}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){8.000000}<LSEP>[argument 1; litteral](real){17.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){22.000000}<LSEP>[argument 1; litteral](real){26.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){28.000000}<LSEP>[argument 1; litteral](real){34.000000}<LEND>[argument 5; litteral](real){36.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){40.000000}<LSEP>[argument 1; litteral](real){43.000000}<LEND>[argument 7; litteral](real){54.000000}<LSEP>[argument 8; litteral](real){56.000000}<LSEP>[argument 9; litteral](real){58.000000}<LSEP>[argument 10; litteral](real){59.000000}<LSEP>[argument 11; litteral](real){61.000000}<LEND>[argument 12; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){64.000000}<LSEP>[argument 1; litteral](real){66.000000}<LEND>[argument 13; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){73.000000}<LSEP>[argument 1; litteral](real){75.000000}<LEND>[argument 14; litteral](real){79.000000}<LSEP>[argument 15; litteral](real){80.000000}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){Categorical}<LEND>[assign](){<-}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){42.000000}<LSEP>[argument 2; litteral](real){42.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){MSZoning}<LSEP>[argument 1; litteral](str){Street}<LSEP>[argument 2; litteral](str){LotShape}<LSEP>[argument 3; litteral](str){LandContour}<LSEP>[argument 4; litteral](str){Utilities}<LSEP>[argument 5; litteral](str){LotConfig}<LSEP>[argument 6; litteral](str){LandSlope}<LSEP>[argument 7; litteral](str){Neighborhood}<LSEP>[argument 8; litteral](str){Condition1}<LSEP>[argument 9; litteral](str){Condition2}<LSEP>[argument 10; litteral](str){BldgType}<LSEP>[argument 11; litteral](str){HouseStyle}<LSEP>[argument 12; litteral](str){RoofStyle}<LSEP>[argument 13; litteral](str){RoofMatl}<LSEP>[argument 14; litteral](str){Exterior1st}<LSEP>[argument 15; litteral](str){Exterior2nd}<LSEP>[argument 16; litteral](str){MasVnrType}<LSEP>[argument 17; litteral](str){ExterQual}<LSEP>[argument 18; litteral](str){ExterCond}<LSEP>[argument 19; litteral](str){Foundation}<LSEP>[argument 20; litteral](str){BsmtQual}<LSEP>[argument 21; litteral](str){BsmtCond}<LSEP>[argument 22; litteral](str){BsmtExposure}<LSEP>[argument 23; litteral](str){BsmtFinType1}<LSEP>[argument 24; litteral](str){BsmtFinType2}<LSEP>[argument 25; litteral](str){Heating}<LSEP>[argument 26; litteral](str){HeatingQC}<LSEP>[argument 27; litteral](str){CentralAir}<LSEP>[argument 28; litteral](str){Electrical}<LSEP>[argument 29; litteral](str){KitchenQual}<LSEP>[argument 30; litteral](str){Functional}<LSEP>[argument 31; litteral](str){FireplaceQu}<LSEP>[argument 32; litteral](str){GarageType}<LSEP>[argument 33; litteral](str){GarageFinish}<LSEP>[argument 34; litteral](str){GarageQual}<LSEP>[argument 35; litteral](str){GarageCond}<LSEP>[argument 36; litteral](str){PavedDrive}<LSEP>[argument 37; litteral](str){PoolQC}<LSEP>[argument 38; litteral](str){Fence}<LSEP>[argument 39; litteral](str){MiscFeature}<LSEP>[argument 40; litteral](str){SaleType}<LSEP>[argument 41; litteral](str){SaleCondition}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){MSZoning}<LSEP>[argument 1; litteral](str){Street}<LSEP>[argument 2; litteral](str){LotShape}<LSEP>[argument 3; litteral](str){LandContour}<LSEP>[argument 4; litteral](str){Utilities}<LSEP>[argument 5; litteral](str){LotConfig}<LSEP>[argument 6; litteral](str){LandSlope}<LSEP>[argument 7; litteral](str){Neighborhood}<LSEP>[argument 8; litteral](str){Condition1}<LSEP>[argument 9; litteral](str){Condition2}<LSEP>[argument 10; litteral](str){BldgType}<LSEP>[argument 11; litteral](str){HouseStyle}<LSEP>[argument 12; litteral](str){RoofStyle}<LSEP>[argument 13; litteral](str){RoofMatl}<LSEP>[argument 14; litteral](str){Exterior1st}<LSEP>[argument 15; litteral](str){Exterior2nd}<LSEP>[argument 16; litteral](str){MasVnrType}<LSEP>[argument 17; litteral](str){ExterQual}<LSEP>[argument 18; litteral](str){ExterCond}<LSEP>[argument 19; litteral](str){Foundation}<LSEP>[argument 20; litteral](str){BsmtQual}<LSEP>[argument 21; litteral](str){BsmtCond}<LSEP>[argument 22; litteral](str){BsmtExposure}<LSEP>[argument 23; litteral](str){BsmtFinType1}<LSEP>[argument 24; litteral](str){BsmtFinType2}<LSEP>[argument 25; litteral](str){Heating}<LSEP>[argument 26; litteral](str){HeatingQC}<LSEP>[argument 27; litteral](str){CentralAir}<LSEP>[argument 28; litteral](str){Electrical}<LSEP>[argument 29; litteral](str){KitchenQual}<LSEP>[argument 30; litteral](str){Functional}<LSEP>[argument 31; litteral](str){FireplaceQu}<LSEP>[argument 32; litteral](str){GarageType}<LSEP>[argument 33; litteral](str){GarageFinish}<LSEP>[argument 34; litteral](str){GarageQual}<LSEP>[argument 35; litteral](str){GarageCond}<LSEP>[argument 36; litteral](str){PavedDrive}<LSEP>[argument 37; litteral](str){PoolQC}<LSEP>[argument 38; litteral](str){Fence}<LSEP>[argument 39; litteral](str){MiscFeature}<LSEP>[argument 40; litteral](str){SaleType}<LSEP>[argument 41; litteral](str){SaleCondition}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Categorical}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Categorical}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Categorical}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){chisq.test}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Categorical}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){8.000000}<LSEP>[argument 1; litteral](real){17.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){22.000000}<LSEP>[argument 1; litteral](real){26.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){28.000000}<LSEP>[argument 1; litteral](real){31.000000}<LEND>[argument 5; litteral](real){36.000000}<LSEP>[argument 6; litteral](real){40.000000}<LSEP>[argument 7; litteral](real){56.000000}<LSEP>[argument 8; litteral](real){58.000000}<LSEP>[argument 9; litteral](real){65.000000}<LEND>[argument 10; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){73.000000}<LSEP>[argument 1; litteral](real){75.000000}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Categorical}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){psych}<LEND>[assign](){<-}<LSEP>[](symbol){F1}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){MSZoning}<LEND>[assign](){<-}<LSEP>[](symbol){F2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Street}<LEND>[assign](){<-}<LSEP>[](symbol){F3}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){LotShape}<LEND>[assign](){<-}<LSEP>[](symbol){F4}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){LandContour}<LEND>[assign](){<-}<LSEP>[](symbol){F5}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Utilities}<LEND>[assign](){<-}<LSEP>[](symbol){F6}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){LotConfig}<LEND>[assign](){<-}<LSEP>[](symbol){F7}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){LandSlope}<LEND>[assign](){<-}<LSEP>[](symbol){F8}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Neighborhood}<LEND>[assign](){<-}<LSEP>[](symbol){F9}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Condition1}<LEND>[assign](){<-}<LSEP>[](symbol){F10}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Condition2}<LEND>[assign](){<-}<LSEP>[](symbol){F11}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){BldgType}<LEND>[assign](){<-}<LSEP>[](symbol){F12}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){HouseStyle}<LEND>[assign](){<-}<LSEP>[](symbol){F13}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){RoofStyle}<LEND>[assign](){<-}<LSEP>[](symbol){F14}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){RoofMatl}<LEND>[assign](){<-}<LSEP>[](symbol){F15}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Exterior1st}<LEND>[assign](){<-}<LSEP>[](symbol){F16}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Exterior2nd}<LEND>[assign](){<-}<LSEP>[](symbol){F17}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){MasVnrType}<LEND>[assign](){<-}<LSEP>[](symbol){F18}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){ExterQual}<LEND>[assign](){<-}<LSEP>[](symbol){F19}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){ExterCond}<LEND>[assign](){<-}<LSEP>[](symbol){F20}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Foundation}<LEND>[assign](){<-}<LSEP>[](symbol){F21}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){BsmtQual}<LEND>[assign](){<-}<LSEP>[](symbol){F22}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){BsmtFinType2}<LEND>[assign](){<-}<LSEP>[](symbol){F23}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Heating}<LEND>[assign](){<-}<LSEP>[](symbol){F24}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Functional}<LEND>[assign](){<-}<LSEP>[](symbol){F25}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){FireplaceQu}<LEND>[assign](){<-}<LSEP>[](symbol){F26}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){GarageCond}<LEND>[assign](){<-}<LSEP>[](symbol){F27}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){PoolQC}<LEND>[assign](){<-}<LSEP>[](symbol){F28}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){Fence}<LEND>[assign](){<-}<LSEP>[](symbol){F29}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical}<LSEP>[](symbol){MiscFeature}<LEND>[assign](){<-}<LSEP>[](symbol){categorical.train.new}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){F1}<LSEP>[](symbol){F2}<LSEP>[](symbol){F3}<LSEP>[](symbol){F4}<LSEP>[](symbol){F5}<LSEP>[](symbol){F6}<LSEP>[](symbol){F7}<LSEP>[](symbol){F8}<LSEP>[](symbol){F9}<LSEP>[](symbol){F10}<LSEP>[](symbol){F11}<LSEP>[](symbol){F12}<LSEP>[](symbol){F13}<LSEP>[](symbol){F14}<LSEP>[](symbol){F15}<LSEP>[](symbol){F16}<LSEP>[](symbol){F17}<LSEP>[](symbol){F18}<LSEP>[](symbol){F19}<LSEP>[](symbol){F20}<LSEP>[](symbol){F21}<LSEP>[](symbol){F22}<LSEP>[](symbol){F23}<LSEP>[](symbol){F24}<LSEP>[](symbol){F25}<LSEP>[](symbol){F26}<LSEP>[](symbol){F27}<LSEP>[](symbol){F28}<LSEP>[](symbol){F29}<LEND>[assign](){<-}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){categorical.train.new}<LEND>[assign](){<-}<LSEP>[](symbol){Categorical1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){8.000000}<LSEP>[argument 1; litteral](real){17.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){22.000000}<LSEP>[argument 1; litteral](real){26.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){28.000000}<LSEP>[argument 1; litteral](real){31.000000}<LEND>[argument 5; litteral](real){36.000000}<LSEP>[argument 6; litteral](real){40.000000}<LSEP>[argument 7; litteral](real){56.000000}<LSEP>[argument 8; litteral](real){58.000000}<LSEP>[argument 9; litteral](real){65.000000}<LEND>[argument 10; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){73.000000}<LSEP>[argument 1; litteral](real){75.000000}<LEND>[assign](){<-}<LSEP>[](symbol){F1}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){MSZoning}<LEND>[assign](){<-}<LSEP>[](symbol){F2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Street}<LEND>[assign](){<-}<LSEP>[](symbol){F3}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){LotShape}<LEND>[assign](){<-}<LSEP>[](symbol){F4}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){LandContour}<LEND>[assign](){<-}<LSEP>[](symbol){F5}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Utilities}<LEND>[assign](){<-}<LSEP>[](symbol){F6}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){LotConfig}<LEND>[assign](){<-}<LSEP>[](symbol){F7}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){LandSlope}<LEND>[assign](){<-}<LSEP>[](symbol){F8}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Neighborhood}<LEND>[assign](){<-}<LSEP>[](symbol){F9}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Condition1}<LEND>[assign](){<-}<LSEP>[](symbol){F10}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Condition2}<LEND>[assign](){<-}<LSEP>[](symbol){F11}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){BldgType}<LEND>[assign](){<-}<LSEP>[](symbol){F12}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){HouseStyle}<LEND>[assign](){<-}<LSEP>[](symbol){F13}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){RoofStyle}<LEND>[assign](){<-}<LSEP>[](symbol){F14}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){RoofMatl}<LEND>[assign](){<-}<LSEP>[](symbol){F15}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Exterior1st}<LEND>[assign](){<-}<LSEP>[](symbol){F16}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Exterior2nd}<LEND>[assign](){<-}<LSEP>[](symbol){F17}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){MasVnrType}<LEND>[assign](){<-}<LSEP>[](symbol){F18}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){ExterQual}<LEND>[assign](){<-}<LSEP>[](symbol){F19}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){ExterCond}<LEND>[assign](){<-}<LSEP>[](symbol){F20}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Foundation}<LEND>[assign](){<-}<LSEP>[](symbol){F21}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){BsmtQual}<LEND>[assign](){<-}<LSEP>[](symbol){F22}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){BsmtFinType2}<LEND>[assign](){<-}<LSEP>[](symbol){F23}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Heating}<LEND>[assign](){<-}<LSEP>[](symbol){F24}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Functional}<LEND>[assign](){<-}<LSEP>[](symbol){F25}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){FireplaceQu}<LEND>[assign](){<-}<LSEP>[](symbol){F26}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){GarageCond}<LEND>[assign](){<-}<LSEP>[](symbol){F27}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){PoolQC}<LEND>[assign](){<-}<LSEP>[](symbol){F28}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){Fence}<LEND>[assign](){<-}<LSEP>[](symbol){F29}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){dummy.code}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Categorical1}<LSEP>[](symbol){MiscFeature}<LEND>[assign](){<-}<LSEP>[](symbol){categorical1.test.new}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){F1}<LSEP>[](symbol){F2}<LSEP>[](symbol){F3}<LSEP>[](symbol){F4}<LSEP>[](symbol){F5}<LSEP>[](symbol){F6}<LSEP>[](symbol){F7}<LSEP>[](symbol){F8}<LSEP>[](symbol){F9}<LSEP>[](symbol){F10}<LSEP>[](symbol){F11}<LSEP>[](symbol){F12}<LSEP>[](symbol){F13}<LSEP>[](symbol){F14}<LSEP>[](symbol){F15}<LSEP>[](symbol){F16}<LSEP>[](symbol){F17}<LSEP>[](symbol){F18}<LSEP>[](symbol){F19}<LSEP>[](symbol){F20}<LSEP>[](symbol){F21}<LSEP>[](symbol){F22}<LSEP>[](symbol){F23}<LSEP>[](symbol){F24}<LSEP>[](symbol){F25}<LSEP>[](symbol){F26}<LSEP>[](symbol){F27}<LSEP>[](symbol){F28}<LSEP>[](symbol){F29}<LEND>[assign](){<-}<LSEP>[](symbol){Numeric1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[argument 1; litteral](real){19.000000}<LEND>[argument 4; litteral](real){21.000000}<LSEP>[argument 5; litteral](real){27.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){37.000000}<LSEP>[argument 1; litteral](real){38.000000}<LEND>[argument 7; litteral](real){46.000000}<LEND>[argument 8; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){48.000000}<LSEP>[argument 1; litteral](real){53.000000}<LEND>[argument 9; litteral](real){55.000000}<LSEP>[argument 10; litteral](real){57.000000}<LSEP>[argument 11; litteral](real){60.000000}<LSEP>[argument 12; litteral](real){62.000000}<LSEP>[argument 13; litteral](real){63.000000}<LEND>[argument 14; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){67.000000}<LSEP>[argument 1; litteral](real){72.000000}<LEND>[argument 15; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){76.000000}<LSEP>[argument 1; litteral](real){78.000000}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Numeric1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageYrBlt}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageYrBlt}<LEND>[argument 1; litteral](real){1978.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageYrBlt}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageCars}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageCars}<LEND>[argument 1; litteral](real){1.766000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageCars}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtHalfBath}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtHalfBath}<LEND>[argument 1; litteral](real){0.065200}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtHalfBath}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtUnfSF}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtUnfSF}<LEND>[argument 1; litteral](real){554.300000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtUnfSF}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtFinSF2}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtFinSF2}<LEND>[argument 1; litteral](real){52.620000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtFinSF2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){MasVnrArea}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){MasVnrArea}<LEND>[argument 1; litteral](real){100.700000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){MasVnrArea}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageArea}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageArea}<LEND>[argument 1; litteral](real){472.800000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){GarageArea}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtFullBath}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtFullBath}<LEND>[argument 1; litteral](real){0.434500}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){BsmtFullBath}<LEND>[assign](){<-}<LSEP>[](symbol){test.final}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){Numeric1}<LSEP>[](symbol){categorical1.test.new}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){test.final}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.final}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){82.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){.}<LEND>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){test.final}<LEND>[assign](){<-}<LSEP>[](symbol){Equation1}<LEND>[call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){LotArea}<LSEP>[](symbol){OverallQual}<LEND>[](symbol){OverallCond}<LEND>[](symbol){YearRemodAdd}<LEND>[](symbol){MasVnrArea}<LEND>[](symbol){LowQualFinSF}<LEND>[](symbol){BsmtFullBath}<LEND>[](symbol){FullBath}<LEND>[](symbol){HalfBath}<LEND>[](symbol){BedroomAbvGr}<LEND>[](symbol){KitchenAbvGr}<LEND>[](symbol){TotRmsAbvGrd}<LEND>[](symbol){Fireplaces}<LEND>[](symbol){GarageArea}<LEND>[](symbol){WoodDeckSF}<LEND>[](symbol){OpenPorchSF}<LEND>[](symbol){X3SsnPorch}<LEND>[](symbol){ScreenPorch}<LEND>[](symbol){PoolArea}<LEND>[](symbol){C..all.}<LEND>[](symbol){Grvl}<LEND>[](symbol){Low}<LEND>[](symbol){AllPub}<LEND>[](symbol){CulDSac}<LEND>[](symbol){FR2}<LEND>[](symbol){Gtl}<LEND>[](symbol){Mod}<LEND>[](symbol){Edwards}<LEND>[](symbol){Gilbert}<LEND>[](symbol){Mitchel}<LEND>[](symbol){NAmes}<LEND>[](symbol){NoRidge}<LEND>[](symbol){NWAmes}<LEND>[](symbol){OldTown}<LEND>[](symbol){Sawyer}<LEND>[](symbol){StoneBr}<LEND>[](symbol){Flat}<LEND>[](symbol){Gable}<LEND>[](symbol){Gambrel}<LEND>[](symbol){Hip}<LEND>[](symbol){Mansard}<LEND>[](symbol){CompShg}<LEND>[](symbol){Tar.Grv}<LEND>[](symbol){WdShake}<LEND>[](symbol){BrkFace}<LEND>[](symbol){BrkCmn}<LEND>[](symbol){Ex}<LEND>[assign](){<-}<LSEP>[](symbol){Model2}<LEND>[call](){}<LSEP>[](symbol){lm}<LSEP>[](symbol){Equation1}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Model2}<LEND>[assign](){<-}<LSEP>[](symbol){Predict.Values1}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){Model2}<LSEP>[](symbol){test.final}<LEND>[assign](){<-}<LSEP>[](symbol){submission1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.final}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission1}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){Predict.Values1}<LEND>[assign](){<-}<LSEP>[](symbol){submission1.result}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){submission1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){203.000000}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission1.result}<LSEP>[argument 1; litteral](str){MLR_Predictions.csv}<LEND>[assign](){<-}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){Numeric}<LSEP>[](symbol){categorical.train.new}<LEND>[assign](){<-}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.final}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){82.000000}<LEND>[assign](){<-}<LSEP>[](symbol){performScaling}<LSEP>[litteral](logical){TRUE}<LEND>[control flow](){if}<LSEP>[](symbol){performScaling}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){colName}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.final}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.final}<LSEP>[](symbol){}<LSEP>[](symbol){colName}<LEND>[argument 1; litteral](str){integer}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.final}<LSEP>[](symbol){}<LSEP>[](symbol){colName}<LEND>[argument 1; litteral](str){numeric}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.final}<LSEP>[](symbol){}<LSEP>[](symbol){colName}<LEND>[call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.final}<LSEP>[](symbol){}<LSEP>[](symbol){colName}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OverallQual}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OverallQual}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BsmtFinSF2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BsmtFinSF2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BsmtHalfBath}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BsmtHalfBath}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){KitchenAbvGr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){KitchenAbvGr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GarageCars}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GarageCars}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){EnclosedPorch}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){EnclosedPorch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MiscVal}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MiscVal}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){C..all.}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){C..all.}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RM}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RM}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){IR2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){IR2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){HLS}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){HLS}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NoSeWa}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NoSeWa}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){FR3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){FR3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Sev}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Sev}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkSide}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkSide}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Edwards}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Edwards}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Mitchel}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Mitchel}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NridgHt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NridgHt}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SawyerW}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SawyerW}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Timber}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Timber}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRAe}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRAe}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Artery}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Artery}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PosN.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PosN.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X1Fam}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X1Fam}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TwnhsE}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TwnhsE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X2.5Fin}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X2.5Fin}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SLvl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SLvl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Hip}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Hip}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CompShg}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CompShg}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Tar.Grv}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Tar.Grv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AsphShn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AsphShn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CemntBd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CemntBd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Plywood}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Plywood}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wd.Sdng}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wd.Sdng}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Brk.Cmn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Brk.Cmn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){HdBoard.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){HdBoard.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Plywood.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Plywood.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wd.Sdng.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wd.Sdng.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){None}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){None}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CBlock.2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CBlock.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wood}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wood}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA.2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){LwQ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){LwQ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GasA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GasA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wall}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wall}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Min2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Min2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA.3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA.3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Po.2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Po.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.5}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.5}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MnWw}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MnWw}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TenC}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TenC}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OverallCond}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OverallCond}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BsmtUnfSF}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BsmtUnfSF}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){FullBath}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){FullBath}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TotRmsAbvGrd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TotRmsAbvGrd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GarageArea}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GarageArea}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X3SsnPorch}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X3SsnPorch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MoSold}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MoSold}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){FV}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){FV}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Grvl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Grvl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){IR3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){IR3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Low}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Low}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Corner}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Corner}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Inside}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Inside}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Blmngtn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Blmngtn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ClearCr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ClearCr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gilbert}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gilbert}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NAmes}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NAmes}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NWAmes}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NWAmes}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Somerst}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Somerst}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Veenker}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Veenker}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRAn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRAn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Feedr.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Feedr.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRAe.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRAe.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X2fmCon}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X2fmCon}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X1.5Fin}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X1.5Fin}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X2.5Unf}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X2.5Unf}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Flat}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Flat}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Mansard}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Mansard}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Membran}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Membran}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){WdShake}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){WdShake}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkComm}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkComm}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){HdBoard}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){HdBoard}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stone}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stone}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){WdShing}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){WdShing}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkFace.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkFace.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ImStucc.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ImStucc.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stone.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stone.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wd.Shng}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Wd.Shng}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stone.2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stone.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Po}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Po}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PConc}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PConc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ALQ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ALQ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Rec}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Rec}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GasW}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GasW}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Maj1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Maj1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Mod.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Mod.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.4}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.4}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA.4}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA.4}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GdPrv}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GdPrv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gar2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gar2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){YearRemodAdd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){YearRemodAdd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){LowQualFinSF}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){LowQualFinSF}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){HalfBath}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){HalfBath}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fireplaces}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fireplaces}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){WoodDeckSF}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){WoodDeckSF}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ScreenPorch}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ScreenPorch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){YrSold}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){YrSold}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RH}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RH}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Pave}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Pave}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Reg}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Reg}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Lvl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Lvl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CulDSac}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CulDSac}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gtl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gtl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Blueste}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Blueste}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CollgCr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CollgCr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){IDOTRR}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){IDOTRR}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NoRidge}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NoRidge}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OldTown}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OldTown}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){StoneBr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){StoneBr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Feedr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Feedr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRNe}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRNe}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Norm.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Norm.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRAn.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRAn.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Duplex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Duplex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X1.5Unf}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X1.5Unf}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X2Story}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X2Story}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gable}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gable}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Shed}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Shed}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Metal}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Metal}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){WdShngl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){WdShngl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkFace}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkFace}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ImStucc}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ImStucc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stucco}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stucco}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AsbShng.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AsbShng.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CBlock.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CBlock.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MetalSd.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MetalSd.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stucco.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stucco.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkCmn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkCmn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){TA.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Slab}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Slab}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BLQ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BLQ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Unf}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Unf}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Grav}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Grav}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Maj2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Maj2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Sev.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Sev.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.4}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.4}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.5}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Ex.5}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GdWo}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GdWo}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Othr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Othr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MasVnrArea}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MasVnrArea}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BsmtFullBath}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BsmtFullBath}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BedroomAbvGr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BedroomAbvGr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GarageYrBlt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GarageYrBlt}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OpenPorchSF}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OpenPorchSF}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PoolArea}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PoolArea}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SalePrice}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SalePrice}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RL}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){IR1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){IR1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Bnk}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Bnk}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AllPub}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AllPub}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){FR2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){FR2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Mod}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Mod}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrDale}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrDale}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Crawfor}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Crawfor}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MeadowV}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MeadowV}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NPkVill}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){NPkVill}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Sawyer}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Sawyer}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SWISU}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SWISU}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PosA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PosA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRNn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRNn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PosA.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){PosA.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRNn.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){RRNn.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Twnhs}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Twnhs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X1Story}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){X1Story}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SFoyer}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){SFoyer}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gambrel}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gambrel}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ClyTile}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){ClyTile}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Roll}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Roll}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AsbShng}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AsbShng}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CBlock}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CBlock}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MetalSd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MetalSd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){VinylSd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){VinylSd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AsphShn.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){AsphShn.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CmentBd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){CmentBd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Other}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Other}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){VinylSd.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){VinylSd.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkFace.2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkFace.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkTil}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){BrkTil}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stone.3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Stone.3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GLQ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){GLQ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Floor}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Floor}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OthW}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){OthW}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Min1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Min1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Typ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Typ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Po.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Po.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.4}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Gd.4}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.5}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Fa.5}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MnPrv}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){MnPrv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Shed.1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.final}<LSEP>[](symbol){Shed.1}<LEND>[assign](){<-}<LSEP>[](symbol){Model1}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){.}<LEND>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Model1}<LEND>[assign](){<-}<LSEP>[](symbol){Equation1}<LEND>[call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){SalePrice}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){OverallCond}<LSEP>[](symbol){YearRemodAdd}<LEND>[](symbol){MasVnrArea}<LEND>[](symbol){LowQualFinSF}<LEND>[](symbol){BsmtFullBath}<LEND>[](symbol){FullBath}<LEND>[](symbol){HalfBath}<LEND>[](symbol){BedroomAbvGr}<LEND>[](symbol){KitchenAbvGr}<LEND>[](symbol){TotRmsAbvGrd}<LEND>[](symbol){Fireplaces}<LEND>[](symbol){GarageArea}<LEND>[](symbol){WoodDeckSF}<LEND>[](symbol){OpenPorchSF}<LEND>[](symbol){X3SsnPorch}<LEND>[](symbol){ScreenPorch}<LEND>[](symbol){PoolArea}<LEND>[](symbol){YrSold}<LEND>[](symbol){C..all.}<LEND>[](symbol){IR2}<LEND>[](symbol){IR3}<LEND>[](symbol){AllPub}<LEND>[](symbol){CulDSac}<LEND>[](symbol){Edwards}<LEND>[](symbol){Gilbert}<LEND>[](symbol){IDOTRR}<LEND>[](symbol){MeadowV}<LEND>[](symbol){Mitchel}<LEND>[](symbol){NAmes}<LEND>[](symbol){NoRidge}<LEND>[](symbol){NWAmes}<LEND>[](symbol){OldTown}<LEND>[](symbol){Sawyer}<LEND>[](symbol){StoneBr}<LEND>[](symbol){Feedr}<LEND>[](symbol){RRAe}<LEND>[](symbol){X1Fam}<LEND>[](symbol){X2fmCon}<LEND>[](symbol){Duplex}<LEND>[](symbol){Flat}<LEND>[](symbol){Gable}<LEND>[](symbol){Gambrel}<LEND>[](symbol){Hip}<LEND>[](symbol){Mansard}<LEND>[](symbol){CompShg}<LEND>[](symbol){Tar.Grv}<LEND>[](symbol){WdShake}<LEND>[](symbol){BrkFace}<LEND>[](symbol){Ex}<LEND>[](symbol){GdPrv}<LEND>[assign](){<-}<LSEP>[](symbol){Model2}<LEND>[call](){}<LSEP>[](symbol){lm}<LSEP>[](symbol){Equation1}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){Model2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){OverallCond}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){OverallCond}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BsmtUnfSF}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BsmtUnfSF}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){FullBath}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){FullBath}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TotRmsAbvGrd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TotRmsAbvGrd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GarageArea}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GarageArea}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X3SsnPorch}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X3SsnPorch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MoSold}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MoSold}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RH}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RH}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Pave}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Pave}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Reg}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Reg}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Lvl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Lvl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){FR2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){FR2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Mod}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Mod}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrDale}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrDale}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Crawfor}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Crawfor}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MeadowV}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MeadowV}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NPkVill}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NPkVill}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Sawyer}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Sawyer}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){SWISU}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){SWISU}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Feedr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Feedr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RRAe}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RRAe}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Artery}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Artery}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PosN}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PosN}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Twnhs}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Twnhs}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X1Story}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X1Story}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){SLvl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){SLvl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Hip}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Hip}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Tar.Grv}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Tar.Grv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AsphShn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AsphShn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CemntBd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CemntBd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stucco}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stucco}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AsbShng}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AsbShng}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CBlock}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CBlock}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MetalSd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MetalSd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){VinylSd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){VinylSd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkFace}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkFace}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkTil}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkTil}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stone}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stone}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GLQ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GLQ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GasA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GasA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Maj1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Maj1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Mod}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Mod}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GdWo}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GdWo}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Othr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Othr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){WoodDeckSF}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){WoodDeckSF}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){ScreenPorch}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){ScreenPorch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){YrSold}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){YrSold}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RL}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){IR1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){IR1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Bnk}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Bnk}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AllPub}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AllPub}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){FR3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){FR3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Sev}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Sev}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkSide}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkSide}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Edwards}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Edwards}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Mitchel}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Mitchel}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NridgHt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NridgHt}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){SawyerW}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){SawyerW}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Timber}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Timber}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Norm}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Norm}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RRAn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RRAn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Feedr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Feedr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X1Fam}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X1Fam}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TwnhsE}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TwnhsE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X2.5Unf}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X2.5Unf}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Flat}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Flat}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Mansard}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Mansard}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){WdShake}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){WdShake}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkComm}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkComm}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){HdBoard}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){HdBoard}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){VinylSd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){VinylSd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AsphShn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AsphShn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CmentBd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CmentBd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Plywood}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Plywood}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wd.Sdng}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wd.Sdng}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){None}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){None}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CBlock}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CBlock}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wood}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wood}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){LwQ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){LwQ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GasW}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GasW}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Maj2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Maj2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Sev}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Sev}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MnPrv}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MnPrv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Shed}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Shed}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){OpenPorchSF}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){OpenPorchSF}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PoolArea}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PoolArea}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){C..all.}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){C..all.}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RM}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RM}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){IR2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){IR2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){HLS}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){HLS}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Corner}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Corner}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Inside}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Inside}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Blmngtn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Blmngtn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){ClearCr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){ClearCr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gilbert}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gilbert}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NAmes}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NAmes}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NWAmes}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NWAmes}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Somerst}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Somerst}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Veenker}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Veenker}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PosA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PosA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RRNe}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RRNe}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Norm}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Norm}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X2fmCon}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X2fmCon}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X1.5Fin}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X1.5Fin}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X2Story}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X2Story}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gable}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gable}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Shed}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Shed}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){WdShngl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){WdShngl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkFace}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkFace}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MetalSd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MetalSd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wd.Sdng}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wd.Sdng}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Brk.Cmn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Brk.Cmn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){HdBoard}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){HdBoard}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stone}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stone}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wd.Shng}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wd.Shng}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stone}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stone}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Po}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Po}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PConc}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PConc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){ALQ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){ALQ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Rec}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Rec}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Grav}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Grav}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Min1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Min1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Typ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Typ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Po}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Po}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gd}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MnWw}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MnWw}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){EnclosedPorch}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){EnclosedPorch}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MiscVal}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){MiscVal}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){FV}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){FV}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Grvl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Grvl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){IR3}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){IR3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Low}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Low}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CulDSac}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CulDSac}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gtl}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gtl}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Blueste}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Blueste}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CollgCr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CollgCr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){IDOTRR}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){IDOTRR}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NoRidge}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){NoRidge}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){OldTown}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){OldTown}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){StoneBr}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){StoneBr}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Artery}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Artery}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PosN}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PosN}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RRNn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){RRNn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PosA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){PosA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Duplex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Duplex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X1.5Unf}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){X1.5Unf}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){SFoyer}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){SFoyer}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gambrel}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gambrel}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CompShg}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CompShg}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AsbShng}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){AsbShng}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CBlock}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){CBlock}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Plywood}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Plywood}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){WdShing}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){WdShing}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkFace}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkFace}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){ImStucc}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){ImStucc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stucco}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Stucco}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkCmn}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BrkCmn}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Slab}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Slab}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Fa}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BLQ}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){BLQ}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Unf}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Unf}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wall}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Wall}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Min2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Min2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Ex}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){TA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Po}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Po}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GdPrv}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){GdPrv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gar2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.final}<LSEP>[](symbol){Gar2}<LEND>[assign](){<-}<LSEP>[](symbol){Predict.Values1}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){Model2}<LSEP>[](symbol){test.final}<LEND>[assign](){<-}<LSEP>[](symbol){submission2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.final}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission2}<LSEP>[](symbol){SalePrice}<LEND>[](symbol){Predict.Values1}<LEND>[assign](){<-}<LSEP>[](symbol){submission2.result}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){submission1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){203.000000}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission2.result}<LSEP>[argument 1; litteral](str){MLR_Predictions_Scaled.csv}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SalePrice}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SalePrice}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){SalePrice}<LEND>[assign](){<-}<LSEP>[](symbol){all}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){all}<LEND>[assign](){<-}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1460.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test.final}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1461.000000}<LSEP>[argument 1; litteral](real){2919.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){train.final}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.final}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test.final}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.final}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){gbm}<LEND>[assign](){=}<LSEP>[](symbol){boost.model}<LEND>[call](){}<LSEP>[](symbol){gbm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){SalePrice}<LSEP>[](symbol){.}<LEND>[](symbol){train.final}<LSEP>[argument 2; litteral](str){gaussian}<LSEP>[argument 3; litteral](real){5000.000000}<LSEP>[argument 4; litteral](real){4.000000}<LSEP>[argument 5; litteral](real){0.010000}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){boost.model}<LEND>[assign](){=}<LSEP>[](symbol){yhat.boost}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){boost.model}<LSEP>[](symbol){test.final}<LSEP>[argument 2; litteral](real){5000.000000}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train.final}<LEND>[](symbol){yhat.boost}<LEND>[assign](){<-}<LSEP>[](symbol){submission3.final}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1461.000000}<LSEP>[argument 1; litteral](real){2919.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission3.final}<LSEP>[](symbol){SalePredict}<LEND>[](symbol){yhat.boost}<LEND>[assign](){<-}<LSEP>[](symbol){submission3.final}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){submission3.final}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){82.000000}<LEND>[](symbol){submission3.final}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission3.final}<LSEP>[argument 1; litteral](str){MBossting.csv}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){aspace}<LEND>[assign](){=}<LSEP>[](symbol){gifts}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/gifts.csv}<LEND>[assign](){=}<LSEP>[](symbol){sample_sub}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/sample_submission.csv}<LEND>[assign](){=}<LSEP>[](symbol){AVG_EARTH_RADIUS}<LSEP>[litteral](real){6371.000000}<LEND>[assign](){<-}<LSEP>[](symbol){haversine}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){lat1}<LSEP>[](symbol){lng1}<LSEP>[](symbol){lat2}<LSEP>[](symbol){lng2}<LSEP>[](symbol){miles}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){lat1}<LEND>[call](){}<LSEP>[](symbol){as_radians}<LSEP>[](symbol){lat1}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){lat2}<LEND>[call](){}<LSEP>[](symbol){as_radians}<LSEP>[](symbol){lat2}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){lng1}<LEND>[call](){}<LSEP>[](symbol){as_radians}<LSEP>[](symbol){lng1}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){lng2}<LEND>[call](){}<LSEP>[](symbol){as_radians}<LSEP>[](symbol){lng2}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){lat}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){lat2}<LSEP>[](symbol){lat1}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){lng}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){lng2}<LSEP>[](symbol){lng1}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){lat}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){cos}<LSEP>[](symbol){lat1}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LSEP>[](symbol){lat2}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){lng}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){AVG_EARTH_RADIUS}<LEND>[argument 1; call](){}<LSEP>[](symbol){asin}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){d}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){miles}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){0.621371}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){miles}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){h}<LEND>[assign](){<-}<LSEP>[](symbol){weighted_trip_length}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){trip_gifts}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){90.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gifts}<LSEP>[](symbol){trip_gifts}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){trip_gifts}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){90.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){trip_gifts}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){desc}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LSEP>[](symbol){Weight}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){lead}<LSEP>[](symbol){Latitude}<LEND>[argument 1; call](){}<LSEP>[](symbol){lead}<LSEP>[](symbol){Longitude}<LEND>[argument 2; call](){}<LSEP>[](symbol){lead}<LSEP>[](symbol){TotalWeight}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){haversine}<LSEP>[](symbol){Latitude}<LSEP>[](symbol){Longitude}<LSEP>[](symbol){Latitude_next}<LSEP>[](symbol){Longitude_next}<LEND>[argument 1; call](){}<LSEP>[](symbol){na.omit}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){W}<LEND>[](symbol){x}<LEND>[assign](){=}<LSEP>[](symbol){dist}<LSEP>[litteral](real){0.000000}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sample_sub}<LSEP>[](symbol){TripId}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){weighted_trip_length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sample_sub}<LSEP>[](symbol){GiftId}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sample_sub}<LSEP>[](symbol){TripId}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){dist}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){123456789.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){All_Data}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){All_Data has %d rows and %d co...}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){All_Data}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){All_Data}<LEND>[assign](){=}<LSEP>[](symbol){dfnames}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[assign](){=}<LSEP>[](symbol){fnames}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[assign](){=}<LSEP>[](symbol){nbins}<LSEP>[litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){All_Data}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){All_Data}<LEND>[assign](){<-}<LSEP>[](symbol){to.exclude}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){v8}<LSEP>[argument 1; litteral](str){v23}<LSEP>[argument 2; litteral](str){v25}<LSEP>[argument 3; litteral](str){v31}<LSEP>[argument 4; litteral](str){v36}<LSEP>[argument 5; litteral](str){v37}<LSEP>[argument 6; litteral](str){v46}<LSEP>[argument 7; litteral](str){v51}<LSEP>[argument 8; litteral](str){v53}<LSEP>[argument 9; litteral](str){v54}<LSEP>[argument 10; litteral](str){v63}<LSEP>[argument 11; litteral](str){v73}<LSEP>[argument 12; litteral](str){v75}<LSEP>[argument 13; litteral](str){v79}<LSEP>[argument 14; litteral](str){v81}<LSEP>[argument 15; litteral](str){v82}<LSEP>[argument 16; litteral](str){v89}<LSEP>[argument 17; litteral](str){v92}<LSEP>[argument 18; litteral](str){v95}<LSEP>[argument 19; litteral](str){v105}<LSEP>[argument 20; litteral](str){v107}<LSEP>[argument 21; litteral](str){v108}<LSEP>[argument 22; litteral](str){v109}<LSEP>[argument 23; litteral](str){v110}<LSEP>[argument 24; litteral](str){v116}<LSEP>[argument 25; litteral](str){v117}<LSEP>[argument 26; litteral](str){v118}<LSEP>[argument 27; litteral](str){v119}<LSEP>[argument 28; litteral](str){v123}<LSEP>[argument 29; litteral](str){v124}<LSEP>[argument 30; litteral](str){v128}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LSEP>[](symbol){feature.names}<LSEP>[](symbol){to.exclude}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){feature.names}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){levels}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){f}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){levels}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){levels}<LEND>[](symbol){nbins}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](str){character}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){f}<LEND>[](symbol){levels}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fnames}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){fnames}<LSEP>[](symbol){f}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dfnames}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){dfnames}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[assign](){=}<LSEP>[](symbol){caretmi}<LSEP>[litteral](logical){TRUE}<LEND>[control flow](){if}<LSEP>[](symbol){caretmi}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Median Impute and range using ...}<LEND>[statement 1; call](){}<LSEP>[](symbol){date}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){preProcValues}<LEND>[call](){}<LSEP>[](symbol){preProcess}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){medianImpute}<LSEP>[argument 1; litteral](str){range}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){All_Data1}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){preProcValues}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){All_Data}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){ID}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){target}<LEND>[](symbol){All_Data1}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){All_Data}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){All_Data}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){All_Data}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){All_Data}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){quantile}<LSEP>[litteral](logical){FALSE}<LEND>[control flow](){if}<LSEP>[](symbol){quantile}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Hmisc}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.100000}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){dfnames}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){dfnames}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){qf}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){q%s}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cuts}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){quantile}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[](symbol){p}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){}<LSEP>[](symbol){qf}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){Hmisc}<LSEP>[](symbol){cut2}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[](symbol){cuts}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){All_Data}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){All_Data}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){target}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){All_Data}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){target}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){All_Data}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){All_Data}<LSEP>[](symbol){target}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){trainIndex}<LEND>[call](){}<LSEP>[](symbol){createDataPartition}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){target}<LEND>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){Btrain}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){trainIndex}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){Bval}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){trainIndex}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){rwt}<LEND>[litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){rPART}<LSEP>[litteral](logical){FALSE}<LEND>[control flow](){if}<LSEP>[](symbol){rPART}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){step_down}<LSEP>[litteral](real){0.750000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){step_up}<LSEP>[litteral](real){1.500000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){feature.names1}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names}<LSEP>[argument 1; litteral](str){pred1}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rpCtrl}<LEND>[call](){}<LSEP>[](symbol){rpart.control}<LSEP>[argument 0; litteral](real){30.000000}<LSEP>[argument 1; litteral](real){10.000000}<LSEP>[argument 2; litteral](real){0.000010}<LSEP>[argument 3; litteral](real){4.000000}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){2.000000}<LSEP>[argument 6; litteral](real){20.000000}<LSEP>[argument 7; litteral](real){0.000000}<LSEP>[argument 8; litteral](real){30.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){target}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LSEP>[argument 1; litteral](str){target}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){rwt}<LEND>[](symbol){rpCtrl}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.000001}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.999999}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.000001}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.999999}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.000001}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.999999}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[argument 2; litteral](str){rwt}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[argument 2; litteral](str){rwt}<LEND>[](symbol){step_up}<LEND>[statement 14; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){Rec wait and logloss and confu...}<LSEP>[](symbol){i}<LEND>[statement 15; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){rwt}<LEND>[statement 16; call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){Metrics}<LEND>[statement 17; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){logLoss}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[statement 18; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[assign](){=}<LSEP>[](symbol){doglm}<LSEP>[litteral](logical){FALSE}<LEND>[control flow](){if}<LSEP>[](symbol){doglm}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){methods}<LEND>[statement 1; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){glmnet}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){feature.names1}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){cv.glmnet}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){rwt}<LEND>[argument 3; litteral](str){binomial}<LSEP>[argument 4; litteral](str){class}<LSEP>[argument 5; litteral](real){0.000000}<LEND>[statement 7; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){fit}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){opt.lam}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){lambda.min}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){lambda.1se}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[](symbol){opt.lam}<LSEP>[argument 3; litteral](str){response}<LEND>[statement 10; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){pred}<LEND>[statement 11; call](){}<LSEP>[](symbol){write_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){ID}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[](symbol){pred}<LEND>[argument 1; litteral](str){BNP_glm_val_1.csv}<LEND>[statement 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){table 1\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[statement 14; call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){Metrics}<LEND>[statement 15; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){logLoss}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){2}<LEND>[statement 16; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){logLoss}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){1}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){predt}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[](symbol){opt.lam}<LSEP>[argument 3; litteral](str){response}<LEND>[statement 18; call](){}<LSEP>[](symbol){write_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){predt}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){2}<LEND>[argument 1; litteral](str){BNP_glmnet_sub.csv}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){predtr}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[](symbol){opt.lam}<LSEP>[argument 3; litteral](str){response}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){predtr}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){2}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){2}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){predt}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){2}<LEND>[assign](){=}<LSEP>[](symbol){boost}<LSEP>[litteral](logical){TRUE}<LEND>[control flow](){if}<LSEP>[](symbol){boost}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){param1}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](real){0.040000}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){30.000000}<LSEP>[argument 4; litteral](str){logloss}<LSEP>[argument 5; litteral](real){10.000000}<LSEP>[argument 6; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xgbtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){xgbval}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){xgbtest}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){xgbval}<LSEP>[](symbol){xgbtrain}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){xgbtrain}<LSEP>[](symbol){param1}<LSEP>[argument 2; litteral](real){500.000000}<LSEP>[](symbol){Watchlist}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[argument 5; litteral](real){10.000000}<LEND>[statement 8; call](){}<LSEP>[](symbol){date}<LEND>[statement 9; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){fit}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){importance_matrix}<LEND>[call](){}<LSEP>[](symbol){xgb.importance}<LSEP>[](symbol){fit}<LEND>[statement 11; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){feature.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){importance_matrix}<LSEP>[](symbol){Feature}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){importance_matrix}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Predict model 1\n}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LSEP>[](symbol){xgbtest}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){target}<LEND>[statement 15; call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){BNP_xgboost_sub.csv}<LEND>[statement 16; call](){}<LSEP>[](symbol){date}<LEND>[statement 17; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Validation of model 1\n}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){predtarget}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LSEP>[](symbol){xgbval}<LEND>[statement 19; call](){}<LSEP>[](symbol){date}<LEND>[statement 20; call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){Metrics}<LEND>[statement 21; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){logLoss}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){predtarget}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){ID}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){predtarget}<LEND>[statement 23; call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){val}<LSEP>[argument 1; litteral](str){BNP_xgbTree_val.csv}<LEND>[assign](){=}<LSEP>[](symbol){caret}<LSEP>[litteral](logical){FALSE}<LEND>[control flow](){if}<LSEP>[](symbol){caret}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){date}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){5.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){predtype}<LSEP>[litteral](str){prob}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){fitControl}<LEND>[call](){}<LSEP>[](symbol){trainControl}<LSEP>[argument 0; litteral](str){boot}<LSEP>[](symbol){i}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){feature.names1}<LSEP>[](symbol){feature.names}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){targetf}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){targetf}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){method}<LSEP>[litteral](str){bayesglm}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){targetf}<LSEP>[](symbol){.}<LEND>[](symbol){method}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LSEP>[argument 1; litteral](str){targetf}<LEND>[](symbol){fitControl}<LEND>[statement 9; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){fit}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){predv}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[](symbol){predtype}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){predt}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[](symbol){predtype}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[](symbol){predtype}<LEND>[](symbol){}<LSEP>[argument 2; litteral](str){1}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){predt}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){1}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){predv}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.000001}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.999999}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.000001}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){pred1}<LEND>[litteral](real){0.999999}<LEND>[statement 20; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){logloss and confusion matrix a...}<LSEP>[](symbol){method}<LSEP>[](symbol){i}<LEND>[statement 21; call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){Metrics}<LEND>[statement 22; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){logLoss}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred1}<LEND>[statement 23; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Bval}<LSEP>[](symbol){target}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){fit1}<LEND>[call](){}<LSEP>[](symbol){train}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){pred1}<LSEP>[](symbol){.}<LEND>[](symbol){method}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Bval}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LSEP>[argument 1; litteral](str){pred1}<LEND>[](symbol){fitControl}<LEND>[statement 25; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){fit1}<LEND>[statement 26; control flow](){for}<LSEP>[](symbol){rows}<LEND>[range; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){Btrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){Btrain}<LEND>[argument 1; litteral](real){10000.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){rows}<LSEP>[argument 2; litteral](str){pred2}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){rows}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[argument 2; litteral](str){raw}<LEND>[statement 27; control flow](){for}<LSEP>[](symbol){rows}<LEND>[range; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){test}<LEND>[argument 1; litteral](real){10000.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){rows}<LSEP>[argument 2; litteral](str){pred2}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){rows}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){feature.names1}<LEND>[argument 2; litteral](str){raw}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred2}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){pred2}<LEND>[litteral](real){0.000001}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Btrain}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){pred2}<LEND>[litteral](real){0.999999}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred2}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){pred2}<LEND>[litteral](real){0.000001}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){pred2}<LEND>[litteral](real){0.999999}<LEND>[statement 32; control flow](){for}<LSEP>[](symbol){x}<LEND>[range; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](real){0.200000}<LSEP>[argument 2; litteral](real){0.300000}<LSEP>[argument 3; litteral](real){0.400000}<LSEP>[argument 4; litteral](real){0.500000}<LSEP>[argument 5; litteral](real){0.600000}<LSEP>[argument 6; litteral](real){0.700000}<LSEP>[argument 7; litteral](real){0.800000}<LSEP>[argument 8; litteral](real){0.900000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred3}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred1}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred2}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred3}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred2}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred3}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){2nd logloss and confusion matr...}<LSEP>[](symbol){method}<LSEP>[](symbol){x}<LEND>[statement 4; call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){Metrics}<LEND>[statement 5; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){logLoss}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred3}<LEND>[statement 6; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){pred2}<LEND>[statement 34; call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){BNP_bayesglm_sub.csv}<LEND>[statement 35; call](){}<LSEP>[](symbol){write_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){ID}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){target}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred1}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Btrain}<LSEP>[](symbol){pred2}<LEND>[argument 1; litteral](str){BNP_bayesglm_val.csv}<LEND>[statement 36; call](){}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Done\n}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){readr}<LEND>[call](){}<LSEP>[](symbol){list.files}<LSEP>[argument 0; litteral](str){../input}<LEND>[call](){}<LSEP>[](symbol){getwd}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){suppressMessages}<LEND>[argument 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){suppressMessages}<LEND>[argument 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyr}<LEND>[call](){}<LSEP>[](symbol){suppressMessages}<LEND>[argument 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){suppressMessages}<LEND>[argument 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){h2o}<LEND>[call](){}<LSEP>[](symbol){suppressMessages}<LEND>[argument 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){t0}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t0}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){target}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t0}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){target}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){t0}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mean0}<LSEP>[argument 1; litteral](str){mean1}<LEND>[assign](){<-}<LSEP>[](symbol){dataM}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dataM}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){k}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t0}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[argument 0; litteral](real){300.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dataM}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){k}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t0}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[argument 0; litteral](real){300.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dataM}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mean0}<LSEP>[argument 1; litteral](str){mean1}<LEND>[assign](){<-}<LSEP>[](symbol){dataM}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){target}<LEND>[](symbol){dataM}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){dataM}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){mean0}<LSEP>[](symbol){mean1}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){dataM}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mean0}<LSEP>[](symbol){mean1}<LEND>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){dataM}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mean0}<LSEP>[](symbol){mean1}<LEND>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){testM}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dataM}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){t01}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t0}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){t02}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t0}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){log2}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){test}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){t01}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){t01}<LSEP>[](symbol){t01}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){t02}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){t02}<LSEP>[](symbol){t02}<LEND>[assign](){<-}<LSEP>[](symbol){t01}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t01}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){test}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){t02}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t02}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){test}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){testM}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){t01}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){t02}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dataM}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t01}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t02}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dataM}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){target}<LEND>[](symbol){dataM}<LEND>[call](){}<LSEP>[](symbol){remove}<LSEP>[](symbol){k}<LSEP>[](symbol){t01}<LSEP>[](symbol){t02}<LEND>[call](){}<LSEP>[](symbol){h2o.init}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](str){12g}<LEND>[assign](){<-}<LSEP>[](symbol){tM}<LEND>[call](){}<LSEP>[](symbol){as.h2o}<LSEP>[](symbol){dataM}<LEND>[assign](){<-}<LSEP>[](symbol){hparam}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq.int}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.010000}<LEND>[assign](){<-}<LSEP>[](symbol){grid_glm}<LEND>[call](){}<LSEP>[](symbol){h2o.grid}<LSEP>[argument 0; litteral](str){glm}<LSEP>[argument 1; litteral](str){binomial}<LSEP>[argument 2; litteral](str){logit}<LSEP>[argument 3; litteral](str){target}<LSEP>[](symbol){tM}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](str){Skip}<LSEP>[argument 7; litteral](logical){TRUE}<LSEP>[argument 8; litteral](logical){FALSE}<LSEP>[argument 9; litteral](logical){FALSE}<LSEP>[](symbol){hparam}<LEND>[argument 11; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){Cartesian}<LEND>[argument 12; litteral](logical){TRUE}<LSEP>[argument 13; litteral](str){AUTO}<LSEP>[argument 14; litteral](real){123.000000}<LSEP>[argument 15; litteral](real){20.000000}<LSEP>[argument 16; litteral](str){Stratified}<LSEP>[argument 17; litteral](logical){FALSE}<LSEP>[argument 18; litteral](str){grid_glm}<LEND>[assign](){<-}<LSEP>[](symbol){result_grid}<LEND>[call](){}<LSEP>[](symbol){h2o.getGrid}<LSEP>[argument 0; litteral](str){grid_glm}<LSEP>[argument 1; litteral](str){AUC}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){result_grid}<LSEP>[](symbol){summary_table}<LEND>[](symbol){model_ids}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){result_grid}<LSEP>[](symbol){summary_table}<LEND>[](symbol){alpha}<LEND>[argument 2; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){result_grid}<LSEP>[](symbol){summary_table}<LEND>[](symbol){auc}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){alpha}<LSEP>[](symbol){auc}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[assign](){<-}<LSEP>[](symbol){glm}<LEND>[call](){}<LSEP>[](symbol){h2o.getModel}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){result_grid}<LSEP>[](symbol){model_ids}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){h2o.varimp_plot}<LSEP>[](symbol){glm}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[assign](){<-}<LSEP>[](symbol){score}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glm}<LSEP>[](symbol){model}<LEND>[argument 1; litteral](str){scoring_history}<LEND>[argument 1; litteral](str){deviance_train}<LEND>[assign](){<-}<LSEP>[](symbol){score}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){score}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glm}<LSEP>[](symbol){model}<LEND>[argument 1; litteral](str){scoring_history}<LEND>[argument 1; litteral](str){deviance_xval}<LEND>[assign](){<-}<LSEP>[](symbol){score}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glm}<LSEP>[](symbol){model}<LEND>[argument 1; litteral](str){scoring_history}<LEND>[argument 1; litteral](str){iteration}<LEND>[](symbol){score}<LEND>[assign](){<-}<LSEP>[](symbol){score}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){score}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){score}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Iteration}<LSEP>[argument 1; litteral](str){train}<LSEP>[argument 2; litteral](str){validation}<LEND>[assign](){<-}<LSEP>[](symbol){score}<LEND>[call](){}<LSEP>[](symbol){gather}<LSEP>[](symbol){score}<LSEP>[](symbol){Set}<LSEP>[](symbol){Deviance}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){train}<LSEP>[](symbol){validation}<LEND>[argument 4; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){score}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Iteration}<LSEP>[](symbol){Deviance}<LSEP>[](symbol){Set}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[call](){}<LSEP>[](symbol){remove}<LSEP>[](symbol){score}<LEND>[call](){}<LSEP>[](symbol){h2o.performance}<LSEP>[](symbol){glm}<LEND>[assign](){<-}<LSEP>[](symbol){sub1}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/sample_submission.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sub1}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){h2o.predict}<LSEP>[](symbol){glm}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.h2o}<LSEP>[](symbol){testM}<LEND>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){sub1}<LSEP>[argument 1; litteral](str){submission_glm_difdist.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){h2o.shutdown}<LSEP>[argument 0; litteral](logical){FALSE}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){titanic.train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){titanic.test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){plyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rpart}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caret}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caTools}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){mice}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){stringr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Hmisc}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){vcd}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ROCR}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pROC}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){VIM}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){glmnet}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){titanic.train}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){titanic.train}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanic.train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanic.train}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){titanic.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LSEP>[](symbol){PassengerId}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Sex}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[argument 0; litteral](str){Survival vs Passenger's Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_colour_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#FF0000}<LSEP>[argument 1; litteral](str){#0000FF}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){titanic.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanic.train}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Embarked}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_tile}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[argument 0; litteral](str){Survival vs Passenger's Pclass...}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#FF0000}<LSEP>[argument 1; litteral](str){#0000FF}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){titanic.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanic.train}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Embarked}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_tile}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[argument 0; litteral](str){Survival vs Passenger's Sex an...}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_manual}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#FF0000}<LSEP>[argument 1; litteral](str){#0000FF}<LEND>[call](){}<LSEP>[](symbol){mosaic}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){Age}<LSEP>[argument 1; litteral](real){15.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){SibSp}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){titanic.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){titanic.train}<LEND>[](symbol){}<LEND>[](symbol){T}<LSEP>[](symbol){T}<LEND>[assign](){=}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanic.train}<LSEP>[](symbol){Survived}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){titanic.test}<LSEP>[](symbol){Survived}<LEND>[litteral](logical){NA}<LEND>[assign](){=}<LSEP>[](symbol){all}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){titanic.train}<LSEP>[](symbol){titanic.test}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){, }<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){\\. }<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](symbol){x}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[argument 3; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](symbol){x}<LEND>[argument 2; litteral](str){Age}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[](symbol){x}<LEND>[argument 2; litteral](str){Age}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){F}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mr}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){14.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[](symbol){}<LEND>[](symbol){Title}<LEND>[litteral](str){Master}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Capt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Col}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Don}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Major}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Rev}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Jonkheer}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Sir}<LEND>[](symbol){}<LEND>[](symbol){Title}<LEND>[litteral](str){Mr}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Dona}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mlle}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mme}<LEND>[](symbol){}<LEND>[](symbol){Title}<LEND>[litteral](str){Ms}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Lady}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){the Countess}<LEND>[](symbol){}<LEND>[](symbol){Title}<LEND>[litteral](str){Mrs}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Dr}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[](symbol){}<LEND>[](symbol){Title}<LEND>[litteral](str){Ms}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Dr}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){male}<LEND>[](symbol){}<LEND>[](symbol){Title}<LEND>[litteral](str){Mr}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){droplevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilySize}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Mother}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Mrs}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Single}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilyName}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){, }<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[](symbol){Family.Ticket}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Single}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){FamilyName}<LSEP>[argument 1; litteral](str){Ticket}<LEND>[assign](){=}<LSEP>[](symbol){Family.Ticket}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Family.Ticket}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Family.Ticket}<LSEP>[](symbol){FamilyName}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){Family.Ticket}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilyName}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilyName}<LEND>[argument 1; call](){}<LSEP>[](symbol){str_sub}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Ticket}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; litteral](str){}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilySurvived}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[](symbol){Families}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Parch}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){SibSp}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){Survival.GroupByFamilyName}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Families}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Families}<LSEP>[](symbol){FamilyName}<LEND>[](symbol){sum}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[assign](){=}<LSEP>[](symbol){FamilyWithSurvival}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Survival.GroupByFamilyName}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Survival.GroupByFamilyName}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[](symbol){FamilyName}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){all}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){FamilyName}<LEND>[](symbol){FamilyWithSurvival}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[](symbol){}<LEND>[](symbol){FamilySurvived}<LEND>[litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){35.000000}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Sex}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){}<LEND>[](symbol){}<LEND>[](symbol){Embarked}<LEND>[litteral](logical){NA}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Embarked}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Cabin}<LEND>[argument 1; litteral](str){}<LEND>[](symbol){}<LEND>[](symbol){Cabin}<LEND>[litteral](logical){NA}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Cabin}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilySize}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilySize}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Mother}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Mother}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Single}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Single}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilyName}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){FamilyName}<LEND>[call](){}<LSEP>[](symbol){md.pattern}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Name}<LSEP>[argument 2; litteral](str){PassengerId}<LSEP>[argument 3; litteral](str){Ticket}<LSEP>[argument 4; litteral](str){AgeClass}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Embarked}<LEND>[litteral](str){S}<LEND>[assign](){=}<LSEP>[](symbol){fit.Fare}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){SibSp}<LEND>[](symbol){Parch}<LEND>[](symbol){Age}<LEND>[](symbol){Embarked}<LEND>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Fare}<LEND>[](symbol){}<LEND>[argument 2; litteral](str){anova}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){fit.Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Fare}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){marginplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[](symbol){ageData}<LEND>[call](){}<LSEP>[](symbol){mice}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Name}<LSEP>[argument 2; litteral](str){PassengerId}<LSEP>[argument 3; litteral](str){Ticket}<LSEP>[argument 4; litteral](str){AgeClass}<LSEP>[argument 5; litteral](str){Cabin}<LSEP>[argument 6; litteral](str){FamilyName}<LEND>[argument 1; litteral](real){8.000000}<LSEP>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](str){pmm}<LSEP>[argument 4; litteral](real){251863.000000}<LEND>[call](){}<LSEP>[](symbol){head}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ageData}<LSEP>[](symbol){imp}<LEND>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete}<LSEP>[](symbol){ageData}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 1; litteral](real){0.200000}<LSEP>[argument 2; litteral](str){blue}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[](symbol){all}<LSEP>[argument 1; litteral](real){0.200000}<LSEP>[argument 2; litteral](str){Red}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Age Distribution}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Age}<LEND>[assign](){<-}<LSEP>[](symbol){all.imp}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete}<LSEP>[](symbol){ageData}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all.imp}<LSEP>[](symbol){Age}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[](symbol){}<LEND>[](symbol){AgeClass}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){AgeClass}<LEND>[](symbol){}<LEND>[](symbol){Age}<LEND>[argument 1; litteral](real){35.000000}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; litteral](str){Miss}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){14.500000}<LEND>[](symbol){}<LEND>[](symbol){Title}<LEND>[litteral](str){Ms}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Title}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Age}<LEND>[argument 1; litteral](real){14.500000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Cabin}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[argument 1; litteral](str){}<LEND>[litteral](logical){NA}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[assign](){=}<LSEP>[](symbol){familyWithCabinNo}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Parch}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){FamilyName}<LSEP>[argument 1; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){familyWithCabinNo}<LEND>[assign](){<-}<LSEP>[](symbol){checkIfHasCabin}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){familyName}<LSEP>[](symbol){CabinNo}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){familyName}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){familyWithCabinNo}<LSEP>[](symbol){FamilyName}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){familyWithCabinNo}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){CabinNo}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){}<LEND>[](symbol){CabinNo}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){FamilyName}<LSEP>[argument 1; litteral](str){CabinNo}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; call](){}<LSEP>[](symbol){checkIfHasCabin}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](str){FamilyName}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[assign](){=}<LSEP>[](symbol){A.1}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){22.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){323.000000}<LSEP>[argument 1; litteral](real){65.000000}<LEND>[argument 1; litteral](real){65.000000}<LEND>[assign](){=}<LSEP>[](symbol){B.1}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){65.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){323.000000}<LSEP>[argument 1; litteral](real){65.000000}<LEND>[argument 1; litteral](real){65.000000}<LEND>[assign](){=}<LSEP>[](symbol){C.1}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){96.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){323.000000}<LSEP>[argument 1; litteral](real){65.000000}<LEND>[argument 1; litteral](real){65.000000}<LEND>[assign](){=}<LSEP>[](symbol){D.1}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){40.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){323.000000}<LSEP>[argument 1; litteral](real){65.000000}<LEND>[argument 1; litteral](real){65.000000}<LEND>[assign](){=}<LSEP>[](symbol){E.1}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){65.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){A.1}<LSEP>[](symbol){B.1}<LEND>[](symbol){C.1}<LEND>[](symbol){D.1}<LEND>[assign](){=}<LSEP>[](symbol){D.2}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){277.000000}<LSEP>[argument 1; litteral](real){254.000000}<LEND>[argument 1; litteral](real){254.000000}<LEND>[assign](){=}<LSEP>[](symbol){E.2}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){277.000000}<LSEP>[argument 1; litteral](real){254.000000}<LEND>[argument 1; litteral](real){254.000000}<LEND>[assign](){=}<LSEP>[](symbol){F.2}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){254.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){D.2}<LSEP>[](symbol){E.2}<LEND>[assign](){=}<LSEP>[](symbol){E.3}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){709.000000}<LSEP>[argument 1; litteral](real){691.000000}<LEND>[argument 1; litteral](real){691.000000}<LEND>[assign](){=}<LSEP>[](symbol){F.3}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){709.000000}<LSEP>[argument 1; litteral](real){691.000000}<LEND>[argument 1; litteral](real){691.000000}<LEND>[assign](){=}<LSEP>[](symbol){G.3}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){691.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){E.3}<LSEP>[](symbol){F.3}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){A.1}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){A}<LSEP>[](symbol){A.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){B.1}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){B}<LSEP>[](symbol){B.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){C.1}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){C}<LSEP>[](symbol){C.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){D.1}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){D}<LSEP>[](symbol){D.1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){E.1}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){E}<LSEP>[](symbol){E.1}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){D.2}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){D}<LSEP>[](symbol){D.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){E.2}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){E}<LSEP>[](symbol){E.2}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){F.2}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){F}<LSEP>[](symbol){F.2}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){E.3}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){E}<LSEP>[](symbol){E.3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){F.3}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){F}<LSEP>[](symbol){F.3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[](symbol){G.3}<LEND>[argument 2; litteral](str){CabinNo}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){G}<LSEP>[](symbol){G.3}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){CabinNo}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Pclass}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Ticket}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Name}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){all}<LSEP>[](symbol){Cabin}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){all}<LEND>[assign](){=}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){891.000000}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){892.000000}<LSEP>[argument 1; litteral](real){1309.000000}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){mapvalues}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){0}<LSEP>[argument 1; litteral](str){1}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){No}<LSEP>[argument 1; litteral](str){Yes}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){PassengerId}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[](symbol){train.male}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){male}<LEND>[assign](){=}<LSEP>[](symbol){train.female}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[assign](){=}<LSEP>[](symbol){test.male}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){male}<LEND>[assign](){=}<LSEP>[](symbol){test.female}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){Sex}<LEND>[argument 1; litteral](str){female}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.male}<LSEP>[](symbol){Sex}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.male}<LSEP>[](symbol){Mother}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.male}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){droplevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.male}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.female}<LSEP>[](symbol){Sex}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.female}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){droplevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train.female}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.male}<LSEP>[](symbol){Sex}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.male}<LSEP>[](symbol){Mother}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.male}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){droplevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.male}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.female}<LSEP>[](symbol){Sex}<LEND>[litteral](NULL){NULL}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.female}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){droplevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.female}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){=}<LSEP>[](symbol){splt.m}<LEND>[call](){}<LSEP>[](symbol){sample.split}<LSEP>[](symbol){train.male}<LSEP>[argument 1; litteral](real){0.750000}<LEND>[assign](){=}<LSEP>[](symbol){cv.train.m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.male}<LSEP>[](symbol){splt.m}<LSEP>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){cv.test.m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.male}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){splt.m}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){=}<LSEP>[](symbol){splt.f}<LEND>[call](){}<LSEP>[](symbol){sample.split}<LSEP>[](symbol){train.female}<LSEP>[argument 1; litteral](real){0.750000}<LEND>[assign](){=}<LSEP>[](symbol){cv.train.f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.female}<LSEP>[](symbol){splt.f}<LSEP>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){cv.test.f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.female}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){splt.f}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[](symbol){x.m}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cv.train.m}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){14.000000}<LEND>[assign](){=}<LSEP>[](symbol){y.m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.m}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){356.000000}<LEND>[assign](){=}<LSEP>[](symbol){cvfit.m.ridge}<LEND>[call](){}<LSEP>[](symbol){cv.glmnet}<LSEP>[](symbol){x.m}<LSEP>[](symbol){y.m}<LSEP>[argument 2; litteral](str){binomial}<LSEP>[argument 3; litteral](real){0.000000}<LSEP>[argument 4; litteral](str){class}<LEND>[assign](){=}<LSEP>[](symbol){cvfit.m.lasso}<LEND>[call](){}<LSEP>[](symbol){cv.glmnet}<LSEP>[](symbol){x.m}<LSEP>[](symbol){y.m}<LSEP>[argument 2; litteral](str){binomial}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){cvfit.m.ridge}<LSEP>[argument 1; litteral](str){Ridge}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){cvfit.m.lasso}<LSEP>[argument 1; litteral](str){Lasso}<LEND>[call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){cvfit.m.ridge}<LSEP>[argument 1; litteral](str){lambda.min}<LEND>[assign](){=}<LSEP>[](symbol){PredTrain.M}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cvfit.m.ridge}<LSEP>[](symbol){x.m}<LSEP>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.m}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTrain.M}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.m}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[](symbol){PredTest.M}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cvfit.m.ridge}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cv.test.m}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){14.000000}<LEND>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.test.m}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTest.M}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.test.m}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[](symbol){PredTest.M}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cvfit.m.ridge}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.male}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){15.000000}<LEND>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){PredTest.M}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.male}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[](symbol){x.f}<LEND>[call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cv.train.f}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){15.000000}<LEND>[assign](){=}<LSEP>[](symbol){y.f}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.f}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){356.000000}<LEND>[assign](){=}<LSEP>[](symbol){cvfit.f.ridge}<LEND>[call](){}<LSEP>[](symbol){cv.glmnet}<LSEP>[](symbol){x.f}<LSEP>[](symbol){y.f}<LSEP>[argument 2; litteral](str){binomial}<LSEP>[argument 3; litteral](real){0.000000}<LSEP>[argument 4; litteral](str){class}<LEND>[assign](){=}<LSEP>[](symbol){cvfit.f.lasso}<LEND>[call](){}<LSEP>[](symbol){cv.glmnet}<LSEP>[](symbol){x.f}<LSEP>[](symbol){y.f}<LSEP>[argument 2; litteral](str){binomial}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){cvfit.f.ridge}<LSEP>[argument 1; litteral](str){Ridge}<LEND>[call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){cvfit.f.lasso}<LSEP>[argument 1; litteral](str){Lasso}<LEND>[call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){cvfit.f.ridge}<LSEP>[argument 1; litteral](str){lambda.min}<LEND>[assign](){=}<LSEP>[](symbol){PredTrain.F}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cvfit.f.ridge}<LSEP>[](symbol){x.f}<LSEP>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.f}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTrain.F}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.f}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){confusionMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.f}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTrain.F}<LEND>[assign](){=}<LSEP>[](symbol){PredTest.F}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cvfit.f.ridge}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cv.test.f}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){15.000000}<LEND>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.test.f}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTest.F}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.test.f}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){confusionMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.test.f}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTest.F}<LEND>[assign](){=}<LSEP>[](symbol){PredTrain.F}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cvfit.f.lasso}<LSEP>[](symbol){x.f}<LSEP>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.f}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTrain.F}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.f}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){confusionMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.train.f}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTrain.F}<LEND>[assign](){=}<LSEP>[](symbol){PredTest.F}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cvfit.f.lasso}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cv.test.f}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){15.000000}<LEND>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.test.f}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTest.F}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.test.f}<LSEP>[](symbol){Title}<LEND>[call](){}<LSEP>[](symbol){confusionMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cv.test.f}<LSEP>[](symbol){Survived}<LEND>[](symbol){PredTest.F}<LEND>[assign](){=}<LSEP>[](symbol){PredTest.F}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){cvfit.f.ridge}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.female}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){16.000000}<LEND>[argument 2; litteral](str){class}<LEND>[call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){PredTest.F}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.female}<LSEP>[](symbol){Title}<LEND>[assign](){=}<LSEP>[](symbol){MySubmission.F}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.female}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){PredTest.F}<LSEP>[argument 1; litteral](str){Yes}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[](symbol){MySubmission.M}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test.male}<LSEP>[](symbol){PassengerId}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){PredTest.M}<LSEP>[argument 1; litteral](str){Yes}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[](symbol){MySubmission}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){MySubmission.F}<LSEP>[](symbol){MySubmission.M}<LEND>[assign](){=}<LSEP>[](symbol){MySubmission}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){MySubmission}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){MySubmission}<LSEP>[](symbol){PassengerId}<LEND>[](symbol){}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){MySubmission}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){PassengerId}<LSEP>[argument 1; litteral](str){Survived}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){MySubmission}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){MySubmission}<LSEP>[argument 1; litteral](str){Submission_RIDGE.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){extractFeatures}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){features}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Pclass}<LSEP>[argument 1; litteral](str){Age}<LSEP>[argument 2; litteral](str){Sex}<LSEP>[argument 3; litteral](str){Parch}<LSEP>[argument 4; litteral](str){SibSp}<LSEP>[argument 5; litteral](str){Fare}<LSEP>[argument 6; litteral](str){Embarked}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fea}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LSEP>[](symbol){features}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Age}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Fare}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Fare}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Embarked}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Embarked}<LEND>[argument 1; litteral](str){}<LEND>[litteral](str){S}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Sex}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Embarked}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fea}<LSEP>[](symbol){Embarked}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fea}<LEND>[assign](){<-}<LSEP>[](symbol){rf}<LEND>[call](){}<LSEP>[](symbol){randomForest}<LEND>[argument 0; call](){}<LSEP>[](symbol){extractFeatures}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 2; litteral](real){100.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){PassengerId}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){submission}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){rf}<LEND>[argument 1; call](){}<LSEP>[](symbol){extractFeatures}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){1_random_forest_r_submission.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){imp}<LEND>[call](){}<LSEP>[](symbol){importance}<LSEP>[](symbol){rf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){featureImportance}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){imp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){imp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){featureImportance}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){reorder}<LSEP>[](symbol){Feature}<LSEP>[](symbol){Importance}<LEND>[](symbol){Importance}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){identity}<LSEP>[argument 1; litteral](str){#53cfff}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_light}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){Importance}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[argument 0; litteral](str){Random Forest Feature Importan...}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){18.000000}<LEND>[call](){}<LSEP>[](symbol){ggsave}<LSEP>[argument 0; litteral](str){2_feature_importance.png}<LSEP>[](symbol){p}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyverse}<LEND>[assign](){<-}<LSEP>[](symbol){train_vars}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/train.csv}<LSEP>[argument 1; litteral](real){100.000000}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){age_gender_bkts}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/age_gender_bkts.csv}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){age_gender_bkts}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){age_gender_bkts}<LSEP>[](symbol){year}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){age_gender_bkts}<LSEP>[](symbol){year}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){age_gender_bkts}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){age_gender_bkts}<LSEP>[](symbol){age_bucket}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){age_gender_bkts}<LSEP>[](symbol){population_in_thousands}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){randomForest}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Survived}<LSEP>[argument 1; litteral](str){Died}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1st Class}<LSEP>[argument 1; litteral](str){2nd Class}<LSEP>[argument 2; litteral](str){3rd Class}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[argument 0; litteral](str){1_survival_by_class.png}<LSEP>[argument 1; litteral](real){800.000000}<LSEP>[argument 2; litteral](real){600.000000}<LEND>[call](){}<LSEP>[](symbol){mosaicplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](str){Passenger Survival by Class}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){#8dd3c7}<LSEP>[argument 1; litteral](str){#fb8072}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 7; litteral](real){1.400000}<LEND>[call](){}<LSEP>[](symbol){dev.off}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[argument 0; litteral](str){readr}<LEND>[assign](){<-}<LSEP>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){df.test}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){ls ../input}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){df.test}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){df.test}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){df.test}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){df.test}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df.test}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Amelia}<LEND>[call](){}<LSEP>[](symbol){?}<LSEP>[](symbol){missmap}<LEND>[call](){}<LSEP>[](symbol){missmap}<LSEP>[](symbol){df.train}<LSEP>[argument 1; litteral](str){Missing Map}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){yellow}<LSEP>[argument 1; litteral](str){black}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Sex}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){20.000000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](str){blue}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){SibSp}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Fare}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](str){green}<LSEP>[argument 1; litteral](str){black}<LSEP>[argument 2; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){pl}<LEND>[call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Pclass}<LSEP>[](symbol){Age}<LEND>[assign](){<-}<LSEP>[](symbol){pl}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pl}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Pclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){Pclass}<LEND>[argument 2; litteral](real){0.400000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pl}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_y_continuous}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){80.000000}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[assign](){<-}<LSEP>[](symbol){impute_age}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){age}<LSEP>[](symbol){class}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){out}<LSEP>[](symbol){age}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){age}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){age}<LSEP>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){class}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LSEP>[](symbol){i}<LEND>[litteral](real){37.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){class}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LSEP>[](symbol){i}<LEND>[litteral](real){29.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LSEP>[](symbol){i}<LEND>[litteral](real){24.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){age}<LSEP>[](symbol){i}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){fixed.ages}<LEND>[call](){}<LSEP>[](symbol){impute_age}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Age}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Age}<LEND>[](symbol){fixed.ages}<LEND>[call](){}<LSEP>[](symbol){missmap}<LSEP>[](symbol){df.train}<LSEP>[argument 1; litteral](str){Imputation Checks}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){yellow}<LSEP>[argument 1; litteral](str){black}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[assign](){<-}<LSEP>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){PassengerId}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Name}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Ticket}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Cabin}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){df.train}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Survived}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Pclass}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Pclass}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){SibSp}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){SibSp}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Parch}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Parch}<LEND>[call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){df.train}<LEND>[assign](){<-}<LSEP>[](symbol){log.model}<LEND>[call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){binomial}<LSEP>[argument 0; litteral](str){logit}<LEND>[](symbol){df.train}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){log.model}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){caTools}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){101.000000}<LEND>[assign](){<-}<LSEP>[](symbol){split}<LEND>[call](){}<LSEP>[](symbol){sample.split}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df.train}<LSEP>[](symbol){Survived}<LEND>[argument 1; litteral](real){0.700000}<LEND>[assign](){<-}<LSEP>[](symbol){final.train}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){split}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){final.test}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){df.train}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){split}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){final.log.model}<LEND>[call](){}<LSEP>[](symbol){glm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Survived}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){binomial}<LSEP>[argument 0; litteral](str){logit}<LEND>[](symbol){final.train}<LEND>[call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){final.log.model}<LEND>[assign](){<-}<LSEP>[](symbol){fitted.probability}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){final.log.model}<LSEP>[](symbol){final.test}<LSEP>[argument 2; litteral](str){response}<LEND>[assign](){<-}<LSEP>[](symbol){fitted.results}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){fitted.probability}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){missclassError}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){fitted.results}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final.test}<LSEP>[](symbol){Survived}<LEND>[call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){missclassError}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){final.test}<LSEP>[](symbol){Survived}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){fitted.probability}<LSEP>[argument 1; litteral](real){0.500000}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyverse}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){lubridate}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){earth}<LEND>[assign](){<-}<LSEP>[](symbol){trn_raw}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){tst_raw}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[](symbol){sample_submission}<LEND>[call](){}<LSEP>[](symbol){read_csv}<LSEP>[argument 0; litteral](str){../input/sample_submission.csv}<LEND>[assign](){<-}<LSEP>[](symbol){both}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){trn_raw}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LSEP>[argument 0; litteral](str){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){bind_rows}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){tst_raw}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LSEP>[argument 0; litteral](str){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){transmute}<LSEP>[](symbol){set}<LSEP>[](symbol){store}<LSEP>[](symbol){item}<LEND>[argument 3; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sales}<LSEP>[argument 1; litteral](real){0.000001}<LEND>[argument 4; call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){year}<LSEP>[](symbol){date}<LEND>[argument 5; call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){month}<LSEP>[](symbol){date}<LEND>[argument 6; call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){wday}<LSEP>[](symbol){date}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){glimpse}<LSEP>[](symbol){both}<LEND>[assign](){<-}<LSEP>[](symbol){trn}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){both}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){set}<LSEP>[argument 1; litteral](str){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){set}<LEND>[assign](){<-}<LSEP>[](symbol){tst}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){both}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){set}<LSEP>[argument 1; litteral](str){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){set}<LEND>[assign](){<-}<LSEP>[](symbol){mdl_nest}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){trn}<LEND>[argument 1; call](){}<LSEP>[](symbol){nest}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){store}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){item}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){map}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){earth}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){log_sales}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){year}<LSEP>[](symbol){month}<LEND>[](symbol){wday}<LEND>[](symbol){.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){store}<LSEP>[](symbol){item}<LSEP>[](symbol){mdl}<LEND>[assign](){<-}<LSEP>[](symbol){tst_nest}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){tst}<LEND>[argument 1; call](){}<LSEP>[](symbol){nest}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){store}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){item}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){mdl_nest}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){store}<LSEP>[argument 1; litteral](str){item}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){map2}<LSEP>[](symbol){data}<LSEP>[](symbol){mdl}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){.y}<LSEP>[](symbol){.x}<LEND>[assign](){<-}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){tst_nest}<LEND>[argument 1; call](){}<LSEP>[](symbol){unnest}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){pull}<LSEP>[](symbol){pred}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sample_submission}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sample_submission}<LSEP>[](symbol){id}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sample_submission}<LSEP>[](symbol){sales}<LEND>[call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sample_submission}<LSEP>[](symbol){sales}<LEND>[call](){}<LSEP>[](symbol){write_csv}<LSEP>[](symbol){sample_submission}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){sub_}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[argument 2; litteral](str){.csv}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){loadPackage}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){package_name}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){package_name}<LEND>[argument 1; call](){}<LSEP>[](symbol){installed.packages}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Installing }<LSEP>[](symbol){package_name}<LSEP>[argument 2; litteral](str){}<LEND>[statement 1; call](){}<LSEP>[](symbol){install.packages}<LSEP>[](symbol){package_name}<LEND>[statement 2; call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){package_name}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){package_name}<LSEP>[argument 2; litteral](str){ is already installed}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; call](){}<LSEP>[](symbol){require}<LSEP>[](symbol){package_name}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){return_position_function}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){return_pos}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){VR}<LSEP>[argument 1; litteral](str){PDR1}<LSEP>[argument 2; litteral](str){PDR2}<LSEP>[argument 3; litteral](str){PDR3}<LSEP>[argument 4; litteral](str){PDL3}<LSEP>[argument 5; litteral](str){PDL2}<LSEP>[argument 6; litteral](str){PDL1}<LSEP>[argument 7; litteral](str){PLR}<LSEP>[argument 8; litteral](str){PLM}<LSEP>[argument 9; litteral](str){PLL}<LSEP>[argument 10; litteral](str){PFB}<LSEP>[argument 11; litteral](str){PR}<LSEP>[argument 12; litteral](str){VL}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){return_pos}<LEND>[assign](){<-}<LSEP>[](symbol){coverage_position_function}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coverage_pos}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GL}<LSEP>[argument 1; litteral](str){PLT}<LSEP>[argument 2; litteral](str){PLG}<LSEP>[argument 3; litteral](str){PLS}<LSEP>[argument 4; litteral](str){PRG}<LSEP>[argument 5; litteral](str){PRT}<LSEP>[argument 6; litteral](str){PLW}<LSEP>[argument 7; litteral](str){PRW}<LSEP>[argument 8; litteral](str){GR}<LSEP>[argument 9; litteral](str){PC}<LSEP>[argument 10; litteral](str){PPR}<LSEP>[argument 11; litteral](str){P}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){coverage_pos}<LEND>[call](){}<LSEP>[](symbol){loadPackage}<LSEP>[argument 0; litteral](str){plotly}<LEND>[call](){}<LSEP>[](symbol){loadPackage}<LSEP>[argument 0; litteral](str){gapminder}<LEND>[call](){}<LSEP>[](symbol){loadPackage}<LSEP>[argument 0; litteral](str){data.table}<LEND>[call](){}<LSEP>[](symbol){loadPackage}<LSEP>[argument 0; litteral](str){dplyr}<LEND>[call](){}<LSEP>[](symbol){loadPackage}<LSEP>[argument 0; litteral](str){htmlwidgets}<LEND>[call](){}<LSEP>[](symbol){loadPackage}<LSEP>[argument 0; litteral](str){htmltools}<LEND>[assign](){<-}<LSEP>[](symbol){NGS_file_list}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){list.files}<LSEP>[argument 0; litteral](str){../input/}<LEND>[argument 1; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){NGS-}<LEND>[argument 1; call](){}<LSEP>[](symbol){list.files}<LSEP>[argument 0; litteral](str){../input/}<LEND>[assign](){<-}<LSEP>[](symbol){NGS_file_list_reg}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){NGS_file_list}<LEND>[argument 1; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){reg}<LSEP>[](symbol){NGS_file_list}<LEND>[assign](){<-}<LSEP>[](symbol){play_data_all}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){NGS_file_list_reg}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Loading: }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){NGS_file_list_reg}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){../input/}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){NGS_file_list_reg}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){play_data_all}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){play_data_all}<LSEP>[](symbol){temp}<LEND>[assign](){<-}<LSEP>[](symbol){player_role_data}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/play_player_role_data...}<LEND>[assign](){<-}<LSEP>[](symbol){play_information}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/play_information.csv}<LEND>[assign](){<-}<LSEP>[](symbol){play_plot}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_data_all}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){PlayID}<LSEP>[argument 1; litteral](real){2902.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){GameKey}<LSEP>[argument 1; litteral](real){266.000000}<LEND>[assign](){<-}<LSEP>[](symbol){play_plot}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){Season_Year}<LSEP>[](symbol){GameKey}<LSEP>[](symbol){PlayID}<LSEP>[](symbol){GSISID}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LSEP>[](symbol){Season_Year}<LSEP>[](symbol){GameKey}<LSEP>[](symbol){PlayID}<LSEP>[](symbol){GSISID}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){dis}<LSEP>[](symbol){o}<LSEP>[](symbol){dir}<LSEP>[](symbol){Event}<LSEP>[](symbol){Time}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){rank}<LSEP>[](symbol){Time}<LSEP>[argument 1; litteral](str){first}<LEND>[assign](){<-}<LSEP>[](symbol){play_plot_rank}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){inner_join}<LSEP>[](symbol){player_role_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Season_Year}<LSEP>[argument 1; litteral](str){GameKey}<LSEP>[argument 2; litteral](str){PlayID}<LSEP>[argument 3; litteral](str){GSISID}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Season_Year}<LSEP>[](symbol){GameKey}<LSEP>[](symbol){PlayID}<LSEP>[](symbol){GSISID}<LSEP>[](symbol){Time}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){Event}<LSEP>[](symbol){rank}<LSEP>[](symbol){Role}<LEND>[assign](){<-}<LSEP>[](symbol){return_pos}<LEND>[call](){}<LSEP>[](symbol){return_position_function}<LEND>[assign](){<-}<LSEP>[](symbol){coverage_pos}<LEND>[call](){}<LSEP>[](symbol){coverage_position_function}<LEND>[assign](){<-}<LSEP>[](symbol){pos_plot}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){coverage_pos}<LSEP>[argument 1; litteral](str){coverage}<LEND>[argument 1; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){return_pos}<LSEP>[argument 1; litteral](str){return}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){pos_plot}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Role}<LSEP>[argument 1; litteral](str){coverage_return}<LEND>[assign](){<-}<LSEP>[](symbol){play_plot_rank_plot}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_plot_rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){left_join}<LSEP>[](symbol){pos_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Role}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){play_plot_rank_plot}<LSEP>[](symbol){play_seconds}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){play_plot_rank_plot}<LSEP>[](symbol){rank}<LEND>[argument 1; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){play_plot_rank_plot}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_plot_rank_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){play_seconds}<LSEP>[argument 1; litteral](real){60.000000}<LEND>[assign](){<-}<LSEP>[](symbol){play_ggplot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){play_plot_rank_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){coverage_return}<LSEP>[](symbol){GSISID}<LSEP>[](symbol){play_seconds}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){0.600000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){aes}<LEND>[](symbol){Role}<LEND>[argument 1; litteral](real){1.500000}<LSEP>[argument 2; litteral](str){black}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[call](){}<LSEP>[](symbol){ggplotly}<LSEP>[](symbol){play_ggplot}<LEND>[assign](){<-}<LSEP>[](symbol){play_plot_rank_plot}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_plot_rank_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){Role}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GR}<LSEP>[argument 1; litteral](str){PR}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){GSISID}<LEND>[assign](){<-}<LSEP>[](symbol){slow_GR}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_plot_rank_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Role}<LSEP>[argument 1; litteral](str){GR}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LSEP>[](symbol){rank}<LEND>[assign](){<-}<LSEP>[](symbol){slow_GR_init}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){slow_GR}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){slow_GR_pushed}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){slow_GR}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slow_GR_init}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slow_GR_init}<LSEP>[](symbol){y}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Season_Year}<LSEP>[](symbol){GameKey}<LSEP>[](symbol){PlayID}<LSEP>[](symbol){GSISID}<LSEP>[](symbol){Time}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){Event}<LSEP>[](symbol){rank}<LSEP>[](symbol){Role}<LSEP>[](symbol){coverage_return}<LSEP>[](symbol){GSISID_2}<LEND>[assign](){<-}<LSEP>[](symbol){slow_GR}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){slow_GR}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LSEP>[](symbol){new_rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){Season_Year}<LSEP>[](symbol){GameKey}<LSEP>[](symbol){PlayID}<LSEP>[](symbol){GSISID}<LSEP>[](symbol){Time}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){Event}<LSEP>[](symbol){rank}<LSEP>[](symbol){Role}<LSEP>[](symbol){coverage_return}<LSEP>[](symbol){GSISID_2}<LEND>[assign](){<-}<LSEP>[](symbol){slower_GR}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){slow_GR_pushed}<LSEP>[](symbol){slow_GR}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LSEP>[argument 0; litteral](str){SLOWER}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){GSISID}<LSEP>[argument 1; litteral](str){slow}<LSEP>[argument 2; litteral](str){_}<LEND>[assign](){<-}<LSEP>[](symbol){play_plot_rank_plot_slow_GR}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){play_plot_rank_plot}<LSEP>[](symbol){slower_GR}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){play_plot_rank_plot_slow_GR}<LSEP>[](symbol){play_seconds}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){play_plot_rank_plot_slow_GR}<LSEP>[](symbol){rank}<LEND>[argument 1; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){play_plot_rank_plot_slow_GR}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_plot_rank_plot_slow_GR}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){play_seconds}<LSEP>[argument 1; litteral](real){30.000000}<LEND>[assign](){<-}<LSEP>[](symbol){play_ggplot_slower_GR}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){play_plot_rank_plot_slow_GR}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){coverage_return}<LSEP>[](symbol){GSISID_2}<LSEP>[](symbol){play_seconds}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){7.000000}<LSEP>[argument 1; litteral](real){0.600000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){aes}<LEND>[](symbol){Role}<LEND>[argument 1; litteral](real){2.500000}<LSEP>[argument 2; litteral](str){black}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[call](){}<LSEP>[](symbol){ggplotly}<LSEP>[](symbol){play_ggplot_slower_GR}<LEND>[assign](){<-}<LSEP>[](symbol){tackle_moment}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){play_plot_rank_plot_slow_GR}<LEND>[argument 1; call](){}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){play_seconds}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Event}<LSEP>[argument 1; litteral](str){SLOWER}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Role}<LSEP>[argument 1; litteral](str){PR}<LEND>[call](){}<LSEP>[](symbol){HTML}<LEND>[argument 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){At play second = 10:}<LSEP>[argument 1; litteral](str){\n}<LSEP>[argument 2; litteral](str){ - The GR already hit the PR}<LSEP>[argument 3; litteral](str){\n}<LSEP>[argument 4; litteral](str){ - The lagged GR is:}<LEND>[argument 5; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){dist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tackle_moment}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){x}<LSEP>[argument 1; litteral](str){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 6; litteral](str){yards away from the PR}<LSEP>[argument 7; litteral](str){\n}<LSEP>[argument 8; litteral](str){\n}<LSEP>[argument 9; litteral](str){Note: Euclidean distance used ...}<LSEP>[argument 10; litteral](str){ }
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[assign](){<-}<LSEP>[](symbol){get_probs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dt}<LSEP>[](symbol){var}<LSEP>[](symbol){target}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){get}<LSEP>[](symbol){target}<LEND>[](symbol){.N}<LEND>[statement 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){get}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){.N}<LSEP>[](symbol){w}<LEND>[argument 3; call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){var}<LEND>[assign](){<-}<LSEP>[](symbol){DT_fill_NA}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){DT}<LSEP>[](symbol){replacement}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){DT}<LEND>[body; call](){}<LSEP>[](symbol){set}<LSEP>[](symbol){DT}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){DT}<LSEP>[](symbol){j}<LEND>[](symbol){j}<LSEP>[](symbol){replacement}<LEND>[assign](){<-}<LSEP>[](symbol){super_fread}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){key_var}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[](symbol){file}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){key_var}<LEND>[true branch; call](){}<LSEP>[](symbol){setkeyv}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){key_var}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){dt}<LEND>[assign](){<-}<LSEP>[](symbol){events}<LEND>[call](){}<LSEP>[](symbol){fread}<LSEP>[argument 0; litteral](str){../input/events.csv}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){display_id}<LSEP>[argument 1; litteral](str){platform}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](str){character}<LSEP>[argument 2; litteral](str){numeric}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){events}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){platform}<LSEP>[argument 1; litteral](str){1}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){platform}<LSEP>[argument 1; litteral](str){2}<LEND>[call](){}<LSEP>[](symbol){setkeyv}<LSEP>[](symbol){events}<LSEP>[argument 1; litteral](str){display_id}<LEND>[assign](){<-}<LSEP>[](symbol){clicks_train}<LEND>[call](){}<LSEP>[](symbol){super_fread}<LSEP>[argument 0; litteral](str){../input/clicks_train.csv}<LSEP>[argument 1; litteral](str){display_id}<LEND>[assign](){<-}<LSEP>[](symbol){clicks_train}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){clicks_train}<LSEP>[](symbol){events}<LSEP>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){clicks_train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){ad_id_pl}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ad_id}<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){platform}<LEND>[call](){}<LSEP>[](symbol){setkeyv}<LSEP>[](symbol){clicks_train}<LSEP>[argument 1; litteral](str){ad_id_pl}<LEND>[assign](){=}<LSEP>[](symbol){click_prob}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){clicks_train}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){clicked}<LEND>[](symbol){.N}<LEND>[assign](){<-}<LSEP>[](symbol){ad_id_pl_probs}<LEND>[call](){}<LSEP>[](symbol){get_probs}<LSEP>[](symbol){clicks_train}<LSEP>[argument 1; litteral](str){ad_id_pl}<LSEP>[argument 2; litteral](str){clicked}<LSEP>[argument 3; litteral](real){16.000000}<LEND>[call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){clicks_train}<LEND>[call](){}<LSEP>[](symbol){gc}<LEND>[assign](){<-}<LSEP>[](symbol){clicks_test}<LEND>[call](){}<LSEP>[](symbol){super_fread}<LSEP>[argument 0; litteral](str){../input/clicks_test.csv}<LSEP>[argument 1; litteral](str){display_id}<LEND>[assign](){<-}<LSEP>[](symbol){clicks_test}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){clicks_test}<LSEP>[](symbol){events}<LSEP>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){clicks_test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){ad_id_pl}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ad_id}<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){platform}<LEND>[call](){}<LSEP>[](symbol){setkeyv}<LSEP>[](symbol){clicks_test}<LSEP>[argument 1; litteral](str){ad_id_pl}<LEND>[assign](){<-}<LSEP>[](symbol){clicks_test}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){clicks_test}<LSEP>[](symbol){ad_id_pl_probs}<LSEP>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){DT_fill_NA}<LSEP>[](symbol){clicks_test}<LSEP>[](symbol){click_prob}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){clicks_test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){display_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){display_id}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){clicks_test}<LSEP>[argument 1; litteral](str){prob}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){clicks_test}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){rev}<LSEP>[](symbol){ad_id}<LEND>[argument 1; litteral](str){ }<LEND>[](symbol){display_id}<LEND>[call](){}<LSEP>[](symbol){setkey}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){display_id}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){submission.csv}<LSEP>[](symbol){F}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xgboost}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){Matrix}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){1234.000000}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/train.csv}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){../input/test.csv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){ID}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){test.id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){ID}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){tc}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){train.y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){TARGET}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){TARGET}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){count0}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){n0}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){count0}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){n0}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){count0}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){train}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){var}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){var}<LEND>[assign](){<-}<LSEP>[](symbol){age_propensity}<LEND>[call](){}<LSEP>[](symbol){tapply}<LSEP>[](symbol){train.y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var15}<LEND>[](symbol){mean}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){age_propensity}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){age_propensity}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var15}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){age_propensity}<LEND>[argument 2; litteral](str){age_propensity}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){age_propensity}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){age_propensity}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var15}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){age_propensity}<LEND>[argument 2; litteral](str){age_propensity}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var38mc}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var38}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var38}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){logvar38}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var38}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var38mc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){var38}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var38mc}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var38}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var38}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){logvar38}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var38}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var38mc}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){var38}<LEND>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n## Removing the constants fe...}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](str){is constant in train. We delet...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f}<LEND>[litteral](NULL){NULL}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){test}<LSEP>[](symbol){f}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){features_pair}<LEND>[call](){}<LSEP>[](symbol){combn}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){F}<LEND>[assign](){<-}<LSEP>[](symbol){toRemove}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[control flow](){for}<LSEP>[](symbol){pair}<LSEP>[](symbol){features_pair}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pair}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){f2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pair}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){f1}<LSEP>[](symbol){toRemove}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){f2}<LSEP>[](symbol){toRemove}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){train}<LSEP>[](symbol){f2}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){f1}<LSEP>[argument 1; litteral](str){and}<LSEP>[](symbol){f2}<LSEP>[argument 3; litteral](str){are equals.\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){toRemove}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){toRemove}<LSEP>[](symbol){f2}<LEND>[assign](){<-}<LSEP>[](symbol){feature.names}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){train}<LEND>[](symbol){toRemove}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LSEP>[](symbol){feature.names}<LEND>[assign](){<-}<LSEP>[](symbol){tc}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Setting min-max lims on test data}<LEND>[control flow](){for}<LSEP>[](symbol){f}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){train}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lim}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[](symbol){lim}<LEND>[](symbol){f}<LEND>[](symbol){lim}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lim}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test}<LSEP>[](symbol){}<LSEP>[](symbol){f}<LEND>[](symbol){lim}<LEND>[](symbol){f}<LEND>[](symbol){lim}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){train}<LSEP>[](symbol){TARGET}<LEND>[](symbol){train.y}<LEND>[assign](){<-}<LSEP>[](symbol){train}<LEND>[call](){}<LSEP>[](symbol){sparse.model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){TARGET}<LSEP>[](symbol){.}<LEND>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){dtrain}<LEND>[call](){}<LSEP>[](symbol){xgb.DMatrix}<LSEP>[](symbol){train}<LSEP>[](symbol){train.y}<LEND>[assign](){<-}<LSEP>[](symbol){watchlist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dtrain}<LEND>[assign](){<-}<LSEP>[](symbol){param}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){binary:logistic}<LSEP>[argument 1; litteral](str){gbtree}<LSEP>[argument 2; litteral](str){auc}<LSEP>[argument 3; litteral](real){0.015000}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){0.500000}<LSEP>[argument 6; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){clf}<LEND>[call](){}<LSEP>[](symbol){xgb.train}<LSEP>[](symbol){param}<LSEP>[](symbol){dtrain}<LSEP>[argument 2; litteral](real){560.000000}<LSEP>[argument 3; litteral](real){10.000000}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[](symbol){watchlist}<LSEP>[argument 6; litteral](logical){TRUE}<LEND>[](symbol){feature.names}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){test}<LSEP>[](symbol){TARGET}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){sparse.model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){TARGET}<LSEP>[](symbol){.}<LEND>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){clf}<LSEP>[](symbol){test}<LEND>[assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){clf}<LSEP>[](symbol){train}<LEND>[assign](){<-}<LSEP>[](symbol){AUC}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){actual}<LSEP>[](symbol){predicted}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pROC}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){auc}<LEND>[call](){}<LSEP>[](symbol){auc}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){actual}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){predicted}<LEND>[](symbol){auc}<LEND>[call](){}<LSEP>[](symbol){AUC}<LSEP>[](symbol){train.y}<LSEP>[](symbol){pred}<LEND>[assign](){=}<LSEP>[](symbol){nv}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var33}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var33_ult3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var44_hace2}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var44_hace3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var33_ult1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var44_ult1}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nv}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var15}<LEND>[argument 1; litteral](real){23.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var5_hace2}<LEND>[argument 1; litteral](real){160000.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var33}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var21}<LEND>[argument 1; litteral](real){7500.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var30}<LEND>[argument 1; litteral](real){9.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var13_0}<LEND>[argument 1; litteral](real){6.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var33_0}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){imp_ent_var16_ult1}<LEND>[argument 1; litteral](real){51003.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){imp_op_var39_comer_ult3}<LEND>[argument 1; litteral](real){13184.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var5_ult3}<LEND>[argument 1; litteral](real){108251.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var15}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var45_hace3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var45_ult3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var36}<LEND>[argument 1; litteral](real){24.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var5}<LEND>[argument 1; litteral](real){137615.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var8}<LEND>[argument 1; litteral](real){60099.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var15}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var45_hace3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var45_ult3}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){var36}<LEND>[argument 1; litteral](real){24.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var14}<LEND>[argument 1; litteral](real){19053.780000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var17}<LEND>[argument 1; litteral](real){288188.970000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var26}<LEND>[argument 1; litteral](real){10381.290000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var13_largo_0}<LEND>[argument 1; litteral](real){3.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){imp_op_var40_comer_ult1}<LEND>[argument 1; litteral](real){3639.870000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_medio_var13_largo_ult1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_meses_var13_largo_ult3}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){num_var20_0}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){preds}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tc}<LSEP>[argument 1; litteral](str){saldo_var13_largo}<LEND>[argument 1; litteral](real){150000.000000}<LEND>[litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){submission}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){test.id}<LSEP>[](symbol){preds}<LEND>[call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){saving the submission file\n}<LEND>[call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){submission}<LSEP>[argument 1; litteral](str){submission.csv}<LSEP>[](symbol){F}