__init__() got an unexpected keyword argument 'n_jobs
时间: 2023-10-02 15:13:40 浏览: 109
PHP异常Parse error: syntax error, unexpected T_VAR错误解决方法
This error message is raised when the `__init__()` method of a class is called with an unexpected keyword argument `n_jobs`. This means that the class does not expect to receive the `n_jobs` argument, or it expects it to have a different name.
The `n_jobs` argument is often used in scikit-learn to specify the number of CPU cores to use for parallel processing. If you are encountering this error while using scikit-learn, make sure that you are passing the `n_jobs` argument to a method that expects it, and that you are passing it with the correct name.
If you are encountering this error with your own code, check the documentation or source code of the class you are using to see if it supports the `n_jobs` argument. If it does not, consider using a different class or library that does support parallel processing.
阅读全文