public class PairedDualLearner extends ExpectationMaximization
Modifier and Type | Field and Description |
---|---|
static int |
ADMM_STEPS_DEFAULT |
static String |
ADMM_STEPS_KEY
Key for Integer property that indicates how many steps of ADMM to run
for each inner objective before each gradient iteration (parameter N in the ICML paper)
|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
static int |
WARMUP_ROUNDS_DEFAULT |
static String |
WARMUP_ROUNDS_KEY
Key for Integer property that indicates how many rounds of paired-dual
learning to run before beginning to update the weights (parameter K in
the ICML paper)
|
emIteration, ITER_DEFAULT, ITER_KEY, iterations, tolerance, TOLERANCE_DEFAULT, TOLERANCE_KEY
AVERAGE_STEPS_DEFAULT, AVERAGE_STEPS_KEY, averageSteps, baseStepSize, CLIP_NEGATIVE_WEIGHTS_DEFAULT, CLIP_NEGATIVE_WEIGHTS_KEY, clipNegativeWeights, CUT_OBJECTIVE_DEFAULT, CUT_OBJECTIVE_KEY, cutObjective, inertia, INERTIA_DEFAULT, INERTIA_KEY, L1_REGULARIZATION_DEFAULT, L1_REGULARIZATION_KEY, l1Regularization, L2_REGULARIZATION_DEFAULT, L2_REGULARIZATION_KEY, l2Regularization, maxNumSteps, NUM_STEPS_DEFAULT, NUM_STEPS_KEY, numSteps, SCALE_GRADIENT_DEFAULT, SCALE_GRADIENT_KEY, SCALE_STEP_SIZE_DEFAULT, SCALE_STEP_SIZE_KEY, scaleGradient, scaleStepSize, STEP_SIZE_DEFAULT, STEP_SIZE_KEY, ZERO_INITIAL_WEIGHTS_DEFAULT, ZERO_INITIAL_WEIGHTS_KEY, zeroInitialWeights
allRules, atomManager, evaluator, EVALUATOR_DEFAULT, EVALUATOR_KEY, expectedIncompatibility, GROUND_RULE_STORE_DEFAULT, GROUND_RULE_STORE_KEY, groundRuleStore, inLatentMPEState, inMPEState, latentGroundRuleStore, latentTermStore, MAX_RANDOM_WEIGHT, MIN_ADMM_STEPS, mutableRules, observedDB, observedIncompatibility, RANDOM_WEIGHTS_DEFAULT, RANDOM_WEIGHTS_KEY, reasoner, REASONER_DEFAULT, REASONER_KEY, rvDB, supportsLatentVariables, TERM_GENERATOR_DEFAULT, TERM_GENERATOR_KEY, TERM_STORE_DEFAULT, TERM_STORE_KEY, termGenerator, termStore, trainingMap
Constructor and Description |
---|
PairedDualLearner(List<Rule> rules,
Database rvDB,
Database observedDB) |
PairedDualLearner(Model model,
Database rvDB,
Database observedDB) |
Modifier and Type | Method and Description |
---|---|
protected void |
computeExpectedIncompatibility()
Compute the incompatibility in the model.
|
protected void |
computeObservedIncompatibility()
Compute the incompatibility in the model using the labels (truth values) from the observed (truth) database.
|
protected void |
doLearn()
Do the actual learning procedure.
|
eStep, mStep
computeRegularizer, computeScalingFactor, getLoss, setBudget
close, computeLatentMPEState, computeLoss, computeMPEState, createAtomManager, getWLA, initGroundModel, initGroundModel, initGroundModel, initLatentGroundModel, learn, postInitGroundModel, setDefaultRandomVariables, setLabeledRandomVariables
public static final String CONFIG_PREFIX
public static final String WARMUP_ROUNDS_KEY
public static final int WARMUP_ROUNDS_DEFAULT
public static final String ADMM_STEPS_KEY
public static final int ADMM_STEPS_DEFAULT
protected void computeExpectedIncompatibility()
WeightLearningApplication
computeExpectedIncompatibility
in class WeightLearningApplication
protected void computeObservedIncompatibility()
WeightLearningApplication
computeObservedIncompatibility
in class WeightLearningApplication
protected void doLearn()
WeightLearningApplication
doLearn
in class ExpectationMaximization
Copyright © 2018 University of California, Santa Cruz. All rights reserved.