public class GroundSliceRandOM extends SliceRandOM
SliceRandOM
learning algorithm that samples a different weight
for each GroundCompatibilityKernel
but all those with the same parent
CompatibilityKernel
share a mean and a variance.Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
protected int[] |
cumulativeGroundings |
protected double |
current |
protected double[] |
currentWeights |
protected GroundCompatibilityKernel[] |
gks |
protected double |
l |
protected int |
maxNumSteps |
protected int |
nextGroundKernel |
protected double[] |
previousWeights |
static String |
PROPOSAL_VARIANCE
Key for positive double to be used as variance in proposal distribution
|
static double |
PROPOSAL_VARIANCE_DEFAULT
Default value for PROPOSAL_VARIANCE
|
protected double |
proposalVariance |
protected double |
r |
protected double |
stepSize |
protected double[] |
sum |
protected double[] |
sumSq |
BURN_IN_DEFAULT, BURN_IN_KEY, burnIn, CHANGE_THRESHOLD_DEFAULT, CHANGE_THRESHOLD_KEY, changeThresholdFactor, INITIAL_VARIANCE_DEFAULT, INITIAL_VARIANCE_KEY, initialVariance, kernelMeans, kernelVariances, MAX_ITER_DEFAULT, MAX_ITER_KEY, maxIter, NUM_SAMPLES_DEFAULT, NUM_SAMPLES_KEY, numSamples, OBSERVATION_DENSITY_SCALE_DEFAULT, OBSERVATION_DENSITY_SCALE_KEY, observationScale, rand, sliceHeight
config, immutableKernels, kernels, model, observedDB, reasoner, REASONER_DEFAULT, REASONER_KEY, rvDB, trainingMap
Constructor and Description |
---|
GroundSliceRandOM(Model model,
Database rvDB,
Database observedDB,
ConfigBundle config) |
Modifier and Type | Method and Description |
---|---|
protected void |
doLearn() |
protected void |
finishRound() |
protected double |
getLogLikelihoodSampledWeights() |
protected int |
getNumStepsPerSample() |
protected void |
prepareForRound() |
protected void |
processSample() |
protected double |
stepIn()
Samples a point from the slice inside the region.
|
protected void |
stepOut()
Finds a region containing most or all of the slice at the current
value of
SliceRandOM.sliceHeight . |
getLogLikelihoodObservations
cleanUpGroundModel, close, initGroundModel, learn, setLabeledRandomVariables
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final String CONFIG_PREFIX
ConfigManager
,
Constant Field Valuespublic static final String PROPOSAL_VARIANCE
public static final double PROPOSAL_VARIANCE_DEFAULT
protected GroundCompatibilityKernel[] gks
protected int[] cumulativeGroundings
protected double[] currentWeights
protected double[] previousWeights
protected double[] sum
protected double[] sumSq
protected double proposalVariance
protected int nextGroundKernel
protected double current
protected double l
protected double r
protected final double stepSize
protected final int maxNumSteps
public GroundSliceRandOM(Model model, Database rvDB, Database observedDB, ConfigBundle config)
protected void doLearn()
doLearn
in class SliceRandOM
protected void prepareForRound()
prepareForRound
in class SliceRandOM
protected int getNumStepsPerSample()
getNumStepsPerSample
in class SliceRandOM
protected void stepOut()
SliceRandOM
SliceRandOM.sliceHeight
.stepOut
in class SliceRandOM
protected double stepIn()
SliceRandOM
stepIn
in class SliceRandOM
protected double getLogLikelihoodSampledWeights()
getLogLikelihoodSampledWeights
in class SliceRandOM
protected void processSample()
processSample
in class SliceRandOM
protected void finishRound()
finishRound
in class SliceRandOM