Class SNesModel
java.lang.Object
com.knezevic.edaf.v3.models.continuous.SNesModel
- All Implemented Interfaces:
Model<RealVector>
Separable Natural Evolution Strategies (sNES) model.
State parameters are per-dimension mean/scale and therefore separable:
x_d = μ_d + σ_d z_d, z_d ~ N(0,1)Update uses rank-based utilities and natural-gradient style statistics:
∇_μ ∝ Σ u_k z_k ∇_σ ∝ Σ u_k (z_k² - 1)with exponential update for
σ to keep positivity.-
Constructor Summary
ConstructorsConstructorDescriptionSNesModel(double etaMean, double etaSigma, double minSigma, double maxSigma) -
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
-
SNesModel
public SNesModel(double etaMean, double etaSigma, double minSigma, double maxSigma) - Parameters:
etaMean- learning rate for mean parametersetaSigma- learning rate for log-scale updatesminSigma- minimum standard deviationmaxSigma- maximum standard deviation
-
-
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>
-