MCordingley\Regression\Tests\Algorithm\GradientDescent\Gradient\LogisticTest::testCost PHP 메소드

testCost() 공개 메소드

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