Skip to content

Commit

Permalink
fix knn_max bug
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Dec 17, 2019
1 parent 495b845 commit 82edb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/magic/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def set_params(self, **params):
reset_kernel = True
del params["knn"]
if "knn_max" in params and params["knn_max"] != self.knn_max:
self.knn = params["knn_max"]
self.knn_max = params["knn_max"]
reset_kernel = True
del params["knn_max"]
if "decay" in params and params["decay"] != self.decay:
Expand Down

0 comments on commit 82edb3e

Please sign in to comment.