我环顾四周,找到了我自己问题的答案。有一个名为 KNIME 的免费应用程序,使用起来相当简单,并且可以生成 PMML 输出。事实证明,alternateTargetCategory 仅用于二进制分类。对于 Iris 数据集,SupportVectorMachine 的输出如下:
<SupportVectorMachine targetCategory="1">
<SupportVectors numberOfAttributes="4" numberOfSupportVectors="3">
<SupportVector vectorId="1_1_23"/>
<SupportVector vectorId="1_1_41"/>
<SupportVector vectorId="2_2_98"/>
</SupportVectors>
<Coefficients numberOfCoefficients="3" absoluteValue="-1.2257883098134195">
<Coefficient value="0.0082595394670607"/>
<Coefficient value="5.981904829451028E-4"/>
<Coefficient value="0.008857729950005803"/>
</Coefficients>
</SupportVectorMachine>
<SupportVectorMachine targetCategory="2">
<SupportVectors numberOfAttributes="4" numberOfSupportVectors="16">
... etc.