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.

登录即可查看完整答案

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

更多留学生实用工具

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