Opened 4 months ago

Last modified 7 days ago

#2942 assigned enhancement

KNN-Regression/Classification should allow "self" points

Reported by: bwerth Owned by: msemenki
Priority: medium Milestone: HeuristicLab 3.3.16
Component: Algorithms.DataAnalysis Version:
Keywords: kNN, DataAnalysis Cc:,


In the prediction of the kNN-Model it is currently disallowed to utilize data points with zero distance to the query point, which is not only counter intuitive but might lead to worse prediction results (especially in cases where the features are de facto ordinal/integers and zero distances are common). The inclusion of zero-distance points should at least be optional. This however requires an alteration in the way weights are assigned to neighboring points (currently 1/distance which would cause division-by-zero exceptions).

Change History (3)

comment:1 Changed 4 months ago by bwerth

  • Status changed from new to accepted

comment:2 Changed 7 days ago by gkronber

  • Cc added
  • Owner changed from bwerth to msemenki
  • Status changed from accepted to assigned

comment:3 Changed 7 days ago by gkronber

bwerth has already prepared a document describing the necessary steps for implementation and will gladly help.

Last edited 7 days ago by gkronber (previous) (diff)
Note: See TracTickets for help on using tickets.