text_plain_output_1.png image_output_1.png
from sklearn.metrics import roc_auc_score

from xgboost import XGBClassifier

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df_train = pd.read_csv('../input/dont-overfit-ii/train.csv')
df_test = pd.read_csv('../input/dont-overfit-ii/test.csv')
labels = df_train.columns.drop(['id', 'target'])
target = df_train['target']
ide = df_test['id']
df_test = df_test.drop('id', axis=1)

from xgboost import XGBClassifier
m = XGBClassifier(max_depth=2, gamma=11, eta=0.8, reg_alpha=0.7, reg_lambda=0.9, eval_metric=None)
m.fit(x_train, y_train)
pred = m.predict(x_test)

print(df_test.shape)
ou = m.predict(df_test)