Which method in Scikit-learn would you use to tune hyperparameters of a model?
- fit()
- gradient_boosting()
- GridSearchCV
- predict()
GridSearchCV is used in Scikit-learn for hyperparameter tuning. It performs an exhaustive search over specified hyperparameter values to find the best combination for the model.
Loading...
Related Quiz
- You are implementing a caching mechanism. You need a data structure that removes the least recently added item when the size limit is reached. Which built-in Python data structure would you use?
- When designing a RESTful API, how should you handle versioning of the API?
- How would you implement a dequeue (double-ended queue) data structure?
- In Python, the ____ method of a unittest TestCase is run before each test method is executed.
- You are tasked with optimizing a Python application that processes large amounts of data and is running out of memory. Which technique would you use to manage memory more efficiently?