Метод | Описание | |
---|---|---|
__construct ( integer $k = 3, Phpml\Math\Distance $distanceMetric = null ) |
Метод | Описание | |
---|---|---|
predictSample ( array $sample ) : mixed |
Метод | Описание | |
---|---|---|
kNeighborsDistances ( array $sample ) : array |
public __construct ( integer $k = 3, Phpml\Math\Distance $distanceMetric = null ) | ||
$k | integer | |
$distanceMetric | Phpml\Math\Distance | (if null then Euclidean distance as default) |
protected predictSample ( array $sample ) : mixed | ||
$sample | array | |
Результат | mixed |