Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow KNN Regressor #198

Closed
cugurm opened this issue Jul 17, 2020 · 1 comment
Closed

Slow KNN Regressor #198

cugurm opened this issue Jul 17, 2020 · 1 comment

Comments

@cugurm
Copy link

cugurm commented Jul 17, 2020

Too large evaluator loading time of K Nearest Neighbors regressor (with a lot of training instances, about 100k instances each size of 100 double values).

I now that KNN is a lazy regresor, but are there any eventually speedup?

All the best,
Milan

@vruusmann
Copy link
Member

Closing as functional duplicate of #187

The JPMML-Evaluator development branch 1.5.X provides support for choosing an evaluation "approach" based on model configuration. For example, we could use one approach for small all-categorical KNNs and another one for big all-continuous KNNs (as is the case here).

Unfortunately, right now there's only one evaluation "approach" available, which doesn't suit the particular workflow very well.

I'm more likely to implement the speedup in the JPMML-Transpiler library layer (code generation, plus using some helper third-party library).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants