Created
July 28, 2019 00:19
-
-
Save Tathagatd96/1f79fedf4f074312581611b7f86418ce 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
bst_grid = GridSearchCV ( | |
estimator = XGBClassifier(**static_params), | |
param_grid = variable_params, | |
scoring = "accuracy" | |
) | |
bst_grid.fit(X_data, y_data) | |
print("Best Accuracy:{}".format(bst_grid.best_score_)) | |
for key,value in bst_grid.best_params_.items(): | |
print("{}:{}".format(key,value)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment