Class InputField

    • Constructor Detail

      • InputField

        public InputField​(org.dmg.pmml.Field<?> field,
                          org.dmg.pmml.MiningField miningField)
    • Method Detail

      • getOpType

        public org.dmg.pmml.OpType getOpType()
        Overrides:
        getOpType in class ModelField
      • prepare

        public FieldValue prepare​(Object value)

        Prepares an 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.

        Parameters:
        value - The input value in user-supplied representation. Use null to represent a missing input value.
        Throws:
        EvaluationException - If the input value preparation fails.
        org.jpmml.model.MarkupException
      • getContinuousDomain

        public 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.

        Returns:
        A non-empty set, or null.
        See Also:
        getOpType()
      • getMiningField

        public org.dmg.pmml.MiningField getMiningField()
        Returns:
        The backing MiningField element.