You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: