GridSearchCV 是否考虑了模型的执行时间,或者他只根据高参数计算准确率?
Does the GridSearchCV take in account the execution time of a model or he only takes his accuracy according to the high-parameters?
我正在尝试为我的分类问题找到最佳模型。我正在使用 GridSearchCV 优化我的模型(来自 sklearn 库(DecisionTreeClassifier、RandomForestClassifier,...)。我想知道它是否考虑了模型的执行时间?
前任。我正在优化 DecisionTreeClassifier 的高参数,他在几秒钟内运行,具有特定的准确性。时间是否与 GridSearch 找到并检索我的高参数相关?
我希望它足够清楚!
谢谢
它没有被考虑在内,但是您可以 return 该信息并使用它来找到带有 returned cv_results_
的字典的最佳模型。关于best_estimator_:
best_estimator_:
Estimator that was chosen by the search, i.e. estimator which gave highest score (or smallest loss if specified) on the left out data. Not available if refit=False.
我正在尝试为我的分类问题找到最佳模型。我正在使用 GridSearchCV 优化我的模型(来自 sklearn 库(DecisionTreeClassifier、RandomForestClassifier,...)。我想知道它是否考虑了模型的执行时间? 前任。我正在优化 DecisionTreeClassifier 的高参数,他在几秒钟内运行,具有特定的准确性。时间是否与 GridSearch 找到并检索我的高参数相关?
我希望它足够清楚! 谢谢
它没有被考虑在内,但是您可以 return 该信息并使用它来找到带有 returned cv_results_
的字典的最佳模型。关于best_estimator_:
best_estimator_: Estimator that was chosen by the search, i.e. estimator which gave highest score (or smallest loss if specified) on the left out data. Not available if refit=False.