Class XNesModel
java.lang.Object
com.knezevic.edaf.v3.models.continuous.XNesModel
- All Implemented Interfaces:
Model<RealVector>
Exponential NES (xNES) full-covariance model.
xNES performs natural-gradient updates in a Gaussian search distribution:
x = μ + A z, z ~ N(0, I), Σ = A Aᵀusing rank-based utilities to estimate gradients for both location and covariance geometry. This implementation applies the equivalent covariance step in matrix space and then re-factorizes with Cholesky decomposition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExposes diagnostics (entropy, covariance condition number, etc.).voidfit(List<Individual<RealVector>> selected, Representation<RealVector> representation, RngStream rng) Fits model parameters from selected individuals.name()Model identifier used in configuration and listing commands.sample(int count, Representation<RealVector> representation, Problem<RealVector> problem, ConstraintHandling<RealVector> constraintHandling, RngStream rng) Samples new genotypes from model.
-
Constructor Details
-
XNesModel
public XNesModel(double etaMean, double etaCovariance, double jitter) - Parameters:
etaMean- learning rate for mean updateetaCovariance- learning rate for covariance updatejitter- minimum diagonal regularization
-
-
Method Details
-
name
Description copied from interface:ModelModel identifier used in configuration and listing commands.- Specified by:
namein interfaceModel<RealVector>
-
fit
public void fit(List<Individual<RealVector>> selected, Representation<RealVector> representation, RngStream rng) Description copied from interface:ModelFits model parameters from selected individuals.- Specified by:
fitin interfaceModel<RealVector>
-
sample
public List<RealVector> sample(int count, Representation<RealVector> representation, Problem<RealVector> problem, ConstraintHandling<RealVector> constraintHandling, RngStream rng) Description copied from interface:ModelSamples new genotypes from model.- Specified by:
samplein interfaceModel<RealVector>
-
diagnostics
Description copied from interface:ModelExposes diagnostics (entropy, covariance condition number, etc.).- Specified by:
diagnosticsin interfaceModel<RealVector>
-