GD¶
- class gob.optimizers.misc.GD.GD(bounds, n_step=1000, step_size=0.001, verbose=False)¶
Bases:
OptimizerThe gradient descent optimizer.
- Parameters:
bounds (ndarray) – The bounds of the search space.
n_step (int) – The number of steps to take.
step_size (float) – The step size of the gradient
verbose (bool) – Whether to print information about the optimization process.
- minimize(f)¶
Minimize a function using the optimizer.
- Parameters:
f (Function) – The objective function.
- Returns:
The minimum point and the minimum value.
- Return type:
pair