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