Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

GridSearchCV and Cross Valdation in Python

$
0
0

@TarunSingh wrote:

Hi All,

I am aware that
K -Fold Cross validation is the technique where we keep a part of dataset and do not train on it and use that part for testing or validation.
Grid Search : This is used to tune our hyperparameters and get the best set of parameters

The question is how GridSearch and Cross Validation are inter linked. Is it necessary that I have to use both of them simultaneously or I can use them independently.

Please explain how this below line is evaluated :
grid = GridSearchCV(estimator=lasso_clf, model_grid, cv=LeaveOneOut(train.shape[0]),scoring=‘mean_squared_error’)

Thanks in advance,
Tarun Singh

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles