annotate EDeN_train.xml @ 7:59b3b6ce10bb draft

Uploaded
author bgruening
date Tue, 29 Oct 2013 11:07:49 -0400
parents a3edc97e056c
children 9262f801d739
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
1 <tool id="bg_eden_train" name="EDeN Train" version="0.1">
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
2 <description></description>
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
3 <macros>
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
4 <import>eden_macros.xml</import>
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
5 </macros>
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
6 <expand macro="requirements" />
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
7 <command>
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
8 tmp_dir=`mktemp -d -u`;
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
9
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
10 EDeN --action TRAIN
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
11
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
12 --input_data_file_name $infile
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
13 --file_type "SPARSE_VECTOR"
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
14 --binary_file_type
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
15
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
16 ##--output_directory_path \$tmp_dir
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
17
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
18 ## TODO: we need a tool that creates such a file, maybe from the metadata of an SDF file
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
19 ## target_file_name is a file with 1 or -1 one in each row, indicating the class
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
20 --target_file_name $target_infile
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
21 --model_file_name $model_outfile
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
22
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
23 --lambda $lambda ##??? notation?
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
24 --epochs $epoch
2
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
25
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
26 --sparsification_num_iterations $sparsification_num_iterations
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
27 --topological_regularization_num_neighbors $topological_regularization_num_neighbors
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
28 --topological_regularization_decay_rate $topological_regularization_decay_rate
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
29
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
30 --num_iterations $num_iterations
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
31 --threshold $threshold
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
32 --only_positive $only_positive
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
33 --only_negative $only_negative
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
34
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
35 --random_seed $random_seed
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
36
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
37 </command>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
38 <inputs>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
39 <param format="eden_sparse_vector" name="infile" type="data" label="Input Graph" help=""/>
2
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
40 <param format="txt" name="target_infile" type="data" label="Target file" help="indicates with -1 and 1 the class"/>
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
41
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
42 <param name="epoch" type="integer" value="10" label="Epoch, Stochastic gradient descend algorithm." help="">
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
43 <validator type="in_range" min="1" />
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
44 </param>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
45 <param name="lambda" type="text" value="1e-4" label="lambda, Stochastic gradient descend algorithm." help="" />
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
46
2
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
47 <!-- Semi-supervised-settings -->
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
48 <param name="threshold" type="float" value="1.0" label="Top and low quantile"
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
49 help="Only the top and low quantile will be used as positives and negative instances. A threshold of 1 means that all unsupervised instaces are used in the next phase.">
2
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
50 <validator type="in_range" min="0.0" />
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
51 </param>
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
52 <param name="num_iterations" type="integer" value="3" label="Number of iterations" />
2
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
53 <param name="only_negative" type="boolean" label="Induce only negative class instances." truevalue="--only_negative" falsevalue="" checked="false" />
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
54 <param name="only_positive" type="boolean" label="Induce only positive class instances." truevalue="--only_positive" falsevalue="" checked="false" />
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
55
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
56
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
57 <param name="topological_regularization_decay_rate" type="float" value="0.01" label="Topological regularization decay rate">
2
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
58 <validator type="in_range" min="0.0" />
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
59 </param>
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
60 <param name="topological_regularization_num_neighbors" type="integer" value="0" label="Topological regularization number of neighbors">
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
61 <validator type="in_range" min="0" />
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
62 </param>
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
63 <param name="sparsification_num_iterations" type="integer" value="0" label="Sparsification number of iterations">
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
64 <validator type="in_range" min="0" />
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
65 </param>
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
66
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
67 <param name="random_seed" type="integer" value="1" label="Random Seed" help="" />
2
a3edc97e056c Uploaded
bgruening
parents: 0
diff changeset
68
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
69 </inputs>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
70 <outputs>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
71 <data format="txt" name="model_outfile" label="Train Model from ${on_string}"/>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
72 </outputs>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
73 <tests>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
74 <test>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
75 <param name="infile" value="3_molceuls.sdf" />
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
76 <output name="outfile" file="3_molecules.gspan" />
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
77 </test>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
78 </tests>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
79 <help>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
80
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
81 .. class:: infomark
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
82
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
83 **What it does**
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
84
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
85 The linear model is induced using the accelerated stochastic gradient descent technique by Léon Bottou and Yann LeCun.
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
86 When the target information is 0, a self-training algorithm is used to impute a positive or negative class to the unsupervised instances.
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
87 If the target information is imbalanced a minority class resampling technique is used to rebalance the training set.
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
88
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
89 @references@
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
90
7
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
91 The code for Stochastic Gradient Descent SVM is adapted from http://leon.bottou.org/projects/sgd. Léon Bottou and Yann LeCun, ''Large Scale Online Learning'',
59b3b6ce10bb Uploaded
bgruening
parents: 2
diff changeset
92 Advances in Neural Information Processing Systems 16, Edited by Sebastian Thrun, Lawrence Saul and Bernhard Schölkopf, MIT Press, Cambridge, MA, 2004.
0
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
93
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
94
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
95
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
96 </help>
99091a5d5c84 Uploaded
bgruening
parents:
diff changeset
97 </tool>