text_html_output_1.png
from sklearn.ensemble  import AdaBoostClassifier, GradientBoostingClassifier

import pandas as pd

data = pd.read_csv('/kaggle/input/icr-identify-age-related-conditions/train.csv')

(x_train.shape, y_train.shape, x_test.shape, y_test.shape)

gb = GradientBoostingClassifier(n_estimators=1000, max_depth=9, subsample=0.8, max_features='log2', min_samples_leaf=9, random_state=42)
gb.fit(x_train, y_train)

y_pred = gb.predict(x_test)

test = pd.read_csv('/kaggle/input/icr-identify-age-related-conditions/test.csv')

ID = test['Id']

test.drop('Id', axis=1, inplace=True)

test.shape

prediction = gb.predict_proba(test)

result = pd.DataFrame(prediction, index=ID, columns=['class_0', 'class_1'])

result