public interface Consumer extends Serializable
| Modifier and Type | Method and Description |
|---|---|
List<org.dmg.pmml.FieldName> |
getActiveFields()
Gets the independent (ie. input) fields of a
Model from its MiningSchema. |
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. target in supervised training) fields of a
Model from its MiningSchema. |
String getSummary()
Gets a short description of the Model.
org.dmg.pmml.MiningFunctionType getMiningFunction()
Gets the type of the Model.
org.dmg.pmml.DataField getDataField(org.dmg.pmml.FieldName name)
Gets the definition of a field from the DataDictionary.
name - The name of the field. The name of the default target field is null.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.
A model should have no more than 1 group field.
List<org.dmg.pmml.FieldName> getOrderFields()
Gets the order fields of a Model from its MiningSchema.
This field set is relevant only for association rules model type.
List<org.dmg.pmml.FieldName> getTargetFields()
Gets the dependent (ie. target in supervised training) fields of a Model from its MiningSchema.
getTarget(FieldName)org.dmg.pmml.FieldName getTargetField()
Convenience method for retrieving the sole target field.
A supervised model should, but is not required to, define a target field. An unsupervised model, by definition, does not define a target field.
If the 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.org.dmg.pmml.MiningField getMiningField(org.dmg.pmml.FieldName name)
Gets the definition of a field from the MiningSchema.
name - The name of the field.getActiveFields(),
getGroupFields(),
getTargetFields()org.dmg.pmml.Target getTarget(org.dmg.pmml.FieldName name)
Gets the definition of a field from the Targets.
getTargetFields()List<org.dmg.pmml.FieldName> getOutputFields()
Gets the output fields of a Model from its Output.
getOutputField(FieldName)org.dmg.pmml.OutputField getOutputField(org.dmg.pmml.FieldName name)
Gets the definition of a field from the Output
getOutputFields()Copyright © 2016. All Rights Reserved.