Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 'KNeighborsAlgorithm' object has no attribute 'classes_' #669

Open
strukevych opened this issue Nov 3, 2023 · 6 comments
Open

Bug: 'KNeighborsAlgorithm' object has no attribute 'classes_' #669

strukevych opened this issue Nov 3, 2023 · 6 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@strukevych
Copy link

Current behavior:
'KNeighborsAlgorithm' object has no attribute 'classes_'
Problem during computing permutation importance. Skipping ...

Expected: KNeighbors to be trained

@pplonski
Copy link
Contributor

pplonski commented Nov 7, 2023

Which version are you using?

@strukevych
Copy link
Author

Python 3.11
mljar 1.1.1

@pplonski pplonski added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Nov 8, 2023
@pplonski
Copy link
Contributor

pplonski commented Nov 8, 2023

Thanks @strukevych, looks like it is some bug. PR are welcome!

@Hk669
Copy link
Contributor

Hk669 commented Nov 30, 2023

hey @pplonski , i am keen on contributing and would like to gather more information to better understand the problem and work towards a resolution.

@Hk669
Copy link
Contributor

Hk669 commented Nov 30, 2023

@pplonski , made a PR #679 .
i think this will solve the issue for the _classes attribute in the KNieghborsAlgorithm

@pplonski
Copy link
Contributor

pplonski commented Dec 1, 2023

Thank you @Hk669, I've added comments to PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants