Top "Grid-search" questions

In machine learning, grid search refers to multiple runs to find the optimal value of parameter(s)/hyperparameter(s) of a model, e.g. mtry for random-forest or alpha, beta, lambda for glm, or C, kernel and gamma for SVM.

Interpreting sklearns' GridSearchCV best score

I would like to know the difference between the score returned by GridSearchCV and the R2 metric calculated as below. …

python scikit-learn cross-validation grid-search
Scoring in Gridsearch CV

I just started with GridSearchCV in Python, but I am confused what is scoring in this. Somewhere I have seen …

python machine-learning data-science grid-search
Pipeline: Multiple classifiers?

I read following example on Pipelines and GridSearchCV in Python: http://www.davidsbatista.net/blog/2017/04/01/document_classification/ Logistic Regression: pipeline = …

python scikit-learn pipeline grid-search
Python - LightGBM with GridSearchCV, is running forever

Recently, I am doing multiple experiments to compare Python XgBoost and LightGBM. It seems that this LightGBM is a new …

python cross-validation xgboost grid-search lightgbm
How to save GridSearchCV object?

Lately, I have been working on applying grid search cross validation (sklearn GridSearchCV) for hyper-parameter tuning in Keras with Tensorflow …

python scikit-learn keras save grid-search
Early stopping with Keras and sklearn GridSearchCV cross-validation

I wish to implement early stopping with Keras and sklean's GridSearchCV. The working code example below is modified from How …

machine-learning scikit-learn keras cross-validation grid-search
How to implement SMOTE in cross validation and GridSearchCV

I'm relatively new to Python. Can you help me improve my implementation of SMOTE to a proper pipeline? What I …

python scikit-learn pipeline cross-validation grid-search
RandomForestRegressor and feature_importances_ error

I am struggling to pull out the feature importances from my RandomForestRegressor, I get an: AttributeError: 'GridSearchCV' object has no …

python scikit-learn random-forest feature-extraction grid-search
Does GridSearchCV perform cross-validation?

I'm currently working on a problem which compares three different machine learning algorithms performance on the same data-set. I divided …

python machine-learning scikit-learn cross-validation grid-search