We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4363c8 commit f58c03dCopy full SHA for f58c03d
inst/Classification/ClassificationKNN.m
@@ -897,12 +897,7 @@ function disp (this)
897
898
## Apply ScoreTransform (if applicable)
899
if (! strcmp (this.ScoreTransform, "none"))
900
- f = this.ScoreTransform;
901
- if (! strcmp (class (f), "function_handle"))
902
- error (strcat ("ClassificationKNN.predict: 'ScoreTransform'", ...
903
- " must be a 'function_handle' object."));
904
- endif
905
- scores = f (scores);
+ scores = this.ScoreTransform (scores);
906
endif
907
908
endfor
0 commit comments