PHP Class MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\DescentSpy

Inheritance: implements MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria
Datei anzeigen Open project: mcordingley/regression Class Usage Examples

Public Methods

Method Description
__construct ( MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria $criteria, callable $onIteration )
converged ( array $gradient, array $coefficients ) : boolean

Method Details

__construct() public method

public __construct ( MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria $criteria, callable $onIteration )
$criteria MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria
$onIteration callable

converged() public method

public converged ( array $gradient, array $coefficients ) : boolean
$gradient array
$coefficients array
return boolean