Evaluating the best model on the test set

PHOTO EMBED

Tue May 21 2024 16:18:14 GMT+0000 (Coordinated Universal Time)

Saved by @Uncoverit #python

# Evaluating the best model on the test set
best_model = grid_search.best_estimator_
test_score = best_model.score(x_test, y_test)
print('Test set accuracy:', test_score)
content_copyCOPY