public abstract class BaseGridSearch extends WeightLearningApplication
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
protected String |
currentLocation
The current location we are investigating.
|
protected int |
maxNumLocations
The number of actual possible locations.
|
protected int |
numLocations
The number of locations we will search.
|
protected Map<String,Double> |
objectives
The objectives at each location.
|
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 |
---|
BaseGridSearch(List<Rule> rules,
Database rvDB,
Database observedDB) |
BaseGridSearch(Model model,
Database rvDB,
Database observedDB) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
chooseNextLocation()
Choose the next location we will search.
|
protected void |
doLearn()
Do the actual learning procedure.
|
protected abstract void |
getWeights(double[] weights)
Get the weight configuration at the current location.
|
protected double |
inspectLocation(double[] weights)
Inspect the location defined by the given weights and give back its score (lower is better).
|
close, computeExpectedIncompatibility, computeLatentMPEState, computeLoss, computeMPEState, computeObservedIncompatibility, createAtomManager, getWLA, initGroundModel, initGroundModel, initGroundModel, initLatentGroundModel, learn, postInitGroundModel, setBudget, setDefaultRandomVariables, setLabeledRandomVariables
public static final String CONFIG_PREFIX
protected String currentLocation
protected int maxNumLocations
protected int numLocations
protected void doLearn()
WeightLearningApplication
doLearn
in class WeightLearningApplication
protected double inspectLocation(double[] weights)
protected abstract void getWeights(double[] weights)
protected abstract boolean chooseNextLocation()
Copyright © 2018 University of California, Santa Cruz. All rights reserved.