Method | Description | |
---|---|---|
getCoefficients ( ) : array | ||
getIntercept ( ) : float | ||
predictSample ( array $sample ) : mixed | ||
train ( array $samples, array $targets ) |
Method | Description | |
---|---|---|
computeCoefficients ( ) | coefficient(b) = (X'X)-1X'Y. | |
getSamplesMatrix ( ) : |
Add one dimension for intercept calculation. | |
getTargetsMatrix ( ) : |
public predictSample ( array $sample ) : mixed | ||
$sample | array | |
return | mixed |