Package org.jpmml.evaluator
Class TargetField
- java.lang.Object
-
- org.jpmml.evaluator.ModelField
-
- org.jpmml.evaluator.ResultField
-
- org.jpmml.evaluator.TargetField
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SyntheticTargetField
public class TargetField extends ResultField
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TargetField(org.dmg.pmml.DataField dataField, org.dmg.pmml.MiningField miningField, org.dmg.pmml.Target target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Object>getCategories()Returns the range of categories for this categorical or ordinal field.org.dmg.pmml.DataFieldgetField()java.lang.StringgetFieldName()The name of this model field in PMML space.org.dmg.pmml.MiningFieldgetMiningField()org.dmg.pmml.OpTypegetOpType()org.dmg.pmml.TargetgetTarget()booleanisSynthetic()-
Methods inherited from class org.jpmml.evaluator.ModelField
getDataType, getDisplayName, getName, toString, toStringHelper
-
-
-
-
Method Detail
-
getFieldName
public java.lang.String getFieldName()
Description copied from class:ModelFieldThe name of this model field in PMML space.
- Overrides:
getFieldNamein classModelField- Returns:
- The name, or
null(in the form of the constantEvaluator.DEFAULT_TARGET_NAME) if this is a synthetic target field. - See Also:
isSynthetic()
-
getOpType
public org.dmg.pmml.OpType getOpType()
- Overrides:
getOpTypein classModelField
-
getCategories
public java.util.List<java.lang.Object> getCategories()
Returns the range of categories for this categorical or ordinal field.
- Returns:
- A non-empty list, or
null. - See Also:
getOpType(),CategoricalResultFeature,CategoricalResultFeature.getCategories()
-
isSynthetic
public boolean isSynthetic()
-
getField
public org.dmg.pmml.DataField getField()
- Overrides:
getFieldin classModelField- Returns:
- The backing
DataFieldelement.
-
getMiningField
public org.dmg.pmml.MiningField getMiningField()
- Returns:
- The backing
MiningFieldelement, ornullif this a synthetic target field. - See Also:
isSynthetic()
-
getTarget
public org.dmg.pmml.Target getTarget()
- Returns:
- The backing
Targetelement, ornull.
-
-