I don't know how to make the XGBoost
classifier work. I am running the code below on Jupyter notebook, and it always generates this message "The kernel appears to have died. It will restart automatically."
from xgboost import XGBClassifier
model = XGBClassifier()
model.fit(X, y)
There is no problem with importing the XGBClassifier
, but it crashes upon fitting it to my data. X
is a 502
by 33 all-numeric dataframe, y
is the set of 0 or 1 labels for each row.
Does anyone know what could be the problem here? I downloaded the newest version of XGBoost
through pip3
install, and also through Conda
install.
Thanks!