【问题标题】:Having a hard time understadning PMML's targetCategory attribute难以理解 PMML 目标类别属性
【发布时间】:2011-06-14 00:55:54
【问题描述】:

我正在尝试为支持向量机起草一份 PMML 文档,但我对 dmg.org 上指定的 SupportVectorMachine 标记的 targetCategory 属性感到困惑。我的问题是,当有两个以上的分类器时,这应该如何工作?在需要的地方是否应该有一个 targetCategory 和附加的 alternateTargetCategory 属性?

鉴于 Iris 数据集,我猜它会是这样的:

<SupportVectorMachine targetCategory="Iris-setosa" alternateTargetCategory="Iris-versicolor" alternateTargetCategory="Iris-virginica">

【问题讨论】:

    标签: xml data-modeling data-mining svm


    【解决方案1】:

    我环顾四周,找到了我自己问题的答案。有一个名为 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.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-09
      相关资源
      最近更新 更多