SingerInfo() got an unexpected keyword argument 'singer_id'
时间: 2023-06-15 12:05:30 浏览: 41
这个错误通常表示您在调用 `SingerInfo()` 函数时传递了一个名为 `singer_id` 的参数,但这个函数并没有定义 `singer_id` 参数。
请检查您的代码,确认您是否正确地传递了所有必需的参数,并且没有传递任何不需要的参数。您还可以查看 `SingerInfo()` 函数的定义,确保其中没有错别字或语法错误。如果您仍然无法解决问题,请提供更多的代码和上下文信息,以便我帮助您更好地解决问题。
相关问题
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.