MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria::converged PHP 메소드

converged() 공개 메소드

public converged ( array $gradient, array $coefficients ) : boolean
$gradient array
$coefficients array
리턴 boolean
    public function converged(array $gradient, array $coefficients) : bool;

Usage Example

예제 #1
0
 /**
  * @param array $gradient
  * @param array $coefficients
  * @return bool
  */
 public function converged(array $gradient, array $coefficients) : bool
 {
     $steppedGradient = [];
     foreach ($gradient as $i => $slope) {
         $steppedGradient[] = $this->schedule->step($i) * $slope;
     }
     return $this->criteria->converged($steppedGradient, $coefficients);
 }
All Usage Examples Of MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria\StoppingCriteria::converged
StoppingCriteria