擅长:python、mysql、java
<p>jcrudy,你说得对:这是个bug。(API已更改,DefineFunction未更新。)它现在已在<a href="https://code.google.com/p/augustus/source/checkout" rel="nofollow">public SVN repository</a>中修复:使用Augustus>;=r795,您可以按照最初的意图运行示例。在</p>
<p>顺便说一下,您的PMML来自一个外部文件,但是您将它加载到一个字符串中,然后加载到pmmldom中。只需传递<code>loadXML</code>文件名,就可以跳过中间步骤:</p>
<pre><code>model = modelLoader.loadXml(add_two_numbers_file)
</code></pre>
<p>(这可能与非常大的PMML文件相关;还要注意,它们可以gzip压缩。)</p>