public class ModelManager<M extends org.dmg.pmml.Model> extends PMMLManager implements Consumer
| 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.
|
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> fieldUsageTypes) |
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. |
org.dmg.pmml.FieldName |
getTargetField()
Convenience method for retrieving the sole target field.
|
List<org.dmg.pmml.FieldName> |
getTargetFields()
Gets the dependent (ie.
|
org.dmg.pmml.DerivedField |
resolveDerivedField(org.dmg.pmml.FieldName name) |
getDataField, getDerivedField, getFunction, getPMMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataFieldpublic ModelManager(org.dmg.pmml.PMML pmml,
M model)
public String getSummary()
ConsumerModel.getSummary in interface Consumerpublic org.dmg.pmml.MiningFunctionType getMiningFunction()
ConsumerModel.getMiningFunction in interface Consumerpublic List<org.dmg.pmml.FieldName> getActiveFields()
ConsumerModel from its MiningSchema.getActiveFields in interface Consumerpublic List<org.dmg.pmml.FieldName> getGroupFields()
ConsumerModel from its MiningSchema.
A model should have no more than 1 group field.getGroupFields in interface Consumerpublic List<org.dmg.pmml.FieldName> getOrderFields()
ConsumerModel from its MiningSchema.
This field set is relevant only for association rules model type.getOrderFields in interface Consumerpublic List<org.dmg.pmml.FieldName> getTargetFields()
ConsumerModel from its MiningSchema.getTargetFields in interface Consumerpublic org.dmg.pmml.FieldName getTargetField()
Consumercollection of target fields is empty, then the model consumer should assume that the model defines a default target field, which is represented by null.
The default target field could be either "real" or "phantom". They can be distinguished from one another by looking up the definition of the field from the DataDictionary.
Consumer consumer = ...;
List<FieldName> targetFields = consumer.getTargetFields();
if(targetFields.isEmpty()){
FieldName targetField = consumer.getTargetField();
DataField dataField = consumer.getDataField(targetField);
if(dataField != null){
// A "real" default target field
} else
{
// A "phantom" default target field
}
}
getTargetField in interface ConsumerConsumer.getTargetFields()public org.dmg.pmml.MiningField getMiningField(org.dmg.pmml.FieldName name)
ConsumerMiningSchema.getMiningField in interface Consumername - The name of the field.Consumer.getActiveFields(),
Consumer.getGroupFields(),
Consumer.getTargetFields()protected List<org.dmg.pmml.FieldName> getMiningFields(EnumSet<org.dmg.pmml.FieldUsageType> fieldUsageTypes)
public org.dmg.pmml.DerivedField getLocalDerivedField(org.dmg.pmml.FieldName name)
public org.dmg.pmml.DerivedField resolveDerivedField(org.dmg.pmml.FieldName name)
public org.dmg.pmml.Target getTarget(org.dmg.pmml.FieldName name)
ConsumerTargets.getTarget in interface ConsumerConsumer.getTargetFields()public List<org.dmg.pmml.FieldName> getOutputFields()
ConsumerModel from its Output.getOutputFields in interface Consumerpublic org.dmg.pmml.OutputField getOutputField(org.dmg.pmml.FieldName name)
ConsumerOutputgetOutputField in interface ConsumerConsumer.getOutputFields()public M getModel()
Copyright © 2015. All Rights Reserved.