Class HierarchicalBoaModel
java.lang.Object
com.knezevic.edaf.v3.models.discrete.HierarchicalBoaModel
Hierarchical BOA-style sparse Bayesian-network model for bitstrings.
Structure learning uses pairwise mutual information and variable-entropy ordering. Each variable can have at most one parent, yielding a tractable conditional model:
p(x) = product_i p(x_i | x_parent(i))where root variables use marginals
p(x_i).-
Constructor Summary
ConstructorsConstructorDescriptionHierarchicalBoaModel(double smoothing, double minMutualInformation, double learningRate) -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]Exposes diagnostics (entropy, covariance condition number, etc.).voidfit(List<Individual<BitString>> selected, Representation<BitString> representation, RngStream rng) Fits model parameters from selected individuals.double[]name()Model identifier used in configuration and listing commands.int[]order()int[]parent()voidrestore(int[] order, int[] parent, double[] marginalOne, double[][] conditionalOne) Restores model state from checkpoint payload.sample(int count, Representation<BitString> representation, Problem<BitString> problem, ConstraintHandling<BitString> constraintHandling, RngStream rng) Samples new genotypes from model.
-
Constructor Details
-
HierarchicalBoaModel
public HierarchicalBoaModel(double smoothing, double minMutualInformation, double learningRate)
-
-
Method Details
-
name
-
fit
public void fit(List<Individual<BitString>> selected, Representation<BitString> representation, RngStream rng) Description copied from interface:ModelFits model parameters from selected individuals. -
sample
public List<BitString> sample(int count, Representation<BitString> representation, Problem<BitString> problem, ConstraintHandling<BitString> constraintHandling, RngStream rng) Description copied from interface:ModelSamples new genotypes from model. -
diagnostics
Description copied from interface:ModelExposes diagnostics (entropy, covariance condition number, etc.).- Specified by:
diagnosticsin interfaceModel<BitString>
-
order
public int[] order() -
parent
public int[] parent() -
marginalOne
public double[] marginalOne() -
conditionalOne
public double[][] conditionalOne() -
restore
public void restore(int[] order, int[] parent, double[] marginalOne, double[][] conditionalOne) Restores model state from checkpoint payload.
-