2015-05-04 62 views
0

我使用的是java代碼保存聚類結果的ARFF文件..
我已經按照這個網站的說明: http://weka.wikispaces.com/Visualizing+cluster+assignments
但我得到的在該行錯誤:不能聚類結果保存到一個文件ARFF

PlotData2D predData = ClustererPanel.setUpVisualizableInstances(train, eval); 

說:

The method setUpVisualizableInstances(Instances, ClusterEvaluation) is undefined for the type ClustererPanel 

我試圖谷歌,但我無法找到一個解決方案

從目前的代碼

回答

0

來看:

http://grepcode.com/file/repo1.maven.org/maven2/nz.ac.waikato.cms.weka/weka-dev/3.7.12/weka/gui/explorer/ClustererPanel.java#ClustererPanel

我認爲你必須調用setInstances,而不是現在setUpVisualizableInstances

但是:爲什麼你用可視化教程?

可視化不會生成.arff文件。

+0

謝謝你的回答,根據這個鏈接http://list.waikato.ac.nz/pipermail/wekalist/2014-January/059753.html 這是做到這一點的方法。 我試過你的建議,但現在我得到了: 類型不匹配:無法從void轉換爲PlotData2D – user3379482

+0

即使曾經有效,它看起來並不像以前那樣被濫用。爲什麼不試圖找出正確的方式,而不是濫用可視化代碼來轉儲羣集? –