简体   繁体   中英

how to save clusterer model into arff or csv file (WEKA JAVA)

Is there any way to do so? I know how to save the cluster model , but not sure how to save arff file.Thanks for the help.

 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();

I used this form to save the clustering result in an data.arrf https://weka.wikispaces.com/Save+Instances+to+an+ARFF+File

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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