public class GridSearch extends BaseGridSearch
Modifier and Type | Field and Description |
---|---|
static String |
DELIM
The delimiter to separate rule weights (and lication ids).
|
protected double[] |
possibleWeights |
currentLocation, maxNumLocations, numLocations, objectives
allRules, evaluator, inference, inMPEState, mutableRules, observedDB, rvDB, trainingMap
Constructor and Description |
---|
GridSearch(List<Rule> rules,
Database rvDB,
Database observedDB) |
GridSearch(Model model,
Database rvDB,
Database observedDB) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
chooseNextLocation()
Choose the next location we will search.
|
protected void |
getWeights(double[] weights)
Get the weight configuration at the current location.
|
doLearn, inspectLocation
close, computeMPEState, getInferenceApplication, getWLA, initGroundModel, initGroundModel, learn, postInitGroundModel, setBudget
public static final String DELIM
protected final double[] possibleWeights
protected void getWeights(double[] weights)
BaseGridSearch
getWeights
in class BaseGridSearch
protected boolean chooseNextLocation()
BaseGridSearch
chooseNextLocation
in class BaseGridSearch
Copyright © 2020 University of California, Santa Cruz. All rights reserved.