MCordingley\Regression\Tests\Algorithm\GradientDescent\Gradient\LinearTest::testCost PHP Метод

testCost() публичный Метод

public testCost ( )
    public function testCost()
    {
        $gradient = new Linear(2);
        static::assertEquals(1.0, $gradient->cost([1.0], [2.0], 3.0));
    }