torch_numopt.objective#

Defines the objective function interface and a supervised learning implementation.

The ObjectiveFunction abstract class provides the core abstraction for optimization: it wraps a loss function, handles parameter storage, and manages batched evaluation. The SupervisedLearningObjective specializes it for common machine learning tasks with data batching.

Classes

ObjectiveFunction(params, optimizer[, batched])

Abstract base class for an objective (loss) function.

SupervisedLearningObjective(model, loss_fn, ...)

Objective function for supervised learning problems.