Closed e10e3 closed 3 months ago
Fixes #1565 by using a different formula for the difference when the data is not numeric.
This allows the distance not to error out when non-numbers are given, while keeping a reasonable behaviour.
Because of the added code paths that are difficult to optimise away, kNN is roughly twice as slow to make a prediction.
Please, see my comments on #1565.
Fixes #1565 by using a different formula for the difference when the data is not numeric.
This allows the distance not to error out when non-numbers are given, while keeping a reasonable behaviour.
Caveat
Because of the added code paths that are difficult to optimise away, kNN is roughly twice as slow to make a prediction.