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));
    }