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