Skip to content

Commit

Permalink
Fix KNN error message. (#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: #4782
  • Loading branch information
trivialfis authored Jun 27, 2022
1 parent 0810260 commit b26fe7e
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 b26fe7e

Please sign in to comment.