Class KdeModel
java.lang.Object
com.knezevic.edaf.v3.models.continuous.KdeModel
- All Implemented Interfaces:
Model<RealVector>
Kernel Density Estimation (KDE) model with Gaussian kernels.
The elite set is stored as kernel centers. Per-dimension bandwidth is estimated from sample standard deviation with Silverman-like scaling:
h_d = scale * n^(-1/(D+4)) * std_dand clipped by
minBandwidth. Sampling draws one elite center at
random and perturbs it with Gaussian noise scaled by h_d.-
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
-
KdeModel
public KdeModel(double bandwidthScale, double minBandwidth) - Parameters:
bandwidthScale- multiplicative factor applied to Silverman bandwidthminBandwidth- minimal per-dimension kernel width
-
-
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>
-