text_html_output_1.png
from sklearn.model_selection import train_test_split

from xgboost import XGBRegressor

import pandas as pd

train = pd.read_csv('/kaggle/input/tabular-playground-series-aug-2021/train.csv')
test = pd.read_csv('/kaggle/input/tabular-playground-series-aug-2021/test.csv')

train.shape

test.shape

train.pop('id')
test_ids = test.pop('id')

validation_split = 0.3
train_features, validation_features = train_test_split(train, test_size=validation_split)
train_targets, validation_targets = (train_features.pop('loss'), validation_features.pop('loss'))

from xgboost import XGBRegressor
my_model = XGBRegressor()
my_model.fit(train_features, train_targets)