private function updateCoefficients(array $coefficients, array $gradient) : array { foreach ($gradient as $i => $slope) { $coefficients[$i] -= $this->schedule->step($i) * $slope; } return $coefficients; }