我正在创建一个稀疏的arff文件,但它不会加载到Weka中。我得到错误,我在@attribute类行中有错误的数值,它期望1和拒绝接收12.我在做什么错了?我的文件看起来像这样:weka sparse arff文件
%ARFF file for questions data
%
@relation brazilquestions
@attribute att0 numeric
@attribute att1 numeric
@attribute att2 numeric
@attribute att3 numeric
%there are 469 attributes which represent my bag of words
@attribute class {Odontologia_coletiva, Periodontia, Pediatria, Estomatologia,
Dentistica, Ortodontia, Endodontia, Cardiologia, Terapeutica,
Terapeutica_medicamentosa, Odontopediatria, Cirurgia}
@data
{126 1, 147 1, 199 1, 56 1, 367 1, 400 1 , Estomatologia}
{155 1, 76 1, 126 1, 78 1, 341 1, 148 1, Odontopediatria}
%and then 81 more instances of data
有关我的语法出了什么问题的任何想法?我完全从Witten/Frank/Hall的“数据挖掘”一书中看到了这个例子。提前致谢!
您能写出错误吗? – jjmartinez
错误消息: weka.core.converters.CSVLoader无法加载'问题data.txt的ARFF文件'。 原因: 错误的数值。阅读12,预计1,阅读令牌[EOL],第477行。 – user3369920
第477行是空的,但第476行包含@attribute类的行 – user3369920