label() got an unexpected keyword argument 'neighbors'
时间: 2023-10-05 19:07:57 浏览: 89
This error message occurs when you provide an unexpected keyword argument to the `label()` method.
The `label()` method is typically used in a machine learning context to assign labels or categories to data. It's possible that you are using a library or framework that has a custom implementation of the `label()` method that accepts a `neighbors` keyword argument, but this is not a standard argument for the method.
You should check the documentation or source code of the library or framework you are using to understand the expected arguments for the `label()` method. If you are still having trouble, you can provide more details about your code and the library/framework you are using so that I can better assist you.