public abstract class ModelManager<M extends org.dmg.pmml.Model> extends Object implements HasModel<M>, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
ModelManager() |
protected |
ModelManager(org.dmg.pmml.PMML pmml,
M model) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResultFeatures(Set<org.dmg.pmml.ResultFeature> resultFeatures) |
protected List<InputField> |
createInputFields() |
protected List<InputField> |
createInputFields(org.dmg.pmml.MiningField.UsageType usageType) |
protected EvaluationException |
createMiningSchemaException(String message) |
protected List<OutputField> |
createOutputFields() |
protected List<TargetField> |
createTargetFields() |
List<InputField> |
getActiveFields() |
org.dmg.pmml.DataField |
getDataField(org.dmg.pmml.FieldName name) |
org.dmg.pmml.DataField |
getDefaultDataField() |
org.dmg.pmml.DefineFunction |
getDefineFunction(String name) |
org.dmg.pmml.DerivedField |
getDerivedField(org.dmg.pmml.FieldName name) |
List<InputField> |
getInputFields() |
org.dmg.pmml.DerivedField |
getLocalDerivedField(org.dmg.pmml.FieldName name) |
org.dmg.pmml.MathContext |
getMathContext() |
org.dmg.pmml.MiningField |
getMiningField(org.dmg.pmml.FieldName name) |
org.dmg.pmml.MiningFunction |
getMiningFunction() |
M |
getModel() |
org.dmg.pmml.OutputField |
getOutputField(org.dmg.pmml.FieldName name) |
List<OutputField> |
getOutputFields() |
org.dmg.pmml.PMML |
getPMML() |
protected Set<org.dmg.pmml.ResultFeature> |
getResultFeatures() |
org.dmg.pmml.Target |
getTarget(org.dmg.pmml.FieldName name) |
TargetField |
getTargetField() |
List<TargetField> |
getTargetFields() |
org.dmg.pmml.FieldName |
getTargetName() |
<V> V |
getValue(com.google.common.cache.Cache<M,V> cache,
Callable<? extends V> loader) |
<V> V |
getValue(com.google.common.cache.LoadingCache<M,V> cache) |
protected com.google.common.collect.ListMultimap<org.dmg.pmml.FieldName,org.dmg.pmml.Field<?>> |
getVisibleFields() |
protected boolean |
hasLocalDerivedFields() |
protected boolean |
hasOutputFields() |
boolean |
hasResultFeature(org.dmg.pmml.ResultFeature resultFeature)
Indicates if this model evaluator provides the specified result feature.
|
protected void |
resetInputFields() |
protected void |
resetResultFields() |
protected org.dmg.pmml.Field<?> |
resolveField(org.dmg.pmml.FieldName name) |
void |
setDefaultDataField(org.dmg.pmml.DataField defaultDataField) |
protected ModelManager()
protected ModelManager(org.dmg.pmml.PMML pmml,
M model)
public org.dmg.pmml.MiningFunction getMiningFunction()
public org.dmg.pmml.MathContext getMathContext()
public org.dmg.pmml.DataField getDataField(org.dmg.pmml.FieldName name)
public org.dmg.pmml.DataField getDefaultDataField()
DataField element describing the default target field.public void setDefaultDataField(org.dmg.pmml.DataField defaultDataField)
public org.dmg.pmml.DerivedField getDerivedField(org.dmg.pmml.FieldName name)
public org.dmg.pmml.DefineFunction getDefineFunction(String name)
public org.dmg.pmml.MiningField getMiningField(org.dmg.pmml.FieldName name)
protected boolean hasLocalDerivedFields()
public org.dmg.pmml.DerivedField getLocalDerivedField(org.dmg.pmml.FieldName name)
public org.dmg.pmml.Target getTarget(org.dmg.pmml.FieldName name)
protected boolean hasOutputFields()
public org.dmg.pmml.OutputField getOutputField(org.dmg.pmml.FieldName name)
public boolean hasResultFeature(org.dmg.pmml.ResultFeature resultFeature)
Indicates if this model evaluator provides the specified result feature.
A result feature is first and foremost manifested through output fields. However, selected result features may make a secondary manifestation through a target field.
OutputField.getResultFeature()public void addResultFeatures(Set<org.dmg.pmml.ResultFeature> resultFeatures)
protected Set<org.dmg.pmml.ResultFeature> getResultFeatures()
public List<InputField> getInputFields()
public List<InputField> getActiveFields()
public List<TargetField> getTargetFields()
public TargetField getTargetField()
public org.dmg.pmml.FieldName getTargetName()
public List<OutputField> getOutputFields()
protected void resetInputFields()
protected void resetResultFields()
protected org.dmg.pmml.Field<?> resolveField(org.dmg.pmml.FieldName name)
protected com.google.common.collect.ListMultimap<org.dmg.pmml.FieldName,org.dmg.pmml.Field<?>> getVisibleFields()
protected EvaluationException createMiningSchemaException(String message)
protected List<InputField> createInputFields()
protected List<InputField> createInputFields(org.dmg.pmml.MiningField.UsageType usageType)
protected List<TargetField> createTargetFields()
protected List<OutputField> createOutputFields()
public <V> V getValue(com.google.common.cache.LoadingCache<M,V> cache)
public <V> V getValue(com.google.common.cache.Cache<M,V> cache, Callable<? extends V> loader)
Copyright © 2020. All rights reserved.