Package jdistlib.inference
Class AdaptiveRjRandomWalkKernel
java.lang.Object
jdistlib.inference.AdaptiveRjRandomWalkKernel
- All Implemented Interfaces:
ReversibleJumpWithinModelKernel
public final class AdaptiveRjRandomWalkKernel
extends Object
implements ReversibleJumpWithinModelKernel
Per-model isotropic random walk with warmup-only Robbins-Monro scale adaptation.
-
Constructor Summary
ConstructorsConstructorDescriptionAdaptiveRjRandomWalkKernel(String name, double initialScale, double targetAcceptance) -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplicable(ReversibleJumpState state, ReversibleJumpTarget target) voidname()voidvoidrestoreAdaptation(Map<String, double[]> state) doublescale(long modelId) update(ReversibleJumpState state, double currentLogJoint, ReversibleJumpTarget target, RandomEngine random, boolean warmup)
-
Constructor Details
-
AdaptiveRjRandomWalkKernel
-
-
Method Details
-
name
- Specified by:
namein interfaceReversibleJumpWithinModelKernel
-
applicable
- Specified by:
applicablein interfaceReversibleJumpWithinModelKernel
-
update
public ReversibleJumpWithinModelTransition update(ReversibleJumpState state, double currentLogJoint, ReversibleJumpTarget target, RandomEngine random, boolean warmup) - Specified by:
updatein interfaceReversibleJumpWithinModelKernel
-
scale
public double scale(long modelId) -
adaptationState
- Specified by:
adaptationStatein interfaceReversibleJumpWithinModelKernel
-
restoreAdaptation
- Specified by:
restoreAdaptationin interfaceReversibleJumpWithinModelKernel
-
freezeAdaptation
public void freezeAdaptation()- Specified by:
freezeAdaptationin interfaceReversibleJumpWithinModelKernel
-
resetAdaptation
public void resetAdaptation()- Specified by:
resetAdaptationin interfaceReversibleJumpWithinModelKernel
-