Projet

Général

Profil

Data preparation » Historique » Révision 7

Révision 6 (François Rioult, 23/06/2010 19:27) → Révision 7/11 (François Rioult, 23/06/2010 19:37)

h1. Data preparation 

 This is a tutorial for designing your first scenario with KDAriane. 

 * launch Ariane with 
 <pre> 
 java -jar ariane.jar 
 </pre> 

 * click on the "New graph" icon (or in the File menu) 
 !https://forge.greyc.fr/attachments/14/a1.png!  

 * in the left column, in the operator list, in the file category, drag a _loader_ operator on the design chart. 
 !https://forge.greyc.fr/attachments/15/a2.png! 

 * set the file to be loaded by double-clicking on the operator, then click on _load_ and find the @zoo.csv@ file. 
 !https://forge.greyc.fr/attachments/16/a3.png! 

 * execute the operator by right-clicking on the operator for showing the contextual menu, then left-click on _execute_. 
 !https://forge.greyc.fr/attachments/17/a4.png! 

 * the operator state went to green. You can now visualize the result (the input file) by double-clicking on the operator the press _show_. 
 !https://forge.greyc.fr/attachments/18/a5.png! 

 * add a second file loader for @zoo.col@, that contains the description of the columns. Each line starts with an integer telling how much intervals with homogeneous population should be computed. It is zero is the attribute is qualitative. Then the name of the attribute appears. 

 <pre> 
 0 Class 
 0 hair 
 0 feathers 
 0 eggs 
 0 milk 
 0 airborne 
 0 aquatic 
 0 predator 
 0 toothed 
 0 backbone 
 0 breathes 
 0 venomous 
 0 fins 
 0 legs 
 0 tail 
 0 domestic 
 0 catsize 
 </pre> 

 * from the personal operators, category _shell_, drag an @eval121@:[[eval121]] operator. It has two inputs, to which the file loaders should be connected: drag the small blue square from the left of the loader to the top input of @eval121@. 

 !https://forge.greyc.fr/attachments/10/a6.png! 

 * @eval121@ invokes a binary with the shell. Here we need to compute the dictionary of the data, given the columns description: double click on the operator and fill the parameter with @dictionary@.   
 
 !https://forge.greyc.fr/attachments/11/a7.png! 
 * the name of an operator can be changed in the contextual menu: change it here with @dictionary@. 
 !https://forge.greyc.fr/attachments/12/a8.png! 
 * you can now run the operator and view the result by double-clicking on it then press _show_. 

 !https://forge.greyc.fr/attachments/13/a9.png!