public class MaxPiecewisePseudoLikelihood extends VotedPerceptron
averageSteps, baseStepSize, clipNegativeWeights, cutObjective, expectedIncompatibility, inertia, l1Regularization, l2Regularization, maxNumSteps, numSteps, observedIncompatibility, scaleGradient, scaleStepSize, zeroInitialWeights
allRules, evaluator, inference, inMPEState, mutableRules, observedDB, rvDB, trainingMap
Constructor and Description |
---|
MaxPiecewisePseudoLikelihood(List<Rule> rules,
Database rvDB,
Database observedDB) |
MaxPiecewisePseudoLikelihood(Model model,
Database rvDB,
Database observedDB) |
Modifier and Type | Method and Description |
---|---|
protected void |
computeExpectedIncompatibility()
Compute the expected incompatibility using the piecewisepseudolikelihood.
|
double |
computeLoss()
Internal method for computing the loss at the current point before taking a step.
|
protected void |
computeObservedIncompatibility()
Compute the incompatibility in the model using the labels (truth values) from the observed (truth) database.
|
protected void |
postInitGroundModel()
A convenient place for children to do additional ground model initialization.
|
void |
setBudget(double budget)
Set a budget (give as a proportion of the max budget).
|
computeRegularizer, computeScalingFactor, doLearn, getLoss, setDefaultRandomVariables, setLabeledRandomVariables
close, computeMPEState, getInferenceApplication, getWLA, initGroundModel, initGroundModel, learn
public MaxPiecewisePseudoLikelihood(Model model, Database rvDB, Database observedDB)
protected void postInitGroundModel()
WeightLearningApplication
postInitGroundModel
in class VotedPerceptron
protected void computeExpectedIncompatibility()
computeExpectedIncompatibility
in class VotedPerceptron
public double computeLoss()
VotedPerceptron
computeLoss
in class VotedPerceptron
protected void computeObservedIncompatibility()
VotedPerceptron
computeObservedIncompatibility
in class VotedPerceptron
public void setBudget(double budget)
WeightLearningApplication
setBudget
in class VotedPerceptron
Copyright © 2020 University of California, Santa Cruz. All rights reserved.