Skip to content

Commit

Permalink
fix: update scikit-learn usage for 1.0 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaljovec committed Nov 20, 2022
1 parent dbd76d5 commit 7b9ee5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nglpy/EmptyRegionGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def build(self, X):
# python for a fully connected graph
edges = vectorInt()
else:
knn = sklearn.neighbors.NearestNeighbors(self.max_neighbors)
knn = sklearn.neighbors.NearestNeighbors(n_neighbors=self.max_neighbors)
knn.fit(X)
edges = knn.kneighbors(X, return_distance=False)

Expand Down

0 comments on commit 7b9ee5a

Please sign in to comment.