Created
September 2, 2023 00:19
-
-
Save youssefHosni/838b4017356be4d0f221b1fdfece88db to your computer and use it in GitHub Desktop.
This file contains 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
import xgboost as xgb | |
params = {"objective":"binary:logistic",'colsample_bytree': 0.3,'learning_rate': 0.1, | |
'max_depth': 5, 'alpha': 10} | |
model = xgb.XGBClassifier(**params) | |
model.fit(X_train, y_train) | |
model.fit(X_train, y_train) | |
model.score(X_test,y_test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment