Class EnsureClassificationMethodTransformer

  • All Implemented Interfaces:
    PMMLTransformer<java.lang.RuntimeException>

    public class EnsureClassificationMethodTransformer
    extends java.lang.Object
    implements PMMLTransformer<java.lang.RuntimeException>

    A PMML transformer that ensures the availability of correct SupportVectorMachineModel.getClassificationMethod() attribute.

    Some PMML producer software (most notably, R's legacy "pmml" package) are known to omit this attribute (defaults to the "OneAgainstAll" value) when encoding the SupportVectorMachineModel element following the layout of the "OneAgainstOne" value.
    • Constructor Detail

      • EnsureClassificationMethodTransformer

        public EnsureClassificationMethodTransformer()
    • Method Detail

      • apply

        public org.dmg.pmml.PMML apply​(org.dmg.pmml.PMML pmml)
        Specified by:
        apply in interface PMMLTransformer<java.lang.RuntimeException>