Questions tagged [gridsearchcv]

The tag has no usage guidance.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
2answers
149 views

What's the difference between GridSearchCrossValidation score and score on testset?

I'm doing classification using python. I'm using the class GridSearchCV, this class has the attribute best_score_ defined as "Mean cross-validated score of the best_estimator". With this ...
3
votes
2answers
106 views

Overfitted model produces similar AUC on test set, so which model do I go with?

I was trying to compare the effect of running GridSearchCV on a dataset which was oversampled prior and oversampled after the training folds are selected. The oversampling approach I used was random ...
1
vote
1answer
21 views

Grid Search Pool Classifiers for Dynamic Classifier Selection Ensembles

I would like to grid search pool classifiers hyper parameter of OLA() ( Overall Local Accuracy ) model from deslib python package. ...
0
votes
0answers
13 views

Which Random Forest hyperparameters to tune with Grid Search and which are the best initial hyperparameters values?

I want to use Grid Search for finding optimal hyperpameters for Random Forest. My questions are: Which Random Forest hyperparameters are considered important for tuning? Which initial Random Forest ...
0
votes
0answers
12 views

Grid Search using strategy

What is the correct strategy of using Grid Search? Am I understand correctly that to use correctly Grid Search I should: Give Grid Search initial parameters that have wide range. For example if ...
0
votes
0answers
57 views

GridSearchCV using pre-defined validation dataset for KerasCNN return Warning about function

I want to use GridSearchCV for search best parameters for my CNN models to detect ECG anomaly. I have two dataframe which defined as train and test datasets, since want to follow previous research, ...
0
votes
1answer
327 views

How to refit GridSearchCV on Multiclass problem

I'm trying to use GridSearchCV for my Multiclass problem. For starters, wanted to test it on KNeighborsClassifier. First, here's the code where I define the function which uses GridSearchCV: ...
0
votes
0answers
74 views

Hyper tuning reduce the accuracy score, why?

I have performed hyper tuning grid CV search on KNN model. The actual accuracy score for my KNN was accuracy of 42.31 % without performing hyper tuning. However, after performing hyper tuning, the ...
0
votes
2answers
96 views

i'm using GridSearchCV to find parameter C for SVC() classifier present in sklearn.svm . I'm not getting the optimal result desired

this is a screenshot of my code. i used abc.best_estimator_ (my GridSearchCV model) to find out best results. As you can see grid has values of C=1 and C=100 along with other values. abc....
0
votes
0answers
203 views

Getting unexpected keyword error in CatBoostRegressor while using GridSearchCV

I am trying to use GridSearchCV on a CatBoostRegressor algorithm, but get some "unexpected keyword" errors on 3 different params (classes_count, auto_class_weights, and bayesian_matrix_reg) ...
0
votes
0answers
76 views

EarlyStopping in GridSearch - how to get the mean epoch after which training stopped?

is there a way to get the mean number of epochs when training stopped by EarlyStopping in GridSearch? ...
0
votes
0answers
371 views

Why do I have leakage while using Stratified Group K Fold?

I have the following case: Training data in the form of x, y coordinates on different frames (from a video). Based on this I computed some features, using only the training data and labels. A model is ...
0
votes
1answer
65 views

CNN for subsets of a dataset - how to tune hyperparameters

I have a dataset and would like to train CNNs on subsets of different size of the dataset. I already have a CNN, which classifies very well if I use the entire dataset. Now the question arises if I ...
0
votes
1answer
31 views

GridSearchCV Acting Weird

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 ...