public class ModelManager<M extends org.dmg.pmml.Model> extends PMMLManager implements Consumer
| Modifier and Type | Field and Description |
|---|---|
protected static EnumSet<org.dmg.pmml.FieldUsageType> |
ACTIVE_TYPES |
protected static EnumSet<org.dmg.pmml.FieldUsageType> |
GROUP_TYPES |
protected static EnumSet<org.dmg.pmml.FieldUsageType> |
ORDER_TYPES |
protected static EnumSet<org.dmg.pmml.FieldUsageType> |
TARGET_TYPES |
| Constructor and Description |
|---|
ModelManager(org.dmg.pmml.PMML pmml,
M model) |
| Modifier and Type | Method and Description |
|---|---|
List<org.dmg.pmml.FieldName> |
getActiveFields()
Gets the independent (ie. input) fields of a
Model from its MiningSchema. |
List<org.dmg.pmml.FieldName> |
getGroupFields()
Gets the group fields of a
Model from its MiningSchema. |
org.dmg.pmml.DerivedField |
getLocalDerivedField(org.dmg.pmml.FieldName name) |
org.dmg.pmml.MiningField |
getMiningField(org.dmg.pmml.FieldName name)
Gets the definition of a field from the
MiningSchema. |
protected List<org.dmg.pmml.FieldName> |
getMiningFields(EnumSet<org.dmg.pmml.FieldUsageType> fieldUsages) |
org.dmg.pmml.MiningFunctionType |
getMiningFunction()
Gets the type of the
Model. |
M |
getModel() |
List<org.dmg.pmml.FieldName> |
getOrderFields()
Gets the order fields of a
Model from its MiningSchema. |
org.dmg.pmml.OutputField |
getOutputField(org.dmg.pmml.FieldName name)
Gets the definition of a field from the
Output
|
List<org.dmg.pmml.FieldName> |
getOutputFields()
Gets the output fields of a
Model from its Output. |
String |
getSummary()
Gets a short description of the
Model. |
org.dmg.pmml.Target |
getTarget(org.dmg.pmml.FieldName name)
Gets the definition of a field from the
Targets. |
List<org.dmg.pmml.FieldName> |
getTargetFields()
Gets the dependent (ie. target in supervised training) fields of a
Model from its MiningSchema. |
getDataField, getDefineFunction, getDerivedField, getPMMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataFieldprotected static final EnumSet<org.dmg.pmml.FieldUsageType> ACTIVE_TYPES
protected static final EnumSet<org.dmg.pmml.FieldUsageType> GROUP_TYPES
protected static final EnumSet<org.dmg.pmml.FieldUsageType> ORDER_TYPES
protected static final EnumSet<org.dmg.pmml.FieldUsageType> TARGET_TYPES
public ModelManager(org.dmg.pmml.PMML pmml,
M model)
public String getSummary()
Consumer
Gets a short description of the Model.
getSummary in interface Consumerpublic org.dmg.pmml.MiningFunctionType getMiningFunction()
Consumer
Gets the type of the Model.
getMiningFunction in interface Consumerpublic List<org.dmg.pmml.FieldName> getActiveFields()
Consumer
Gets the independent (ie. input) fields of a Model from its MiningSchema.
getActiveFields in interface Consumerpublic List<org.dmg.pmml.FieldName> getGroupFields()
Consumer
Gets the group fields of a Model from its MiningSchema.
This field set is relevant for association rules model type only.
getGroupFields in interface Consumerpublic List<org.dmg.pmml.FieldName> getOrderFields()
Consumer
Gets the order fields of a Model from its MiningSchema.
This field set is relevant for sequences and time series model types.
getOrderFields in interface Consumerpublic List<org.dmg.pmml.FieldName> getTargetFields()
Consumer
Gets the dependent (ie. target in supervised training) fields of a Model from its MiningSchema.
getTargetFields in interface ConsumerConsumer.getTarget(FieldName)public org.dmg.pmml.MiningField getMiningField(org.dmg.pmml.FieldName name)
Consumer
Gets the definition of a field from the MiningSchema.
getMiningField in interface Consumername - The name of the field.Consumer.getActiveFields(),
Consumer.getGroupFields(),
Consumer.getOrderFields(),
Consumer.getTargetFields()protected List<org.dmg.pmml.FieldName> getMiningFields(EnumSet<org.dmg.pmml.FieldUsageType> fieldUsages)
public org.dmg.pmml.DerivedField getLocalDerivedField(org.dmg.pmml.FieldName name)
public org.dmg.pmml.Target getTarget(org.dmg.pmml.FieldName name)
Consumer
Gets the definition of a field from the Targets.
getTarget in interface ConsumerConsumer.getTargetFields()public List<org.dmg.pmml.FieldName> getOutputFields()
Consumer
Gets the output fields of a Model from its Output.
getOutputFields in interface ConsumerConsumer.getOutputField(FieldName)public org.dmg.pmml.OutputField getOutputField(org.dmg.pmml.FieldName name)
Consumer
Gets the definition of a field from the Output
getOutputField in interface ConsumerConsumer.getOutputFields()public M getModel()
Copyright © 2016. All Rights Reserved.