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(nneighbors + 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(nneighbors + 1, metric=metric).fit(x)
, indices = nbrs.kneighbors(x)
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(nneighbors + 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(nneighbors + 1, metric=metric).fit(x) , indices = nbrs.kneighbors(x)
Cant seem to get past this one