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

KNNImputer with distance as metric is not supported #1081

Open
JonatanHauge opened this issue Mar 12, 2024 · 3 comments
Open

KNNImputer with distance as metric is not supported #1081

JonatanHauge opened this issue Mar 12, 2024 · 3 comments
Assignees

Comments

@JonatanHauge
Copy link

Hi

I would like to convert my sklearn KNN imputer to an .onnx file, but the distance metric is not supported.
Can anybody please try to solve this?

Best regards,
Jonatan

@xadupre
Copy link
Collaborator

xadupre commented Apr 4, 2024

Can you tell more about the unsupported metric you tried to use?

@JonatanHauge
Copy link
Author

When fitting a KNN imputer in sklearn you choose between either 'uniform' or 'distance' as the used metric to weigh the influence of the found neighbors. If I fit a KNN imputer with the choice 'distance', then I cannot convert the model to onnx.

The error I get is that the metric 'distance' is not supported.

Best regards, Jonatan

@xadupre
Copy link
Collaborator

xadupre commented May 20, 2024

Sorry for the delay, do you have a dummy example I could use to replicate the issue and fix it?

@xadupre xadupre self-assigned this Jun 21, 2024
@github-project-automation github-project-automation bot moved this to Can Fix but Waiting for an Answer in Can Fix Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Can Fix but Waiting for an Answer
Development

No branches or pull requests

2 participants