0

サポートベクターマシンのPMMLドキュメントを作成しようとしていますが、dmg.orgで指定されているSupportVectorMachineタグのtargetCategory属性について混乱しています。私の質問は、3つ以上の分類子がある場合、これはどのように機能する必要があるかということです。必要に応じて、1つのtargetCategory属性と追加のalternateTargetCategory属性が必要ですか?

アイリスデータセットを考えると、次のようになると思います。

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

1 に答える 1

0

私はもう少し周りを見回して、自分の質問に対する答えを見つけました。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.
于 2011-06-13T16:55:54.240 に答える