Skip to content

[FEA] Support weights = distance for KNeighbors #7112

@ncclementi

Description

@ncclementi

Is your feature request related to a problem? Please describe.

While running some examples for Autogluon scikit learn estimators, I noticed that we only support weights="uniform" for KN see

weights : string (default='uniform')
Sample weights to use. Currently, only the uniform strategy is
supported.

I'm interested in knowing if it's possible to support weights="distance" and what would that take in terms of effort.

Additional context
This is part of and effort to have a good integration with Autolguon.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions