简体   繁体   English

Weka,j48树(叶数:1树的大小:1)

[英]Weka, j48 tree (Number of Leaves : 1 Size of the tree : 1)

I am new to this Weka. 我是这个Weka的新手。 I have this csv file I would like to play around in weka, so I converted it into a arff file by using R. After I loaded the arff file into the weka and try to use j48 on it in classifier, the result return 我有一个要在weka中播放的csv文件,因此我使用R将其转换为arff文件。将arff文件加载到weka中并尝试在分类器中对其使用j48后,结果返回

Number of Leaves : 1 叶数:1

Size of the tree : 1 树的大小:1

which is rather odd to me. 这对我来说很奇怪。 I should be seeing a tree instead. 我应该看到一棵树。 This is not the first time I bumped into this 1 tree 1 leaf problem, it happened to my some other data sets as well. 这不是我第一次遇到这种1树1的叶子问题,这也发生在我的其他一些数据集上。 Any chance anyone know what could cause this, maybe I need to preprocess the data set in certain way? 任何人都可能知道会导致这种情况的机会,也许我需要以某种方式预处理数据集? Thanks for the help guys. 感谢您的帮助。

I had the same problem, 我有同样的问题,

Try changing the parameter of the algorithm to unpruned, it works for me 尝试将算法的参数更改为未修剪,它对我有用

cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM