Class ModelEvaluator<M extends org.dmg.pmml.Model>

    • Method Detail

      • configure

        public void configure​(Configuration configuration)

        Configures the runtime behaviour of this model evaluator.

        Must be called once before the first evaluation. May be called any number of times between subsequent evaluations.

      • isParentCompatible

        public boolean isParentCompatible()

        Indicates if this model evaluator is compatible with its parent model evaluator.

        A parent compatible model evaluator inherits DataField declarations unchanged, which makes it possible to propagate DataField and global DerivedField values between evaluation contexts during evaluation.

      • isPure

        public boolean isPure()

        Indicates if this model evaluator represents a pure function.

        A pure model evaluator does not tamper with the evaluation context during evaluation.

      • evaluate

        public Map<String,​?> evaluate​(Map<String,​?> arguments)
        Description copied from interface: Evaluator

        Evaluates the model with the specified arguments.

        Specified by:
        evaluate in interface Evaluator
        Parameters:
        arguments - Map of input field values.
        Returns:
        Map of target field and output field values. A target field could be mapped to a complex value or a simple value. An output field is always mapped to a simple value. Complex values are represented as instances of Computable that return simple values. Simple values are represented using the Java equivalents of PMML data types (eg. String, Integer, Float, Double etc.). A missing value is represented by null.
        See Also:
        Computable