Weka Percentage split 分割数据集
66%作为训练集,剩余的作为测试集
[code="java"]
//读取
Instances trainingSet = DataSource.read(path);
//打乱顺序
trainingSet.randomize(new Random(0));
int trainSize = (int) Math.round(trainingSet.numInstances...
原创
2015-05-01 13:31:10 ·
2411 阅读 ·
1 评论