Projet

Général

Profil

Data preparation » Historique » Version 7

François Rioult, 23/06/2010 19:37

1 1 François Rioult
h1. Data preparation
2 2 François Rioult
3
This is a tutorial for designing your first scenario with KDAriane.
4
5 3 François Rioult
* launch Ariane with
6 2 François Rioult
<pre>
7
java -jar ariane.jar
8
</pre>
9
10 3 François Rioult
* click on the "New graph" icon (or in the File menu)
11 5 François Rioult
!https://forge.greyc.fr/attachments/14/a1.png! 
12 6 François Rioult
13
* in the left column, in the operator list, in the file category, drag a _loader_ operator on the design chart.
14 5 François Rioult
!https://forge.greyc.fr/attachments/15/a2.png!
15 6 François Rioult
16
* set the file to be loaded by double-clicking on the operator, then click on _load_ and find the @zoo.csv@ file.
17 5 François Rioult
!https://forge.greyc.fr/attachments/16/a3.png!
18 6 François Rioult
19
* execute the operator by right-clicking on the operator for showing the contextual menu, then left-click on _execute_.
20 5 François Rioult
!https://forge.greyc.fr/attachments/17/a4.png!
21 6 François Rioult
22
* the operator state went to green. You can now visualize the result (the input file) by double-clicking on the operator the press _show_.
23 5 François Rioult
!https://forge.greyc.fr/attachments/18/a5.png!
24 6 François Rioult
25 7 François Rioult
* 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.
26 6 François Rioult
27
<pre>
28
0 Class
29
0 hair
30
0 feathers
31
0 eggs
32
0 milk
33
0 airborne
34
0 aquatic
35
0 predator
36
0 toothed
37
0 backbone
38
0 breathes
39
0 venomous
40
0 fins
41
0 legs
42
0 tail
43
0 domestic
44
0 catsize
45
</pre>
46 1 François Rioult
47 7 François Rioult
* 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@.
48
49 1 François Rioult
!https://forge.greyc.fr/attachments/10/a6.png!
50 7 François Rioult
51
* @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@.  
52 1 François Rioult
!https://forge.greyc.fr/attachments/11/a7.png!
53 7 François Rioult
* the name of an operator can be changed in the contextual menu: change it here with @dictionary@.
54 1 François Rioult
!https://forge.greyc.fr/attachments/12/a8.png!
55 7 François Rioult
* you can now run the operator and view the result by double-clicking on it then press _show_.
56
57 5 François Rioult
!https://forge.greyc.fr/attachments/13/a9.png!