Skip to content

kNN: Optimal k #3

@bdiptesh

Description

@bdiptesh

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

Describe the solution you'd like
kNN module for both classification and regression. Determine optimal k.

Methods:

  1. Classification
  2. Regression

Parameters:

  1. Euclidean
  2. Cosine
  3. Majority voting
  4. Weighted voting

Expected input

df: pandas.DataFrame
y_var: List[str]
x_var: List[str]
method: Union[str]
param: Dict

Expected API

fit
predict

Acceptance criteria

  • Integration tests

Tasks

  • Define integration tests
  • First pass implementation of kNN
  • Modular implementation

Metadata

Metadata

Labels

featureNew feature or requeststatsStatisticstestsIntegration/Unit tests

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions