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