User Tools

Site Tools


tuto_ecj_weka

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tuto_ecj_weka [2014/03/03 16:45]
Denis Pallez [Calling the ECJ algorithm:]
tuto_ecj_weka [2014/03/03 16:48] (current)
Denis Pallez [Conclusion]
Line 437: Line 437:
 Now you should be able to construct simple Clusterer for weka using an ECJ algorithm. Practising these two softwares, you should then be able to build more complicated things. The class **weka.clusterer.ECJBasedClusterer** shows an exemple of clusterer taking two parameters, one string for an ECJ parameters file and another string for an ECJ checkpoint file. The last one overrides the first one if both are given. Then the clusterer does nothing in its buildClassifier method and it always returns 0 for the cluster. It's useless as a clusterer, the goal is just to show the overall construction of a clusterer with some options. Now you should be able to construct simple Clusterer for weka using an ECJ algorithm. Practising these two softwares, you should then be able to build more complicated things. The class **weka.clusterer.ECJBasedClusterer** shows an exemple of clusterer taking two parameters, one string for an ECJ parameters file and another string for an ECJ checkpoint file. The last one overrides the first one if both are given. Then the clusterer does nothing in its buildClassifier method and it always returns 0 for the cluster. It's useless as a clusterer, the goal is just to show the overall construction of a clusterer with some options.
  
-This class is available at: [[http://​pighetti.atlasiens.fr/​tutorials/​using-ecj-in-weka/​src/​weka/​clusterers/​EcjBasedClusterer.java|src/​weka/​clusterers/​EcjBasedClusterer.java]].+This class is available at: {{:ecj_weka_fichiers:​ecjbasedclusterer.java|src/​weka/​clusterers/​EcjBasedClusterer.java}}.
  
 Be aware that even if this exemple shows only how to build a clusterer, the work to build a classifier or an associator is fairly the same. You just need to change the base class used in weka and construct an algorithm for classification instead of clusterisation. Be aware that even if this exemple shows only how to build a clusterer, the work to build a classifier or an associator is fairly the same. You just need to change the base class used in weka and construct an algorithm for classification instead of clusterisation.
Line 443: Line 443:
 In conclusion, the capabilities of this interaction between ECJ and weka only depends on the algorithm you're writting with ECJ and the use of the results your doing in weka. In conclusion, the capabilities of this interaction between ECJ and weka only depends on the algorithm you're writting with ECJ and the use of the results your doing in weka.
  
-Rédigé par Romaric ​pighetti. Janvier ​2012.+<​note>​written by Romaric ​Pighetti in 2012/01.</​note>​
tuto_ecj_weka.1393861520.txt.gz · Last modified: 2014/03/03 16:45 by Denis Pallez