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

step() public method

public step ( integer $featureIndex ) : float
$featureIndex integer
return float
    public function step(int $featureIndex) : float
    {
        return $this->stepSize;
    }

Usage Example

コード例 #1
0
ファイル: FixedTest.php プロジェクト: mcordingley/regression
 public function testStep()
 {
     $schedule = new Fixed(1.0);
     $schedule->update([1.0]);
     static::assertEquals(1.0, $schedule->step(0));
 }