public class InputField extends ModelField
| Constructor and Description |
|---|
InputField(org.dmg.pmml.Field<?> field,
org.dmg.pmml.MiningField miningField) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.RangeSet<Double> |
getContinuousDomain()
Returns the domain of valid values for this continuous field.
|
org.dmg.pmml.DataType |
getDataType() |
List<?> |
getDiscreteDomain()
Returns the domain of valid values for this categorical or ordinal field.
|
org.dmg.pmml.Field<?> |
getField() |
org.dmg.pmml.MiningField |
getMiningField() |
org.dmg.pmml.FieldName |
getName() |
org.dmg.pmml.OpType |
getOpType() |
FieldValue |
prepare(Object value)
Prepares the input value for a field.
|
toString, toStringHelperpublic InputField(org.dmg.pmml.Field<?> field,
org.dmg.pmml.MiningField miningField)
public FieldValue prepare(Object value)
Prepares the input value for a field.
First, the value is converted from the user-supplied representation to PMML representation. After that, the value is subjected to missing value treatment, invalid value treatment and outlier treatment.
value - The input value in user-supplied representation.
Use null to represent a missing input value.EvaluationException - If the input value preparation fails.InvalidMarkupExceptionUnsupportedMarkupExceptionpublic org.dmg.pmml.FieldName getName()
getName in class ModelFieldpublic org.dmg.pmml.DataType getDataType()
getDataType in class ModelFieldpublic org.dmg.pmml.OpType getOpType()
getOpType in class ModelFieldpublic com.google.common.collect.RangeSet<Double> getContinuousDomain()
Returns the domain of valid values for this continuous field. If specified, then all input values that are contained in this set shall be considered valid, and all others invalid. If not specified, then all input values shall be considered valid.
null.getOpType()public List<?> getDiscreteDomain()
Returns the domain of valid values for this categorical or ordinal field. If specified, then all input values that are contained in this list shall be considered valid, and all others invalid. In not specified, then all input values shall be considered valid.
List elements are all valid values in PMML representation.
For example, if the data type of this field is DataType.INTEGER, then all list elements shall be Integer.
null.getDataType(),
getOpType(),
TypeUtil.parse(DataType, String),
TypeUtil.parseOrCast(DataType, Object)public org.dmg.pmml.Field<?> getField()
Field element.
For top-level models, this is always the DataField element.public org.dmg.pmml.MiningField getMiningField()
MiningField element.Copyright © 2018. All rights reserved.