public class ContinuousRandomGridSearch extends BaseGridSearch
Modifier and Type | Field and Description |
---|---|
static double |
BASE_WEIGHT_DEFAULT |
static String |
BASE_WEIGHT_KEY
The base weight of a rule.
|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
static int |
MAX_LOCATIONS_DEFAULT |
static String |
MAX_LOCATIONS_KEY
The max number of locations to search.
|
static int |
SCALE_FACTOR |
static int |
SCALE_ORDERS_DEFAULT |
static String |
SCALE_ORDERS_KEY
If greater than 0, then various different scaled versions of the weights will be tested.
|
static boolean |
UNIFORM_BASE_DEFAULT |
static String |
UNIFORM_BASE_KEY
If true, then use the same base weight as the Gaussian's mean when sampling the weight.
|
static double |
VARIANCE_DEFAULT |
static String |
VARIANCE_KEY
The variance used when sampling the weights from a Gaussian.
|
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 |
---|
ContinuousRandomGridSearch(List<Rule> rules,
Database rvDB,
Database observedDB) |
ContinuousRandomGridSearch(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.
|
protected void |
postInitGroundModel()
A convenient place for children to do additional ground model initialization.
|
doLearn, inspectLocation
close, computeExpectedIncompatibility, computeLatentMPEState, computeLoss, computeMPEState, computeObservedIncompatibility, createAtomManager, getGroundRuleStore, getWLA, initGroundModel, initGroundModel, initGroundModel, initLatentGroundModel, learn, setBudget, setDefaultRandomVariables, setLabeledRandomVariables
public static final String CONFIG_PREFIX
public static final String MAX_LOCATIONS_KEY
public static final int MAX_LOCATIONS_DEFAULT
public static final String BASE_WEIGHT_KEY
public static final double BASE_WEIGHT_DEFAULT
public static final String VARIANCE_KEY
public static final double VARIANCE_DEFAULT
public static final String UNIFORM_BASE_KEY
public static final boolean UNIFORM_BASE_DEFAULT
public static final String SCALE_ORDERS_KEY
public static final int SCALE_ORDERS_DEFAULT
public static final int SCALE_FACTOR
public ContinuousRandomGridSearch(Model model, Database rvDB, Database observedDB)
protected void postInitGroundModel()
WeightLearningApplication
postInitGroundModel
in class WeightLearningApplication
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.