Property | Type | Description | |
---|---|---|---|
$gradient | MCordingley\Regression\Algorithm\GradientDescent\Gradient\Gradient |
Method | Description | |
---|---|---|
__construct ( MCordingley\Regression\Algorithm\GradientDescent\Gradient\Gradient $gradient, MCordingley\Regression\Algorithm\GradientDescent\Schedule\Schedule $schedule, MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria $stoppingCriteria ) | ||
regress ( |
Method | Description | |
---|---|---|
calculateGradient ( |
Method | Description | |
---|---|---|
updateCoefficients ( array $coefficients, array $gradient ) : array |
public __construct ( MCordingley\Regression\Algorithm\GradientDescent\Gradient\Gradient $gradient, MCordingley\Regression\Algorithm\GradientDescent\Schedule\Schedule $schedule, MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria $stoppingCriteria ) | ||
$gradient | MCordingley\Regression\Algorithm\GradientDescent\Gradient\Gradient | |
$schedule | MCordingley\Regression\Algorithm\GradientDescent\Schedule\Schedule | |
$stoppingCriteria | MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria |
abstract protected calculateGradient ( |
||
$observations | ||
$coefficients | array | |
return | array |