cut() got an unexpected keyword argument 'test_use_paddle'
时间: 2023-07-30 11:08:19 浏览: 81
这个错误提示是因为在调用cut()函数时使用了test_use_paddle这个未定义的关键字参数。可能是因为你使用的是一个过期的或非官方的第三方库,该库的cut()函数并不支持test_use_paddle参数。
建议检查你的代码中是否存在这个参数,如果存在则删除它。如果你需要使用test_use_paddle参数,可以查看官方文档或者更新你的库版本。
相关问题
make_classification() got an unexpected keyword argument '_redundant'
As an AI language model, I cannot see the code you are referring to. However, I can explain the error message you provided.
The error message "make_classification() got an unexpected keyword argument '_redundant'" usually occurs when you are trying to pass an invalid argument to the scikit-learn function make_classification(). The argument '_redundant' is not a valid argument for this function, so the function is raising an error.
To fix this error, you should check the documentation for the make_classification() function to see what arguments are valid, and make sure that you are passing only valid arguments. If you are still unsure what is causing the error, you can try posting your code and the full error message on a forum or Q&A site for help from other programmers.
__init__() got an unexpected keyword argument background_color
This error message usually occurs when you pass an unexpected keyword argument to a function or a class constructor.
In this case, it seems that you are trying to pass a `background_color` argument to the `__init__()` method of a class, but this class does not expect or support this argument.
To resolve this issue, you need to check the documentation or source code of the class to see which arguments it supports, and make sure that you are passing the correct arguments. Alternatively, you can modify the class to support the new argument if necessary.