'MultiOutputRegressor' object has no attribute 'feature_importances_'
时间: 2023-08-06 19:08:58 浏览: 195
解决运行出现dict object has no attribute has_key问题
5星 · 资源好评率100%
回答: 出现'MultiOutputRegressor' object has no attribute 'feature_importances_'的错误是因为'MultiOutputRegressor'对象没有'feature_importances_'属性。\[3\]在sklearn中,不同的模型可能具有不同的属性和方法。在这种情况下,'MultiOutputRegressor'对象没有'feature_importances_'属性。要解决这个问题,你可以尝试使用其他方法来获取特征的重要性,或者使用其他模型来进行特征筛选。另外,你也可以尝试注释掉引发错误的那一行代码,以避免出现错误。\[2\]
#### 引用[.reference_title]
- *1* *2* [‘GridSearchCV‘ object has no attribute ‘feature_importances_‘解决](https://blog.csdn.net/weixin_43695831/article/details/129621587)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [一步真实解决AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘](https://blog.csdn.net/Thebest_jack/article/details/124723687)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文