2017-01-31 80 views

回答

0
Instances dataSet = getInstancesSomePlace(); 
ArffSaver saver = new ArffSaver(); 
saver.setInstances(dataSet); 
saver.setFile(new File("./data/test.arff")); 
saver.setDestination(new File("./data/test.arff")); 
saver.writeBatch(); 

我使用此表來保存聚類結果在data.arrf https://weka.wikispaces.com/Save+Instances+to+an+ARFF+File