'SigmoidCrossEntropyWithLogits' object has no attribute 'get_inputs'
时间: 2023-08-04 07:02:29 浏览: 159
【Python】AttributeError: ‘AutoSchema’ object has no attribute ‘get_link’
5星 · 资源好评率100%
引用\[1\]:在使用sklearn时,我们经常使用feature_importances_来进行特征筛选。然而,当出现AttributeError: 'GridSearchCV' object has no attribute 'feature_importances_'错误时,这意味着你正在尝试在GridSearchCV对象上使用feature_importances_属性,而该属性只适用于具体的模型对象,而不是GridSearchCV对象本身。你需要先从GridSearchCV对象中提取出最佳模型,然后再使用feature_importances_属性。\[1\]
引用\[2\]:在你的代码中出现AttributeError: 'Total number of self-loops: 'SigmoidCrossEntropyWithLogits' object has no attribute 'get_inputs'错误。这个错误通常是由于你在使用一个名为'SigmoidCrossEntropyWithLogits'的对象时,该对象没有get_inputs属性。你需要检查你的代码,确保你正确地创建了'SigmoidCrossEntropyWithLogits'对象,并且该对象具有get_inputs属性。如果你是从某个库中导入了'SigmoidCrossEntropyWithLogits'对象,你可能需要查阅该库的文档以了解如何正确使用该对象。\[2\]
引用\[3\]:在你的代码中出现'SigmoidCrossEntropyWithLogits' object has no attribute 'get_inputs'错误。这个错误通常是由于你在使用一个名为'SigmoidCrossEntropyWithLogits'的对象时,该对象没有get_inputs属性。你需要检查你的代码,确保你正确地创建了'SigmoidCrossEntropyWithLogits'对象,并且该对象具有get_inputs属性。如果你是从某个库中导入了'SigmoidCrossEntropyWithLogits'对象,你可能需要查阅该库的文档以了解如何正确使用该对象。\[3\]
#### 引用[.reference_title]
- *1* [‘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]
- *2* [解决:AttributeError: ‘Graph‘ object has no attribute ‘number_of_selfloops‘](https://blog.csdn.net/zhongkeyuanchongqing/article/details/121535659)[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* [报错‘NoneType‘ object has no attribute ‘send_keys‘](https://blog.csdn.net/weixin_44632967/article/details/127810985)[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 ]
阅读全文