knn NNDescent

new NNDescent(elementsopt, metricopt, Kopt, rhoopt, deltaopt, seedopt) → {NNDescent}

Parameters:
NameTypeAttributesDefaultDescription
elementsArray.<*><optional>

called V in paper.

metricfunction<optional>
euclidean

called sigma in paper.

KNumber<optional>
10

number of neighbors search should return.

rhoNumber<optional>
.8

sample rate.

deltaNumber<optional>
0.0001

precision parameter.

seedNumber<optional>
1987

seed for the random number generator.

Returns:
Type: 
NNDescent

Methods

add(elements)

Parameters:
NameTypeDescription
elementsArray
Parameters:
NameTypeDefaultDescription
x*
k*5
To Do
  • not implemented yet