Optimizer#
- class empulse.optimizers.Optimizer[source]#
Abstract base class for all logit model optimizers.
- Parameters:
- objective
LogitObjective Prepared objective exposing
logit_loss,logit_gradient, andlogit_loss_gradientmethods.- Xndarray of shape (n_samples, n_features)
Feature matrix (used only to determine the number of parameters).
- objective
- Returns:
- result
scipy.optimize.OptimizeResult Optimization result with at least the following fields:
x– final weight vectorfun– final loss valuenit– number of iterations performedsuccess–Trueif a convergence criterion was metmessage– human-readable status string
- result
- abstractmethod __call__(objective, X, **kwargs)[source]#
Run the optimization and return an
OptimizeResult.