XGBOOST最終モデルの「はい= 3、いいえ= 4」とはどういう意味ですか?
-
16-10-2019 - |
質問
xgboost v0.6バイナリ分類
$ cat predin.txt
0 1:10 2:10 3:10
1 1:10 2:10 3:100
1 1:10 2:100 3:10
1 1:100 2:10 3:10
つまり、ネガティブインスタンスラベル0には、3つの機能すべてに低い値が必要です。
./xgboost/xgboost m.conf
./xgboost/xgboost m.conf task=dump model_in=0002.model name_dump=dump.raw.txt
$ cat dump.raw.txt
booster[0]:
0:[f1<55] yes=1,no=2,missing=1
1:[f2<55] yes=3,no=4,missing=3
3:[f3<55] yes=5,no=6,missing=5
5:leaf=-1.5
6:leaf=1.5
4:leaf=1.5
2:leaf=1.5
booster[1]:
0:[f1<55] yes=1,no=2,missing=1
1:[f2<55] yes=3,no=4,missing=3
3:[f3<55] yes=5,no=6,missing=5
5:leaf=-0.784694
6:leaf=0.784694
4:leaf=0.784694
2:leaf=0.784694
「はい= 3、いいえ= 4」とはどうなりますか?
解決
私はそれが次のように読むべきだと思います:
- 条件が真の場合は、ブランチ3に移動します
- それ以外の場合は、ブランチ4に移動します
私は推測しているだけですが、もっともらしいようです
所属していません datascience.stackexchange