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. |
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()
Returns a short description of the underlying
Model |
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()
Modelorg.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.List<org.dmg.pmml.FieldName> getTargetFields()
Model from its MiningSchema.org.dmg.pmml.FieldName getTargetField()
collection of target fields is empty, 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 "true" or "phantom". They can be distinguished from one another by looking up the definitoon.
Consumer consumer = ...;
List<FieldName> targetFields = consumer.getTargetFields();
if(targetFields.isEmpty()){
FieldName targetField = consumer.getTargetField();
DataField dataField = consumer.getDataField(targetField);
if(dataField != null){
// A "true" 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.OutputField getOutputField(org.dmg.pmml.FieldName name)
OutputgetOutputFields()List<org.dmg.pmml.FieldName> getOutputFields()
Model from its Output.Copyright © 2015. All Rights Reserved.