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

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

Public Methods

Method Description
__construct ( array $criteriaList = [] )
addCriteria ( MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria $criteria )
converged ( array $gradient, array $coefficients ) : boolean

Method Details

__construct() public method

public __construct ( array $criteriaList = [] )
$criteriaList array Array of StoppingCriteria instances

addCriteria() public method

public addCriteria ( MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria $criteria )
$criteria MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria

converged() public method

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