Method#
- class pylit.core.data_classes.Method(name, f, grad_f, solution, lr)#
Bases:
object
Represents a method for solving an optimization problem.
- Parameters:
name (
str
) – Name of the optimization method.f (
callable
) – The objective function to minimize.grad_f (
callable
) – Function computing the gradient off
.solution (
callable
) – Routine that computes the solution directly, without the non-negative constraint, if available.lr (
callable
) – Learning rate function that returns a step size, depending on the regression matrix R.