PHP Class MCordingley\Regression\Algorithm\GradientDescent\MiniBatch

Inheritance: extends GradientDescent
Exibir arquivo Open project: mcordingley/regression

Public Methods

Method Description
__construct ( MCordingley\Regression\Algorithm\GradientDescent\Gradient\Gradient $gradient, MCordingley\Regression\Algorithm\GradientDescent\Schedule\Schedule $schedule, MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria $stoppingCriteria, integer $batchSize )

Protected Methods

Method Description
calculateGradient ( Observations $observations, array $coefficients ) : array

Method Details

__construct() public method

public __construct ( MCordingley\Regression\Algorithm\GradientDescent\Gradient\Gradient $gradient, MCordingley\Regression\Algorithm\GradientDescent\Schedule\Schedule $schedule, MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria $stoppingCriteria, integer $batchSize )
$gradient MCordingley\Regression\Algorithm\GradientDescent\Gradient\Gradient
$schedule MCordingley\Regression\Algorithm\GradientDescent\Schedule\Schedule
$stoppingCriteria MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria
$batchSize integer

calculateGradient() protected method

protected calculateGradient ( Observations $observations, array $coefficients ) : array
$observations MCordingley\Regression\Observations
$coefficients array
return array