__init__() got an unexpected keyword argument 'n_jobs'
时间: 2023-10-05 20:06:59 浏览: 53
This error message suggests that the function or method you are trying to run does not recognize the parameter `n_jobs`. This parameter is often used to specify the number of parallel jobs to use for computation.
There are a few possible explanations for this error:
1. The code you are running does not support parallel processing and does not have a `n_jobs` parameter. In this case, you would need to modify the code to enable parallel processing or remove the `n_jobs` parameter.
2. The version of the library you are using does not support `n_jobs`. In this case, you may need to update the library to a newer version.
3. There is a typo or other mistake in your code that is causing the error. Double-check your code to make sure that you are passing the `n_jobs` parameter correctly and that it is spelled correctly.
Without more information about the specific code and library you are working with, it is difficult to provide a more specific solution.