Java实现TransformationDictionary PMML模型

时间:2017-02-28 03:04:34

标签: java pmml

我知道有jpmml,但似乎jpmml仅支持evaluator中的PMML部分。

我有一个PMML模型文件从 KNIME 类别导出到数字节点,我需要用Java。它的一些内容如下所示:

  <TransformationDictionary>
    <DerivedField displayName="LIVE_STS" name="LIVE_STS*" optype="continuous" dataType="integer">
      <Extension name="summary" extender="KNIME" value="Generated by KNIME - Category2Number node"/>
        <MapValues outputColumn="out" dataType="integer">
          <FieldColumnPair field="LIVE_STS" column="in"/>
          <InlineTable>
            <row>
              <pmml:in>N</pmml:in>
              <pmml:out>0</pmml:out>
            </row>
            <row>
              <pmml:in>L</pmml:in>
              <pmml:out>1</pmml:out>
            </row>
          </InlineTable>
        </MapValues>
      </DerivedField>

以上只是其中的一部分。

java中的任何包都可以实现逻辑吗?或者如果jpmml可以做,我应该使用哪个包?

1 个答案:

答案 0 :(得分:1)

我已经将 jpmml 的成员问到github中的问题。

查看此链接:

the_link

它为这个问题提供了另一种选择,它以另一种方式解决了这个问题。