Changeset 16490
- Timestamp:
- 01/03/19 18:00:19 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2942_KNNRegressionClassification/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs
r16488 r16490 209 209 } 210 210 if (selfMatch) { 211 // weights for neighbours are 1/d. 212 // override distances (=0) of exact matches using 1% of the distance of the next closest non-self-match neighbour -> selfmatches weight 100x more than the next closest neighbor. 213 // if all k neighbours are selfmatches then they all have weight 0.01. 211 214 double minDist = dists[0] + 1; 212 215 for (int i = 0; i < numNeighbours; i++) {
Note: See TracChangeset
for help on using the changeset viewer.