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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.dmg.pmml.PMML apply​(org.dmg.pmml.PMML pmml)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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>