#pip install xgboost from xgboost import XGBClassifier,XGBRegressor #Use classifier or regressor according to your problem model = XGBClassifier() model.fit(X_train, y_train)