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