Méthode | Description | |
---|---|---|
__construct ( integer $k = 3, Phpml\Math\Distance $distanceMetric = null ) |
Méthode | Description | |
---|---|---|
predictSample ( array $sample ) : mixed |
Méthode | Description | |
---|---|---|
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 | |
Résultat | mixed |