ID3クラシファイアを構築するために私のソースコードにWekaを使用したいと思います。テストデータセット(クラスラベルなし)を取り込み、ラベルを添付して新しいファイルに書き込む必要があります。これらのクラスラベルはどのように実際に添付されますか?どのクラス、そして関数はこれをしますか?Wekaはクラスラベルをテストデータセットにどのように添付しますか?
My train dataset:
@relation data
@attribute GENDER {M,F}
@attribute FAMILY {YES,NO}
@attribute SMOKER {YES,NO}
@attribute PASSIVESMOKER {YES,NO}
@attribute CITY {YES,NO}
@attribute CHEMICALS {YES,NO}
@attribute THERAPY {YES,NO}
@attribute PERSISTENTCOUGH {YES,NO}
@attribute CLASS {LOW,BAVG,AVG,AAVG,HIGH}
@data
M,NO,NO,NO,NO,NO,NO,NO,LOW
M,NO,NO,NO,NO,YES,NO,NO,BAVG
M,NO,NO,NO,YES,YES,YES,YES,AAVG
M,NO,NO,YES,NO,NO,NO,NO,LOW
M,NO,NO,YES,NO,YES,NO,NO,BAVG
.....
.....
Test dataset:
@relation data
@attribute GENDER {M,F}
@attribute FAMILY {YES,NO}
@attribute SMOKER {YES,NO}
@attribute PASSIVESMOKER {YES,NO}
@attribute CITY {YES,NO}
@attribute CHEMICALS {YES,NO}
@attribute THERAPY {YES,NO}
@attribute PERSISTENTCOUGH {YES,NO}
@data
M,NO,NO,NO,NO,NO,NO,NO,?
M,NO,NO,NO,NO,YES,NO,NO,?
M,NO,NO,NO,YES,YES,YES,YES,?
M,NO,NO,YES,NO,NO,NO,NO,?
これまでに試したことを共有できますか? – gaRos