Skip to content

Commit

Permalink
Fix KNN error message. (rapidsai#4782)
Browse files Browse the repository at this point in the history
Authors:
  - Jiaming Yuan (https://github.com/trivialfis)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai#4782
  • Loading branch information
trivialfis authored Jun 27, 2022
1 parent 6630909 commit 5255757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cuml/neighbors/nearest_neighbors.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class NearestNeighbors(Base,

if is_sparse(X):
valid_metrics = cuml.neighbors.VALID_METRICS_SPARSE
value_metric_str = "_SPARSE"
valid_metric_str = "_SPARSE"
self.X_m = SparseCumlArray(X, convert_to_dtype=cp.float32,
convert_format=False)
self.n_rows = self.X_m.shape[0]
Expand Down

0 comments on commit 5255757

Please sign in to comment.