Class ExtractBayesInputsTransformer

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

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

    A PMML transformer that extracts BayesInput elements from Extension elements.

    The support for continuous fields using the TargetValueStats element was officially introduced in PMML schema version 4.2. However, it is possible to encounter this markup in older PMML schema version documents (most notably, produced by R's legacy "pmml" package), where the "incompatible" BayesInput element is wrapped into an Extension element:
    
     <BayesInputs>
       <BayesInput>
         <PairCounts/>
       </BayesInput>
       <Extension>
         <BayesInput>
           <TargetValueStats/>
         </BayesInput>
       </Extension>
     </BayesInputs>
     
    • 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

      • ExtractBayesInputsTransformer

        public ExtractBayesInputsTransformer()
    • Method Detail

      • apply

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