Kaggle competition: Tabular Playground Series - Feb 2021
<SOS> metric: RMSE Kaggle data source: tabular-playground-series-feb-2021<compute_train_metric>
import os
import numpy as np
import pandas as pd
print('Calculating 200000 predictions and displaying a few examples...')
 pred = [0]*200000; ct = 0
for r in train.index:
p = 0.1
for i in range(200):
p *= 10*getp2(i,train.iloc[r,2+i])
 if ct%25000==0: print('train',r,'has target =',train.iloc[r,1],'and prediction =',p)
 pred[ct]=p; ct += 1
print('
print('Validation AUC =',roc_auc_score(train['target'], pred))<save_to_csv>
pred1 = pd.read_csv(".. /input/tps-feb-submission-ensemble/submission_pseudo_lgb.csv")
 pred2 = pd.read_csv(".. /input/tps-feb-submission-ensemble/submission_pseudo_lgb_4.csv")
 pred3 = pd.read_csv(".. /input/tps-feb-submission-ensemble/submission_pseudo_lgb_5.csv")
 pred4 = pd.read_csv(".. /input/tps-feb-submission-ensemble/pseudo_lgb_1.csv" )
test = pd.read_csv('.. /input/test.csv')
 print('Calculating 200000 predictions and displaying a few examples...')
 pred = [0]*200000; ct = 0
for r in test.index:
p = 0.1
for i in range(200):
p *= 10*getp2(i,test.iloc[r,1+i])
 if ct%25000==0: print('test',r,'has prediction =',p)
 pred[ct]=p
ct += 1
sub = pd.read_csv('.. /input/sample_submission.csv')
 sub['target'] = pred
sub.to_csv('submission.csv',index=False)
 print('
print('Finished.Wrote predictions to submission.csv' )<load_from_csv>
pred =(pred1.target + pred2.target + pred3.target + pred4.target)/ 4
pred
predict_list = []
predict_list.append(pd.read_csv('.. /input/90-lines-solution-0-901-fast/lgb_submission.csv')[LABELS].values)
 predict_list.append(pd.read_csv('.. /input/eda-pca-lgbm-santander-transactions/submission34.csv')[LABELS].values)
 predict_list.append(pd.read_csv('.. /input/eda-pca-simple-lgbm-on-kfold-technique/submission26.csv')[LABELS].values)
 predict_list.append(pd.read_csv('.. /input/lgb-2-leaves-augment/lgb_submission.csv')[LABELS].values)
 predict_list.append(pd.read_csv('.. /input/lightgbm-with-data-augmentation/2019-04-01_07_56_sub.csv')[LABELS].values)
 predict_list.append(pd.read_csv('.. /input/santander-augment-to-the-rescue/submission.csv')[LABELS].values)
 predict_list.append(pd.read_csv('.. /input/others/output_v3.csv')[LABELS].values)
 predict_list.append(pd.read_csv('.. /input/others/output_v2.csv')[LABELS].values)
 predict_list.append(pd.read_csv('.. /input/others/output_v1.csv')[LABELS].values )<save_to_csv>
submission = pd.read_csv(".. /input/tabular-playground-series-feb-2021/sample_submission.csv")
 submission.target = pred
submission
<set_options><EOS> 
submission.to_csv("ensemble.csv", index=False )