Class PlackettLuceModel
java.lang.Object
com.knezevic.edaf.v3.models.permutation.PlackettLuceModel
- All Implemented Interfaces:
Model<PermutationVector>
Plackett-Luce model for permutations.
Each item i has non-negative weight w_i. A permutation is
generated sequentially by sampling one item at a time from the remaining set:
P(i chosen at step k) = w_i / Σ_{j in remaining} w_j
Weights are estimated from elite position scores, then normalized.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExposes diagnostics (entropy, covariance condition number, etc.).voidfit(List<Individual<PermutationVector>> selected, Representation<PermutationVector> representation, RngStream rng) Fits model parameters from selected individuals.name()Model identifier used in configuration and listing commands.sample(int count, Representation<PermutationVector> representation, Problem<PermutationVector> problem, ConstraintHandling<PermutationVector> constraintHandling, RngStream rng) Samples new genotypes from model.
-
Constructor Details
-
PlackettLuceModel
public PlackettLuceModel()
-
-
Method Details
-
name
Description copied from interface:ModelModel identifier used in configuration and listing commands.- Specified by:
namein interfaceModel<PermutationVector>
-
fit
public void fit(List<Individual<PermutationVector>> selected, Representation<PermutationVector> representation, RngStream rng) Description copied from interface:ModelFits model parameters from selected individuals.- Specified by:
fitin interfaceModel<PermutationVector>
-
sample
public List<PermutationVector> sample(int count, Representation<PermutationVector> representation, Problem<PermutationVector> problem, ConstraintHandling<PermutationVector> constraintHandling, RngStream rng) Description copied from interface:ModelSamples new genotypes from model.- Specified by:
samplein interfaceModel<PermutationVector>
-
diagnostics
Description copied from interface:ModelExposes diagnostics (entropy, covariance condition number, etc.).- Specified by:
diagnosticsin interfaceModel<PermutationVector>
-