9 def __init__(self, learning_rate: float = 0.001, momentum: float = 0.0) ->
None:
11 Initialize the SGD optimizer.
14 learning_rate (float): The learning rate for optimization.
15 momentum (float): Momentum factor (default: 0.0).
20 raise NotImplementedError(
21 "Momentum is not supported in the current version of SGD.")
22 self.momentum: float = momentum
23 self.velocity: Optional[float] =
None