题目
题目
单项选择题

Which statement best describes the difference between GridSearchCV and RandomizedSearchCV in scikit-learn?

选项
A.RandomizedSearchCV is only used for classification models, while GridSearchCV is only used for regression models.
B.GridSearchCV guarantees finding the best hyperparameter combination, while RandomizedSearchCV may miss the optimal combination within the grid.
C.GridSearchCV exhaustively tests all combinations in the specified grid, while RandomizedSearchCV samples a fixed number of random combinations from the grid specified in n_iter.
D.GridSearchCV is faster than RandomizedSearchCV when the hyperparameter space is very large.
查看解析

查看解析

标准答案
Please login to view
思路分析
Question restatement: The prompt asks to describe how GridSearchCV and RandomizedSearchCV differ in scikit-learn, given the following options. Option 1: 'RandomizedSearchCV is only used for classification models, while GridSearchCV is only used for regression models.' This is incorrect because both search methods are model-agnostic and can be applied to classification, regression, and other estimator types that have tunable hyperparameters. The distinction between them is not about the type of model but about how they explore ......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!