public class GridSearch extends BaseGridSearch
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
static String |
DELIM
The delimiter to separate rule weights (and lication ids).
|
static String |
POSSIBLE_WEIGHTS_DEFAULT |
static String |
POSSIBLE_WEIGHTS_KEY
A comma-separated list of possible weights.
|
protected double[] |
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 |
---|
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, computeExpectedIncompatibility, computeLatentMPEState, computeLoss, computeMPEState, computeObservedIncompatibility, createAtomManager, getWLA, initGroundModel, initGroundModel, initGroundModel, initLatentGroundModel, learn, postInitGroundModel, setBudget, setDefaultRandomVariables, setLabeledRandomVariables
public static final String CONFIG_PREFIX
public static final String POSSIBLE_WEIGHTS_KEY
public static final String POSSIBLE_WEIGHTS_DEFAULT
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 © 2018 University of California, Santa Cruz. All rights reserved.