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

Sklearn 1.1.1 Issue #63

Open
jricharva opened this issue May 21, 2022 · 1 comment
Open

Sklearn 1.1.1 Issue #63

jricharva opened this issue May 21, 2022 · 1 comment

Comments

@jricharva
Copy link

I cant get this to work with the latest version of Sklearn 1.1.1
Its something related to the NearestNeighbors function in the latest version of this library

Here is the error in the cell #@markdown Run the clustering algorithm, calculate cluster characteristics and visualize.

--> 294 nbrs = NearestNeighbors(n_neighbors + 1, metric=metric).fit(x)
295 _, indices = nbrs.kneighbors(x)
297 indices = nbrs.kneighbors(x)

TypeError: NearestNeighbors.init() takes 1 positional argument but 2 positional arguments (and 1 keyword-only argument) were given

This is called in this section of code

Step 1.

Add 1 since NearestNeighbors returns itself as a nearest point.

nbrs = NearestNeighbors(n_neighbors + 1, metric=metric).fit(x)
_, indices = nbrs.kneighbors(x)

Cant seem to get past this one

@alekssadowski95
Copy link
Contributor

@jricharva What do I have to do to replicate this? What needs to be run and how does it need to be run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants