public class InitialWeightRandomGridSearch extends RandomGridSearch
CONFIG_PREFIX, MAX_LOCATIONS_DEFAULT, MAX_LOCATIONS_KEY
DELIM, POSSIBLE_WEIGHTS_DEFAULT, POSSIBLE_WEIGHTS_KEY, possibleWeights
currentLocation, maxNumLocations, numLocations, objectives
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 |
---|
InitialWeightRandomGridSearch(List<Rule> rules,
WeightLearningApplication internalWLA,
Database rvDB,
Database observedDB) |
InitialWeightRandomGridSearch(Model model,
WeightLearningApplication internalWLA,
Database rvDB,
Database observedDB) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases all resources used by this ModelApplication.
|
protected double |
inspectLocation(double[] weights)
Inspect the location defined by the given weights and give back its score (lower is better).
|
protected void |
postInitGroundModel()
A convenient place for children to do additional ground model initialization.
|
chooseNextLocation, randomConfiguration, setBudget
getWeights
doLearn
computeExpectedIncompatibility, computeLatentMPEState, computeLoss, computeMPEState, computeObservedIncompatibility, createAtomManager, getWLA, initGroundModel, initGroundModel, initGroundModel, initLatentGroundModel, learn, setDefaultRandomVariables, setLabeledRandomVariables
public InitialWeightRandomGridSearch(Model model, WeightLearningApplication internalWLA, Database rvDB, Database observedDB)
public InitialWeightRandomGridSearch(List<Rule> rules, WeightLearningApplication internalWLA, Database rvDB, Database observedDB)
protected void postInitGroundModel()
WeightLearningApplication
postInitGroundModel
in class WeightLearningApplication
protected double inspectLocation(double[] weights)
BaseGridSearch
inspectLocation
in class BaseGridSearch
public void close()
ModelApplication
close
in interface ModelApplication
close
in class WeightLearningApplication
Copyright © 2018 University of California, Santa Cruz. All rights reserved.