public class ModelPredicate extends StandardPredicate
Modifier and Type | Field and Description |
---|---|
protected SupportingModel |
model |
Modifier | Constructor and Description |
---|---|
protected |
ModelPredicate(String name,
ConstantType[] types,
SupportingModel model) |
Modifier and Type | Method and Description |
---|---|
void |
fit() |
static ModelPredicate |
get(String name)
The an existing standard predicate (or null if none with this name exists).
|
static ModelPredicate |
get(String name,
SupportingModel model,
ConstantType... types)
Get a predicate if one already exists, othereise create a new one.
|
float |
getValue(RandomVariableAtom atom) |
void |
loadModel(Map<String,String> config,
String relativeDir)
Load a supporting model.
|
void |
resetLabels() |
void |
runModel() |
void |
setLabel(RandomVariableAtom atom,
float label) |
get, isBlock, setBlock, validateTypes
clearForTesting, getArgumentType, getArity, getName, toString
protected SupportingModel model
protected ModelPredicate(String name, ConstantType[] types, SupportingModel model)
public void loadModel(Map<String,String> config, String relativeDir)
public float getValue(RandomVariableAtom atom)
public void runModel()
public void resetLabels()
public void setLabel(RandomVariableAtom atom, float label)
public void fit()
public static ModelPredicate get(String name)
public static ModelPredicate get(String name, SupportingModel model, ConstantType... types)
Copyright © 2020 University of California, Santa Cruz. All rights reserved.