public abstract class ModelEvaluator<M extends Model> extends ModelManager<M> implements Evaluator
| Constructor and Description |
|---|
ModelEvaluator(PMML pmml,
M model) |
| Modifier and Type | Method and Description |
|---|---|
Map<FieldName,?> |
evaluate(Map<FieldName,?> arguments) |
abstract Map<FieldName,?> |
evaluate(ModelEvaluationContext context) |
<V> V |
getValue(com.google.common.cache.LoadingCache<M,V> cache) |
FieldValue |
prepare(FieldName name,
Object value)
Prepares the input value for a field.
|
getActiveFields, getGroupFields, getLocalDerivedField, getMiningField, getMiningFields, getMiningSchema, getModel, getOrCreateLocalTransformations, getOrCreateOutput, getOrCreateTargets, getOutputField, getOutputFields, getPredictedFields, getSummary, getTarget, getTargetField, resolveDerivedFieldfind, find, findAll, getDataDictionary, getDataField, getDerivedField, getFunction, getHeader, getModel, getModelManager, getModels, getOrCreateTransformationDictionary, getPMMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActiveFields, getDataField, getGroupFields, getMiningField, getOutputField, getOutputFields, getPredictedFields, getSummary, getTargetFieldpublic abstract Map<FieldName,?> evaluate(ModelEvaluationContext context)
public FieldValue prepare(FieldName name, Object value)
Evaluatorprepare in interface Evaluatorname - The name of the fieldConsumer.getDataField(FieldName),
Consumer.getMiningField(FieldName)public Map<FieldName,?> evaluate(Map<FieldName,?> arguments)
evaluate in interface Evaluatorarguments - Map of active field values.predicted 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 University of Tartu. All Rights Reserved.