MCordingley\Regression\Tests\Algorithm\GradientDescent\Gradient\RegularizedTest::testCost PHP Méthode

testCost() public méthode

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