在 weka 中对来自 ARFF 的数据进行分类
我有一个 ARFF,已加载到 weka 资源管理器中。我对 weka 很陌生,但据我了解,我拥有的 arff 应该可以工作,但是没有一个分类器可以与它一起工作?
@RELATION wordfrequency
@ATTRIBUTE word string
@ATTRIBUTE frequency numeric
@DATA
allah,71
ye,65
day,46
lord,21
truth,20
say,20
and,20
the,19
return,19
it,19
我是否遗漏了添加到 arff 文件中的内容?任何帮助表示赞赏。谢谢。
I have an ARFF that i've loaded into the weka explorer. I'm quite new to weka but to my understanding the arff i have should be working however none of the classifiers appear to work with it?
@RELATION wordfrequency
@ATTRIBUTE word string
@ATTRIBUTE frequency numeric
@DATA
allah,71
ye,65
day,46
lord,21
truth,20
say,20
and,20
the,19
return,19
it,19
Is there something i've missed adding to the arff file? Any help is appreciated. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你想分类,类的属性在哪里?如果您创建属性类 {c1,c2}。并在 weka 中过滤您的属性,选择
filter->unsupervised->attribute->Stringtovector
并应用此后您可以分类,它与朴素贝叶斯和其他分类器一起使用。you want to classify and where is the attribute for class? if you create an attribute class {c1,c2}. and filter your attributes in weka chose
filter->unsupervised->attribute->Stringtovector
and apply after this you can classify , it work with the naive bayes and other classifiers.