User Tools

Site Tools


tuto_ecj_weka_easier

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_easier [2014/03/03 15:50]
Denis Pallez [Usage:]
tuto_ecj_weka_easier [2014/03/03 16:50] (current)
Denis Pallez
Line 1: Line 1:
-====== How to build weka classifiers using ecj algorithms, the faster way ======+====== How to build weka classifiers using ECJ library, the faster way ====== 
 + 
 +A detailed version is available [[tuto_ecj_weka|here]].
  
 ===== Prerequisites:​ ===== ===== Prerequisites:​ =====
Line 5: Line 7:
   * Weka and knowledge about how to write algorithms in weka.   * Weka and knowledge about how to write algorithms in weka.
   * ECJ and knowledge about how it works.   * ECJ and knowledge about how it works.
-  * This tutorial jarfile available ​[[tuto_ecj_weka|here]].+  * This tutorial jarfile available ​{{:​ecj_weka_fichiers:​ecj-for-weka.jar|here}}.
  
 ===== Class diagram: ===== ===== Class diagram: =====
  
-Here is a short diagram representing what is contained in the jar file and how it is connected to ECJ's core (Click to access the image)+Here is a short diagram representing what is contained in the jar file and how it is connected to ECJ's core. 
- +{{:​ecj_weka_fichiers:​ecj_mods_dgrm.png?|}}
-[[images:​ecj_mods_dgrm|{{images:​ecj_mods_dgrm.png|class diagram}}]]+
 ===== Usage: ===== ===== Usage: =====
  
Line 22: Line 23:
 When building your algorithm in weka, ou will launch your ecj algorithm by creating an ec.weka.Evolve object. Then you can call the setLearningDataSet method on it, giving it an Instances object, if your weka algorithm needs any data. Finally, to launch the algorithm you'll call the run method on the Evolve object, giving it the same argument you would give when invoking the algorithm from the command line. This mehod will return the results of the computation as an Individual[][] representing the best individuals of each subpopulation for each job. You can use these results as you wish within your weka algorithm. When building your algorithm in weka, ou will launch your ecj algorithm by creating an ec.weka.Evolve object. Then you can call the setLearningDataSet method on it, giving it an Instances object, if your weka algorithm needs any data. Finally, to launch the algorithm you'll call the run method on the Evolve object, giving it the same argument you would give when invoking the algorithm from the command line. This mehod will return the results of the computation as an Individual[][] representing the best individuals of each subpopulation for each job. You can use these results as you wish within your weka algorithm.
  
-<​note>​written by Romaric ​pighetti ​in 2012/​01.</​note>​+<​note>​written by Romaric ​Pighetti ​in 2012/​01.</​note>​
tuto_ecj_weka_easier.1393858239.txt.gz · Last modified: 2014/03/03 15:50 by Denis Pallez