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

step() public method

public step ( integer $featureIndex ) : float
$featureIndex integer
return float
    public function step(int $featureIndex) : float
    {
        return $this->stepSize / sqrt($this->eta + $this->history[$featureIndex]);
    }

Usage Example

Exemplo n.º 1
0
 public function testStep()
 {
     $schedule = new RmsProp(0.9, 0.01, 1.0E-6);
     $schedule->update([1.0]);
     static::assertEquals(0.00999999500000375, $schedule->step(0));
 }