MCordingley\Regression\Algorithm\GradientDescent\Schedule\Schedule::step PHP Method

step() public method

public step ( integer $featureIndex ) : float
$featureIndex integer
return 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