[英]How do I extract the best features when using BayesSearchCV?
When using BayesSearchCV from Skopt for Feature Selection, how can I extract the feature names of the optimal set of features?使用 Skopt 的 BayesSearchCV 进行特征选择时,如何提取最佳特征集的特征名称? I only know how to get the number of features together with other hyperparameters but am unable to find how to get the names of these optimal features.我只知道如何与其他超参数一起获得特征数量,但无法找到如何获得这些最佳特征的名称。
According to the documentation you can access this by calling根据文档,您可以通过调用来访问它
opt.best_params_
https://scikit-optimize.github.io/stable/modules/generated/skopt.BayesSearchCV.html#skopt.BayesSearchCV https://scikit-optimize.github.io/stable/modules/generated/skopt.BayesSearchCV.html#skopt.BayesSearchCV
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.