public class AutomatonWeighted extends RegularizedKLRuleWeighting
ALMOST_ZERO
Constructor and Description |
---|
AutomatonWeighted(TreeAutomaton basis,
int regularizationExponent,
double regularizationDivisor,
LearningRate rate)
Creates a new instance that weights trees according to the rule weights
from the given automaton and uses the automaton as the basis for sampling.
|
Modifier and Type | Method and Description |
---|---|
double |
getLogTargetProbability(Tree<Rule> sample)
Returns the unnormalized probability of the given tree in the target
distribution.
|
adapt, getAutomaton, getLogProbability, getLogProbability, getNumberOfStartStates, getRuleByNumber, getRuleNumber, getStartStateByNumber, getStartStateNumber, getStateStartLogProbability, prepareProbability, prepareStartProbability, reset
public AutomatonWeighted(TreeAutomaton basis, int regularizationExponent, double regularizationDivisor, LearningRate rate)
basis
- regularizationExponent
- regularizationDivisor
- rate
- public double getLogTargetProbability(Tree<Rule> sample)
RuleWeighting
Copyright © 2017. All rights reserved.