1

I had .txt file and I opened it and saved it as .csv file.

Now I try to open it in weka and I got this type of error: Null.

4

1 回答 1

1

Weka 使用ARFF作为标准数据文件格式

由于您没有给出新创建的CSV的示例,我建议您阅读有关Weka 中CSV文件的内容。http://weka.wikispaces.com/Can+I+use+CSV+files%3F

我的意见是你应该把你的数据格式化为 ARFF 格式,你不会有任何问题。

这是一个小例子

@relation ball

@attribute color {white, orange, brown}
@attribute diameter real
@attribute forma {circle, oval}
@attribute weight real
@attribute type {fotbal, pingpong, basket}

@data
white,10,circle,1000,fotbal
white,9,circle,800,fotbal
orange,1,circle,10,pingpong
white,1,circle,10,pingpong
brown,15,circle,1300,basket
brown,16,circle,1400,basket
white,9,circle,901,fotbal
white,10,circle,850,fotbal
orange,1,circle,8,pingpong
white,1,circle,9,pingpong
brown,16,circle,1350,basket
brown,16,circle,1401,basket
于 2013-01-05T16:54:23.907 回答