public class InitialWeightRankSearch extends RankSearch
DELIM
currentLocation, maxNumLocations, numLocations, objectives
allRules, evaluator, inference, inMPEState, mutableRules, observedDB, rvDB, trainingMap
Constructor and Description |
---|
InitialWeightRankSearch(List<Rule> rules,
Database rvDB,
Database observedDB) |
InitialWeightRankSearch(List<Rule> rules,
WeightLearningApplication internalWLA,
Database rvDB,
Database observedDB)
The WeightLearningApplication should not have had initGroundModel() called yet.
|
InitialWeightRankSearch(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, getWeights
doLearn
computeMPEState, getInferenceApplication, getWLA, initGroundModel, initGroundModel, learn, setBudget
public InitialWeightRankSearch(Model model, WeightLearningApplication internalWLA, Database rvDB, Database observedDB)
public InitialWeightRankSearch(List<Rule> rules, Database rvDB, Database observedDB)
public InitialWeightRankSearch(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 © 2020 University of California, Santa Cruz. All rights reserved.