public abstract class ModelEvaluator<M extends org.dmg.pmml.Model> extends ModelManager<M> implements Evaluator
| Constructor and Description |
|---|
ModelEvaluator(org.dmg.pmml.PMML pmml,
M model) |
| Modifier and Type | Method and Description |
|---|---|
ModelEvaluationContext |
createContext(ModelEvaluationContext parent) |
Map<org.dmg.pmml.FieldName,?> |
evaluate(Map<org.dmg.pmml.FieldName,?> arguments)
Evaluates the model with the specified arguments.
|
abstract Map<org.dmg.pmml.FieldName,?> |
evaluate(ModelEvaluationContext context) |
<V> V |
getValue(Callable<? extends V> loader,
com.google.common.cache.Cache<M,V> cache) |
<V> V |
getValue(com.google.common.cache.LoadingCache<M,V> cache) |
FieldValue |
prepare(org.dmg.pmml.FieldName name,
Object value)
Prepares the input value for a field.
|
void |
verify()
Verifies the model.
|
getActiveFields, getGroupFields, getLocalDerivedField, getLocalTransformations, getMiningField, getMiningFields, getMiningSchema, getModel, getOrderFields, getOutput, getOutputField, getOutputFields, getSummary, getTarget, getTargetField, getTargetFields, getTargets, resolveDerivedFieldfind, find, findAll, getDataDictionary, getDataField, getDerivedField, getFunction, getHeader, getModel, getModelManager, getModelManager, getModels, getPMML, getTransformationDictionaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActiveFields, getDataField, getGroupFields, getMiningField, getOrderFields, getOutputField, getOutputFields, getSummary, getTargetField, getTargetFieldspublic ModelEvaluator(org.dmg.pmml.PMML pmml,
M model)
public abstract Map<org.dmg.pmml.FieldName,?> evaluate(ModelEvaluationContext context)
public FieldValue prepare(org.dmg.pmml.FieldName name, Object value)
Evaluatorprepare in interface Evaluatorname - The name of the fieldConsumer.getDataField(FieldName),
Consumer.getMiningField(FieldName)public void verify()
Evaluatorpublic ModelEvaluationContext createContext(ModelEvaluationContext parent)
public Map<org.dmg.pmml.FieldName,?> evaluate(Map<org.dmg.pmml.FieldName,?> arguments)
Evaluatorevaluate in interface Evaluatorarguments - Map of active field values.target field and output field values.
Simple values are represented using the Java equivalents of PMML data types (eg. String, Integer, Float, Double etc.).
Complex values are represented as instances of Computable that return simple values.
A missing result is represented by null.Computablepublic <V> V getValue(com.google.common.cache.LoadingCache<M,V> cache)
Copyright © 2014. All Rights Reserved.