public interface Consumer extends Serializable
| Modifier and Type | Method and Description |
|---|---|
List<org.dmg.pmml.FieldName> |
getActiveFields()
Gets the independent (ie.
|
org.dmg.pmml.DataField |
getDataField(org.dmg.pmml.FieldName name)
Gets the definition of a field from the
DataDictionary. |
List<org.dmg.pmml.FieldName> |
getGroupFields()
Gets the group fields of a
Model from its MiningSchema. |
org.dmg.pmml.MiningField |
getMiningField(org.dmg.pmml.FieldName name)
Gets the definition of a field from the
MiningSchema. |
org.dmg.pmml.MiningFunctionType |
getMiningFunction()
Gets the type of the
Model. |
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.
|
String getSummary()
Model.org.dmg.pmml.MiningFunctionType getMiningFunction()
Model.org.dmg.pmml.DataField getDataField(org.dmg.pmml.FieldName name)
DataDictionary.name - The name of the field. The name of the default target field is null.List<org.dmg.pmml.FieldName> getActiveFields()
Model from its MiningSchema.List<org.dmg.pmml.FieldName> getGroupFields()
Model from its MiningSchema.
A model should have no more than 1 group field.List<org.dmg.pmml.FieldName> getOrderFields()
Model from its MiningSchema.
This field set is relevant only for association rules model type.List<org.dmg.pmml.FieldName> getTargetFields()
Model from its MiningSchema.org.dmg.pmml.FieldName getTargetField()
collection 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
}
}
InvalidFeatureException - If the number of target fields is greater than one.getTargetFields()org.dmg.pmml.MiningField getMiningField(org.dmg.pmml.FieldName name)
MiningSchema.name - The name of the field.getActiveFields(),
getGroupFields(),
getTargetFields()org.dmg.pmml.Target getTarget(org.dmg.pmml.FieldName name)
Targets.getTargetFields()List<org.dmg.pmml.FieldName> getOutputFields()
Model from its Output.org.dmg.pmml.OutputField getOutputField(org.dmg.pmml.FieldName name)
OutputgetOutputFields()Copyright © 2015. All Rights Reserved.