<?php

namespace mcordingley\Regression\Tests\Algorithm\GradientDescent\Schedule;

use mcordingley\Regression\Algorithm\GradientDescent\Schedule\Adagrad;
use PHPUnit_Framework_TestCase;

class AdagradTest extends PHPUnit_Framework_TestCase
{
    public function testStep()
    {
        $schedule = new Adagrad(0.01, 0.000001);
        $schedule->update([1.0]);
        static::assertEquals(0.0099999900000100009, $schedule->step(0));
    }
}

Test the Adagrad gradient schedule.
Test the Adagrad gradient schedule.
