How to add weka features in a new algorithm?

风格不统一 提交于 2019-12-07 04:49:58

问题


I want to add a new algorithm to weka with features of classification, clustering, association etc in one algo. How should I write a code to include all the weka features and add a tab to weka for this new algorithm. I have added a dummy algorithm to weka and it works now I want to add an algorithm which has combination of features of weka.

Thanks


回答1:


If you want to add a new algorithm in Weka, have a look at the Weka Manual ( http://www.cs.waikato.ac.nz/ml/weka/index.html )

In the part IV - Appendix, you have the chapter Extending Weka and inside the part Writing a new Classifier. Very basically, you have to extend a Classifier like AbstractClassifier or RandomizableClassifier.

In the case of clustering algorithms look at the part Other Algorithms. You will have to extend, for instance, the class weka.clusterers.AbstractClusterer.

But, if you want to use existing algorithms in your own program, have a look to this link: http://weka.wikispaces.com/How+do+I+use+WEKA%27s+classes+in+my+own+code%3F



来源:https://stackoverflow.com/questions/5468038/how-to-add-weka-features-in-a-new-algorithm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!