Package jdistlib.inference
Class SparseSubsetRjSampler
java.lang.Object
jdistlib.inference.SparseSubsetRjSampler
Allocation-conscious add/drop/swap RJMCMC for very large sparse candidate universes.
-
Constructor Summary
ConstructorsConstructorDescriptionSparseSubsetRjSampler(SparseCandidateProposal candidates, SparseCoefficientProposal coefficients, double initialWithinScale, double targetWithinAcceptance) SparseSubsetRjSampler(SparseCandidateProposal candidates, SparseCoefficientProposal coefficients, double initialWithinScale, double targetWithinAcceptance, double[] moveWeights) -
Method Summary
Modifier and TypeMethodDescriptionresume(SparseSubsetTarget target, SparseSubsetCheckpoint checkpoint, SparseSubsetSamplingOptions options) sample(SparseSubsetTarget target, SparseSubsetState initialState, SparseSubsetSamplingOptions options, RandomEngine random)
-
Constructor Details
-
SparseSubsetRjSampler
public SparseSubsetRjSampler(SparseCandidateProposal candidates, SparseCoefficientProposal coefficients, double initialWithinScale, double targetWithinAcceptance) -
SparseSubsetRjSampler
public SparseSubsetRjSampler(SparseCandidateProposal candidates, SparseCoefficientProposal coefficients, double initialWithinScale, double targetWithinAcceptance, double[] moveWeights)
-
-
Method Details
-
sample
public SparseSubsetResult sample(SparseSubsetTarget target, SparseSubsetState initialState, SparseSubsetSamplingOptions options, RandomEngine random) -
resume
public SparseSubsetResult resume(SparseSubsetTarget target, SparseSubsetCheckpoint checkpoint, SparseSubsetSamplingOptions options)
-