Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform Hyperparameter Tuning using GridSearchCV #2

Open
Priyanka142806 opened this issue Oct 10, 2021 · 0 comments
Open

Perform Hyperparameter Tuning using GridSearchCV #2

Priyanka142806 opened this issue Oct 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Priyanka142806
Copy link
Collaborator

Priyanka142806 commented Oct 10, 2021

The performance of a model significantly depends on the value of hyperparameters. Use GridSearchCV to know the optimal/best hyperparameters.

ISSUE
The performance of a model significantly depends on the value of hyperparameters. There is no way to know the best values for hyperparameters. So, we need to try all possible values to know the optimal/best hyperparameters so as to improve the accuracy. Doing this manually could take a considerable amount of time and resources

SOLUTION
Using GridSearchCV to tune the model would help us automate this process. GridSearchCV is a function that comes in Scikit-learn’s(or SK-learn) model_selection package
A range of values for each hyperparameters to the GridSearchCV function is passed by defining a dictionary in which a particular hyperparameter along with the values it can take in a list is mentioned.
GridSearchCV tries all the combinations of the values passed in the dictionary and evaluates the model for each combination using the Cross-Validation method. Hence after using this function we get accuracy/loss for every combination of hyperparameters and we can choose the one with the best performance.

Screenshot (206)

@Priyanka142806 Priyanka142806 added the enhancement New feature or request label Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant