MCordingley\Regression\Tests\Algorithm\GradientDescent\Gradient\RegularizedTest::testCost PHP Method

testCost() public method

public testCost ( )
    public function testCost()
    {
        $gradient = $this->makeGradient();
        static::assertEquals(1.5, $gradient->cost([1.0, 1.0], [2.0, 2.0], 3.0));
    }