summary() got an unexpected keyword argument verbose
时间: 2023-10-04 11:11:06 浏览: 112
The error message "summary() got an unexpected keyword argument verbose" indicates that the function "summary()" was called with an unexpected argument "verbose". This means that the "summary()" function does not accept the argument "verbose". To resolve this error, you should remove the "verbose" argument from the function call or use an appropriate function that accepts the "verbose" argument.
相关问题
got an unexpected keyword argument
当出现"TypeError: init got an unexpected keyword argument"错误提示时,通常是因为在调用某个函数或方法时传入了不被支持的关键字参数。这意味着你传入的参数在函数或方法的定义中没有被定义或支持。要解决这个错误,你可以按照以下步骤进行操作:
1. 确认传入的关键字参数是否正确,检查拼写和大小写是否与函数或方法的定义一致。
2. 检查函数或方法的文档,确保你正在使用正确的参数。
3. 如果你传入的参数是多余的或者不需要的,可以删除它们以避免出现错误。
通过这些步骤,你应该能够解决"TypeError: init got an unexpected keyword argument"错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Python出现TypeError: __init__ got an unexpected keyword argument ‘autocompletion‘错](https://blog.csdn.net/ai52learn/article/details/130995288)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
fit() got an unexpected keyword argument 'verbose'
这个错误是因为在使用fit()函数时,传入了一个不被支持的参数'verbose'。这个参数用于控制训练过程中输出的信息量,但是在某些版本的Keras中并不支持这个参数。如果你想要控制输出信息的量,可以使用参数'verbosity'来代替'verbose'。例如,将'verbose=1'修改为'verbosity=1'即可解决这个问题。