Created
February 17, 2019 16:21
-
-
Save gabrielziegler3/88e3ab0072f3b6bf940b35a4ac159a13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42, stratify=y) | |
dtrain = xgb.DMatrix(data=X_train, label=y_train) | |
dtest = xgb.DMatrix(data=X_test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment