MCordingley\Regression\Algorithm\GradientDescent\Schedule\Schedule::step PHP 메소드

step() 공개 메소드

public step ( integer $featureIndex ) : float
$featureIndex integer
리턴 float
    public function step(int $featureIndex) : float;

Usage Example

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