TransWikia.com

GridSearchCV Acting Weird

Data Science Asked by moii789 on March 14, 2021

I am using GridSearchCV to find the best combination of parameters for SVM. However, the parameters chosen by GridSeasrchCV do not seem to be the best ones. I tried some parameters randomly and they are working much better. I tried both combinations in the test set. Here is the picture:enter image description here

The second confusion matrix + classification report is the random but improved one. Why isn’t GridSearchCV selecting this combination?

One Answer

99% Accuracy is over fitted model and its not the accurate model. There will always be loss associated. secondly you sample size is too small for reaching the global minima. you should also check your ROC-AUC curve for the model.

Answered by Syenix on March 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP