Class GmmModel
java.lang.Object
com.knezevic.edaf.v3.models.continuous.GmmModel
- All Implemented Interfaces:
Model<RealVector>
Diagonal-covariance Gaussian Mixture Model (GMM) with EM fitting.
The model estimates:
p(x) = Σ_k π_k N(x | μ_k, diag(σ_k²))by alternating expectation/maximization steps for a fixed number of iterations. Sampling first draws a component index from
π and then
samples each dimension from its corresponding diagonal Gaussian.-
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
-
GmmModel
public GmmModel(int components, int emIterations, double minVariance) - Parameters:
components- number of mixture componentsemIterations- number of EM iterations per fitminVariance- floor for per-dimension component variance
-
-
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>
-