comparison keras_macros.xml @ 26:37e193b3fdd7 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
author bgruening
date Fri, 09 Aug 2019 07:10:13 -0400
parents
children 6edcaa8dbb9f
comparison
equal deleted inserted replaced
25:27903ce9b4be 26:37e193b3fdd7
1 <macros>
2 <token name="@KERAS_VERSION@">0.4.0</token>
3
4 <xml name="macro_stdio">
5 <stdio>
6 <exit_code range="1:" level="fatal" description="Error occurred. Please check Tool Standard Error"/>
7 </stdio>
8 </xml>
9
10 <xml name="keras_optimizer_common" token_lr="0.01">
11 <section name="optimizer_options" title="Optimizer Advanced Options" expanded="false">
12 <param argument="lr" type="float" value="@LR@" optional="true" label="Learning rate" help="float >= 0"/>
13 <yield/>
14 <!--param argument="clipnorm" type="float" value="" optional="true" label="clipnorm" help="float >= 0"/-->
15 <!--param argument="clipvalue" type="float" value="" optional="true" label="clipvalue" help="float >= 0"/-->
16 </section>
17 </xml>
18
19 <xml name="keras_optimizer_common_more" token_lr="0.001">
20 <expand macro="keras_optimizer_common" lr="@LR@">
21 <param argument="epsilon" type="float" value="" label="epsilon" optional="true" help="Fuzz factor. If `None`, defaults to `K.epsilon()`"/>
22 <param argument="decay" type="float" value="0" optional="true" label="decay" help="Learning rate decay over each update."/>
23 <yield/>
24 </expand>
25 </xml>
26
27 <xml name="keras_activations">
28 <param argument="activation" type="select" label="Activation function">
29 <option value="linear" selected="true">None / linear (default)</option>
30 <option value="softmax">softmax</option>
31 <option value="elu">elu</option>
32 <option value="selu">selu</option>
33 <option value="softplus">softplus</option>
34 <option value="softsign">softsign</option>
35 <option value="relu">relu</option>
36 <option value="tanh">tanh</option>
37 <option value="sigmoid">sigmoid</option>
38 <option value="hard_sigmoid">hard_sigmoid</option>
39 <option value="exponential">tanh</option>
40 </param>
41 </xml>
42
43 <xml name="keras_initializers" token_argument="kernel_initializer" token_default_kernel="false" token_default_bias="false" token_default_embeddings="false">
44 <param argument="@ARGUMENT@" type="select" label="@ARGUMENT@">
45 <option value="zeros" selected="@DEFAULT_BIAS@">zero / zeros / Zeros</option>
46 <option value="ones">one / ones / Ones</option>
47 <option value="constant">constant / Constant</option>
48 <option value="random_normal">normal / random_normal / RandomNormal</option>
49 <option value="random_uniform" selected="@DEFAULT_EMBEDDINGS@">uniform / random_uniform / RandomUniform</option>
50 <option value="truncated_normal">truncated_normal / TruncatedNormal</option>
51 <option value="orthogonal">orthogonal / Orthogonal</option>
52 <option value="identity">identity / Identity</option>
53 <option value="glorot_normal">glorot_normal</option>
54 <option value="glorot_uniform" selected="@DEFAULT_KERNEL@">glorot_uniform</option>
55 <option value="he_normal">he_normal</option>
56 <option value="he_uniform">he_uniform</option>
57 <option value="lecun_normal">lecun_normal</option>
58 <option value="lecun_uniform">lecun_uniform</option>
59 </param>
60 </xml>
61
62 <xml name="keras_regularizers" token_argument="kernel_regularizer">
63 <param argument="@ARGUMENT@" type="text" value="(0. , 0.)" optional="true" label="@ARGUMENT@"
64 help="(l1, l2). l1/l2: float; L1/l2 regularization factor. (0., 0.) is equivalent to `None`"/>
65 </xml>
66
67 <xml name="keras_constraints_options">
68 <section name="constraint_options" title="Constraint Advanced Options" expanded="false">
69 <yield/>
70 <param argument="axis" type="text" value="0" help="Integer or list of integers. axis along which to calculate weight norms">
71 <sanitizer>
72 <valid initial="default">
73 <add value="["/>
74 <add value="]"/>
75 </valid>
76 </sanitizer>
77 </param>
78 </section>
79 </xml>
80
81 <xml name="keras_constraints" token_argument="kernel_constraint">
82 <conditional name="@ARGUMENT@">
83 <param argument="constraint_type" type="select" label="@ARGUMENT@">
84 <option value="None" selected="true">None (default)</option>
85 <option value="MaxNorm">maxnorm / max_norm / MaxNorm</option>
86 <option value="NonNeg">nonneg / non_neg / NonNeg</option>
87 <option value="UnitNorm">unitnorm / unit_norm / UnitNorm</option>
88 <option value="MinMaxNorm">min_max_norm / MinMaxNorm</option>
89 </param>
90 <when value="None"/>
91 <when value="MaxNorm">
92 <expand macro="keras_constraints_options">
93 <param argument="max_value" type="float" value="2" help="the maximum norm for the incoming weights."/>
94 </expand>
95 </when>
96 <when value="NonNeg">
97 </when>
98 <when value="UnitNorm">
99 <expand macro="keras_constraints_options"/>
100 </when>
101 <when value="MinMaxNorm">
102 <expand macro="keras_constraints_options">
103 <param argument="min_value" type="float" value="0." help="the minimum norm for the incoming weights."/>
104 <param argument="max_value" type="float" value="1." help="the maximum norm for the incoming weights."/>
105 <param argument="max_value" type="float" value="1." help="rate for enforcing the constraint."/>
106 </expand>
107 </when>
108 </conditional>
109 </xml>
110
111 <xml name="keras_layer_types_core">
112 <option value="Dense">Dense</option>
113 <option value="Activation">Activation</option>
114 <option value="Dropout">Dropout</option>
115 <option value="Flatten">Flatten</option>
116 <option value="Reshape">Reshape</option>
117 <option value="Permute">Permute</option>
118 <option value="RepeatVector">RepeatVector</option>
119 <!--option value="Lambda">Lambda - Not supported</option-->
120 <option value="ActivityRegularization">ActivityRegularization</option>
121 <option value="Masking">Masking</option>
122 <option value="SpatialDropout1D">SpatialDropout1D</option>
123 <option value="SpatialDropout2D">SpatialDropout2D</option>
124 <option value="SpatialDropout3D">SpatialDropout3D</option>
125 </xml>
126
127 <xml name="keras_layer_types_Convolutional">
128 <option value="Conv1D">Conv1D</option>
129 <option value="Conv2D">Conv2D</option>
130 <option value="SeparableConv1D">SeparableConv1D</option>
131 <option value="SeparableConv2D">SeparableConv2D</option>
132 <option value="DepthwiseConv2D">DepthwiseConv2D</option>
133 <option value="Conv2DTranspose">Conv2DTranspose</option>
134 <option value="Conv3D">Conv3D</option>
135 <option value="Conv3DTranspose">Conv3DTranspose</option>
136 <option value="Cropping1D">Cropping1D</option>
137 <option value="Cropping2D">Cropping2D</option>
138 <option value="Cropping3D">Cropping3D</option>
139 <option value="UpSampling1D">UpSampling1D</option>
140 <option value="UpSampling2D">UpSampling2D</option>
141 <option value="UpSampling3D">UpSampling3D</option>
142 <option value="ZeroPadding1D">ZeroPadding1D</option>
143 <option value="ZeroPadding2D">ZeroPadding2D</option>
144 <option value="ZeroPadding3D">ZeroPadding3D</option>
145 </xml>
146
147 <xml name="keras_layer_types_Pooling">
148 <option value="MaxPooling1D">MaxPooling1D</option>
149 <option value="MaxPooling2D">MaxPooling2D</option>
150 <option value="MaxPooling3D">MaxPooling3D</option>
151 <option value="AveragePooling1D">AveragePooling1D</option>
152 <option value="AveragePooling2D">AveragePooling2D</option>
153 <option value="AveragePooling3D">AveragePooling3D</option>
154 <option value="GlobalMaxPooling1D">GlobalMaxPooling1D</option>
155 <option value="GlobalAveragePooling1D">GlobalAveragePooling1D</option>
156 <option value="GlobalMaxPooling2D">GlobalMaxPooling2D</option>
157 <option value="GlobalAveragePooling2D">GlobalAveragePooling2D</option>
158 <option value="GlobalMaxPooling3D">GlobalMaxPooling3D</option>
159 <option value="GlobalAveragePooling3D">GlobalAveragePooling3D</option>
160 </xml>
161
162 <xml name="keras_layer_types_locally_connected">
163 <option value="LocallyConnected1D">LocallyConnected1D</option>
164 <option value="LocallyConnected2D">LocallyConnected2D</option>
165 </xml>
166
167 <xml name="keras_layer_types_recurrent">
168 <option value="RNN">RNN</option>
169 <option value="Masking">Masking</option>
170 <option value="SimpleRNN">SimpleRNN</option>
171 <option value="GRU">GRU</option>
172 <option value="LSTM">LSTM</option>
173 <option value="ConvLSTM2D">ConvLSTM2D</option>
174 <option value="ConvLSTM2DCell">ConvLSTM2DCell</option>
175 <option value="SimpleRNNCell">SimpleRNNCell</option>
176 <option value="GRUCell">GRUCell</option>
177 <option value="LSTMCell">LSTMCell</option>
178 <option value="CuDNNGRU">CuDNNGRU</option>
179 <option value="CuDNNLSTM">Dense</option>
180 </xml>
181
182 <xml name="keras_layer_types_embedding">
183 <option value="Embedding">Embedding</option>
184 </xml>
185
186 <xml name="keras_layer_types_advanced_activations">
187 <option value="LeakyReLU">LeakyReLU</option>
188 <option value="PReLU">PReLU</option>
189 <option value="ELU">ELU</option>
190 <option value="ThresholdedReLU">ThresholdedReLU</option>
191 <option value="Softmax">Softmax</option>
192 <option value="ReLU">ReLU</option>
193 </xml>
194
195 <xml name="keras_layer_types_normalization">
196 <option value="BatchNormalization">BatchNormalization</option>
197 </xml>
198
199 <xml name="keras_layer_types_noise">
200 <option value="GaussianNoise">GaussianNoise</option>
201 <option value="GaussianDropout">GaussianDropout</option>
202 <option value="AlphaDropout">AlphaDropout</option>
203 </xml>
204
205 <xml name="keras_layer_types_merge">
206 <option value="Add">Add</option>
207 <option value="Subtract">Subtract</option>
208 <option value="Multiply">Multiply</option>
209 <option value="Average">Average</option>
210 <option value="Maximum">Maximum</option>
211 <option value="Minimum">Minimum</option>
212 <option value="Concatenate">Concatenate</option>
213 <option value="Dot">Dot</option>
214 </xml>
215
216 <!--Core Layers-->
217
218 <xml name="layer_Dense">
219 <param argument="units" type="integer" value="" optional="false" label="units" help="Positive integer, dimensionality of the output space."/>
220 <section name="layer_options" title="Layer Advanced Options" expanded="false">
221 <expand macro="keras_activations"/>
222 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true" />
223 <expand macro="keras_initializers" default_kernel="true"/>
224 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
225 <expand macro="keras_regularizers"/>
226 <expand macro="keras_regularizers" argument="bias_regularizer"/>
227 <expand macro="keras_regularizers" argument="activity_regularizer"/>
228 <expand macro="keras_constraints"/>
229 <expand macro="keras_constraints" argument="bias_constraint"/>
230 </section>
231 <yield/>
232 </xml>
233
234 <xml name="layer_Dropout">
235 <param argument="rate" type="float" value="" min="0." max="1.0" help="Fraction of the input units to drop."/>
236 <param argument="noise_shape" type="text" value="" help="1D integer tensor representing the shape of the
237 binary dropout mask that will be multiplied with the input."/>
238 <param argument="seed" type="integer" value="" min="0" optional="true" help="A Python integer to use as random seed."/>
239 <yield/>
240 </xml>
241
242 <xml name="layer_Flatten">
243 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
244 <option value="channels_last">channels_last</option>
245 <option value="channels_first">channels_first</option>
246 </param>
247 <yield/>
248 </xml>
249
250 <xml name="layer_Input">
251 <param argument="shape" type="text" value="" help="A shape tuple (integer), not including the batch size.For instance, `shape=(32,)`"/>
252 <!--param argument="batch_shape" type="text" value="" optional="true" help="A shape tuple (integer), including the batch size.For instance, `batch_shape=(10, 32)`"/-->
253 <param argument="name" type="text" value="" optional="true" help="An optional string name for the layer. Unique. autogenerated if it isn't provided."/>
254 <param argument="dtype" type="select" help="The data type expected by the input">
255 <option value="float32" selected="true">float32</option>
256 <option value="float64">float64</option>
257 <option value="int32">int32</option>
258 <option value="int64">int64</option>
259 <!--TODO add more DTYPEs-->
260 </param>
261 <param argument="sparse" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" />
262 <!--param argument="tensor" type="data" format="zip" help="Optional existing tensor to wrap into the `Input` layer."/ -->
263 <yield/>
264 </xml>
265
266 <xml name="layer_Reshape">
267 <param argument="target_shape" type="text" value="" help="Tuple of integers. Does not include the batch axis."/>
268 <yield/>
269 </xml>
270
271 <xml name="layer_Permute">
272 <param argument="dims" type="text" value="" help="Tuple of integers. Permutation pattern, does not include the samples dimension.
273 Indexing starts at 1. For instance, (2, 1) permutes the first and second dimension of the input."/>
274 <yield/>
275 </xml>
276
277 <xml name="layer_RepeatVector">
278 <param argument="n" type="integer" value="" help="repetition factor"/>
279 </xml>
280
281 <xml name="layer_Lambda">
282 <param argument="function" type="text" value="lambda x: " help="The function to be evaluated. Only lambda function is supported!"/>
283 <yield/>
284 </xml>
285
286 <xml name="layer_ActivityRegularization">
287 <param argument="l1" type="float" value="0." min="0." help="L1 regularization factor (positive float)."/>
288 <param argument="l2" type="float" value="0." min="0." help="L2 regularization factor (positive float)."/>
289 <yield/>
290 </xml>
291
292 <xml name="layer_Masking">
293 <param argument="mask_value" type="float" value="0." help="Masks a sequence by using a mask value to skip timesteps."/>
294 <yield/>
295 </xml>
296
297 <xml name="layer_SpatialDropout1D">
298 <param argument="rate" type="float" value="" min="0." max="1." help="Fraction of the input units to drop."/>
299 <yield/>
300 </xml>
301
302 <xml name="layer_SpatialDropout2D">
303 <param argument="rate" type="float" value="" min="0." max="1." help="Fraction of the input units to drop."/>
304 <param argument="data_format" type="select">
305 <option value="channels_last" selected="true">channels_last - the channels dimension (the depth) is at index 3</option>
306 <option value="channels_first">channels_first - the channels dimension (the depth) is at index 1</option>
307 </param>
308 <yield/>
309 </xml>
310
311 <xml name="layer_SpatialDropout3D">
312 <param argument="rate" type="float" value="" min="0." max="1." help="Fraction of the input units to drop."/>
313 <param argument="data_format" type="select">
314 <option value="channels_last" selected="true">channels_last - the channels dimension (the depth) is at index 4</option>
315 <option value="channels_first">channels_first - the channels dimension (the depth) is at index 1</option>
316 </param>
317 <yield/>
318 </xml>
319
320 <!--Convolutional Layers-->
321
322 <xml name="layer_Conv1D">
323 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
324 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of a single integer, specifying the length of the 1D convolution window."/>
325 <param argument="strides" type="text" value="1" help="An integer or tuple/list of a single integer, specifying the stride length of the convolution."/>
326 <section name="layer_options" title="Layer Advanced Options" expanded="false">
327 <param argument="padding" type="select" help="">
328 <option value="valid" selected="true">valid - no padding</option>
329 <option value="same">same - output has the same length as the original input</option>
330 <option value="causal">causal - causal (dilated) convolutions</option>
331 </param>
332 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
333 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, steps, channels)</option>
334 <option value="channels_first">channels_first - inputs with shape (batch, channels, steps)</option>
335 </param>
336 <param argument="dilation_rate" type="text" value="1" help="an integer or tuple/list of a single integer, specifying the dilation rate to use for dilated convolution."/>
337 <expand macro="keras_activations"/>
338 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
339 <expand macro="keras_initializers" default_kernel="true"/>\
340 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
341 <expand macro="keras_regularizers"/>
342 <expand macro="keras_regularizers" argument="bias_regularizer"/>
343 <expand macro="keras_regularizers" argument="activity_regularizer"/>
344 <expand macro="keras_constraints"/>
345 <expand macro="keras_constraints" argument="bias_constraint"/>
346 </section>
347 <yield/>
348 </xml>
349
350 <xml name="layer_Conv2D">
351 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
352 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window."/>
353 <param argument="strides" type="text" value="1" help="An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width."/>
354 <section name="layer_options" title="Layer Advanced Options" expanded="false">
355 <param argument="padding" type="select" help="">
356 <option value="valid" selected="true">valid - no padding</option>
357 <option value="same">same - output has the same length as the original input</option>
358 <!--option value="causal">causal - causal (dilated) convolutions</option-->
359 </param>
360 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
361 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
362 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
363 </param>
364 <param argument="dilation_rate" type="text" value="1" help="an integer or tuple/list of 2 integers, specifying the dilation rate to use for dilated convolution."/>
365 <expand macro="keras_activations"/>
366 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
367 <expand macro="keras_initializers" default_kernel="true"/>\
368 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
369 <expand macro="keras_regularizers"/>
370 <expand macro="keras_regularizers" argument="bias_regularizer"/>
371 <expand macro="keras_regularizers" argument="activity_regularizer"/>
372 <expand macro="keras_constraints"/>
373 <expand macro="keras_constraints" argument="bias_constraint"/>
374 </section>
375 <yield/>
376 </xml>
377
378 <xml name="layer_SeparableConv1D">
379 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
380 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of a single integer, specifying the length of the 1D convolution window."/>
381 <param argument="strides" type="text" value="1" help="An integer or tuple/list of single integer, specifying the stride length of the convolution. "/>
382 <section name="layer_options" title="Layer Advanced Options" expanded="false">
383 <param argument="padding" type="select" help="">
384 <option value="valid" selected="true">valid - no padding</option>
385 <option value="same">same - output has the same length as the original input</option>
386 <!--option value="causal">causal - causal (dilated) convolutions</option-->
387 </param>
388 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
389 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, steps, channels)</option>
390 <option value="channels_first">channels_first - inputs with shape (batch, channels, steps)</option>
391 </param>
392 <param argument="dilation_rate" type="text" value="1" help="an integer or tuple/list of a single integer, specifying the dilation rate to use for dilated convolution. "/>
393 <param argument="depth_multiplier" type="integer" value="1" help="The number of depthwise convolution output channels for each input channel."/>
394 <expand macro="keras_activations"/>
395 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
396 <expand macro="keras_initializers" argument="depthwise_initializer" default_kernel="true"/>
397 <expand macro="keras_initializers" argument="pointwise_initializer" default_kernel="true"/>
398 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
399 <expand macro="keras_regularizers" argument="depthwise_regularizer"/>
400 <expand macro="keras_regularizers" argument="pointwise_regularizer"/>
401 <expand macro="keras_regularizers" argument="bias_regularizer"/>
402 <expand macro="keras_regularizers" argument="activity_regularizer"/>
403 <expand macro="keras_constraints" argument="depthwise_constraint"/>
404 <expand macro="keras_constraints" argument="pointwise_constraint"/>
405 <expand macro="keras_constraints" argument="bias_constraint"/>
406 </section>
407 <yield/>
408 </xml>
409
410 <xml name="layer_SeparableConv2D">
411 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
412 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window."/>
413 <param argument="strides" type="text" value="1" help="An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width."/>
414 <section name="layer_options" title="Layer Advanced Options" expanded="false">
415 <param argument="padding" type="select" help="">
416 <option value="valid" selected="true">valid - no padding</option>
417 <option value="same">same - output has the same length as the original input</option>
418 <!--option value="causal">causal - causal (dilated) convolutions</option-->
419 </param>
420 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
421 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
422 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
423 </param>
424 <param argument="dilation_rate" type="text" value="1" help="an integer or tuple/list of 2 integers, specifying the dilation rate to use for dilated convolution."/>
425 <param argument="depth_multiplier" type="integer" value="1" help="The number of depthwise convolution output channels for each input channel."/>
426 <expand macro="keras_activations"/>
427 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
428 <expand macro="keras_initializers" argument="depthwise_initializer" default_kernel="true"/>
429 <expand macro="keras_initializers" argument="pointwise_initializer" default_kernel="true"/>
430 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
431 <expand macro="keras_regularizers" argument="depthwise_regularizer"/>
432 <expand macro="keras_regularizers" argument="pointwise_regularizer"/>
433 <expand macro="keras_regularizers" argument="bias_regularizer"/>
434 <expand macro="keras_regularizers" argument="activity_regularizer"/>
435 <expand macro="keras_constraints" argument="depthwise_constraint"/>
436 <expand macro="keras_constraints" argument="pointwise_constraint"/>
437 <expand macro="keras_constraints" argument="bias_constraint"/>
438 </section>
439 <yield/>
440 </xml>
441
442 <xml name="layer_DepthwiseConv2D">
443 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
444 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window."/>
445 <param argument="strides" type="text" value="1" help="An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width."/>
446 <section name="layer_options" title="Layer Advanced Options" expanded="false">
447 <param argument="padding" type="select" help="">
448 <option value="valid" selected="true">valid - no padding</option>
449 <option value="same">same - output has the same length as the original input</option>
450 <!--option value="causal">causal - causal (dilated) convolutions</option-->
451 </param>
452 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
453 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
454 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
455 </param>
456 <param argument="dilation_rate" type="text" value="1" help="an integer or tuple/list of 2 integers, specifying the dilation rate to use for dilated convolution."/>
457 <param argument="depth_multiplier" type="integer" value="1" help="The number of depthwise convolution output channels for each input channel."/>
458 <expand macro="keras_activations"/>
459 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
460 <expand macro="keras_initializers" argument="depthwise_initializer" default_kernel="true"/>
461 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
462 <expand macro="keras_regularizers" argument="depthwise_regularizer"/>
463 <expand macro="keras_regularizers" argument="pointwise_regularizer"/>
464 <expand macro="keras_regularizers" argument="bias_regularizer"/>
465 <expand macro="keras_regularizers" argument="activity_regularizer"/>
466 <expand macro="keras_constraints" argument="depthwise_constraint"/>
467 <expand macro="keras_constraints" argument="bias_constraint"/>
468 </section>
469 <yield/>
470 </xml>
471
472 <xml name="layer_Conv2DTranspose">
473 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
474 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window."/>
475 <param argument="strides" type="text" value="1" help="An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width."/>
476 <section name="layer_options" title="Layer Advanced Options" expanded="false">
477 <param argument="padding" type="select" help="">
478 <option value="valid" selected="true">valid - no padding</option>
479 <option value="same">same - output has the same length as the original input</option>
480 <!--option value="causal">causal - causal (dilated) convolutions</option-->
481 </param>
482 <param argument="output_padding" type="text" value="" help="An integer or tuple/list of 2 integers, specifying the amount of padding along the height and width of the output tensor."/>
483 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
484 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
485 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
486 </param>
487 <param argument="dilation_rate" type="text" value="1" help="an integer or tuple/list of 2 integers, specifying the dilation rate to use for dilated convolution."/>
488 <expand macro="keras_activations"/>
489 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
490 <expand macro="keras_initializers" default_kernel="true"/>
491 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
492 <expand macro="keras_regularizers" />
493 <expand macro="keras_regularizers" argument="bias_regularizer"/>
494 <expand macro="keras_regularizers" argument="activity_regularizer"/>
495 <expand macro="keras_constraints"/>
496 <expand macro="keras_constraints" argument="bias_constraint"/>
497 </section>
498 <yield/>
499 </xml>
500
501 <xml name="layer_Conv3D">
502 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
503 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of 3 integers, specifying the depth, height and width of the 3D convolution window."/>
504 <param argument="strides" type="text" value="1" help="An integer or tuple/list of 3 integers, specifying the strides of the convolution along each spatial dimension."/>
505 <section name="layer_options" title="Layer Advanced Options" expanded="false">
506 <param argument="padding" type="select" help="">
507 <option value="valid" selected="true">valid - no padding</option>
508 <option value="same">same - output has the same length as the original input</option>
509 <!--option value="causal">causal - causal (dilated) convolutions</option-->
510 </param>
511 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
512 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
513 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
514 </param>
515 <param argument="dilation_rate" type="text" value="1" help="an integer or tuple/list of 3 integers, specifying the dilation rate to use for dilated convolution."/>
516 <expand macro="keras_activations"/>
517 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
518 <expand macro="keras_initializers" default_kernel="true"/>
519 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
520 <expand macro="keras_regularizers" />
521 <expand macro="keras_regularizers" argument="bias_regularizer"/>
522 <expand macro="keras_regularizers" argument="activity_regularizer"/>
523 <expand macro="keras_constraints"/>
524 <expand macro="keras_constraints" argument="bias_constraint"/>
525 </section>
526 <yield/>
527 </xml>
528
529 <xml name="layer_Conv3DTranspose">
530 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
531 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of 3 integers, specifying the depth, height and width of the 3D convolution window."/>
532 <param argument="strides" type="text" value="1" help="An integer or tuple/list of 3 integers, specifying the strides of the convolution along each spatial dimension."/>
533 <section name="layer_options" title="Layer Advanced Options" expanded="false">
534 <param argument="padding" type="select" help="">
535 <option value="valid" selected="true">valid - no padding</option>
536 <option value="same">same - output has the same length as the original input</option>
537 <!--option value="causal">causal - causal (dilated) convolutions</option-->
538 </param>
539 <param argument="output_padding" type="text" value="" help="An integer or tuple/list of 3 integers, specifying the amount of padding along the depth, height, and width. "/>
540 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
541 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
542 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
543 </param>
544 <param argument="dilation_rate" type="text" value="1" help="an integer or tuple/list of 3 integers, specifying the dilation rate to use for dilated convolution."/>
545 <expand macro="keras_activations"/>
546 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
547 <expand macro="keras_initializers" default_kernel="true"/>
548 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
549 <expand macro="keras_regularizers" />
550 <expand macro="keras_regularizers" argument="bias_regularizer"/>
551 <expand macro="keras_regularizers" argument="activity_regularizer"/>
552 <expand macro="keras_constraints"/>
553 <expand macro="keras_constraints" argument="bias_constraint"/>
554 </section>
555 <yield/>
556 </xml>
557
558 <xml name="layer_Cropping1D">
559 <param argument="cropping" type="text" value="(1, 1)" help="int or tuple of int (length 2) How many units should be trimmed off at the beginning and end of the cropping dimension (axis 1).
560 If a single int is provided, the same value will be used for both."/>
561 <yield/>
562 </xml>
563
564 <xml name="layer_Cropping2D">
565 <param argument="cropping" type="text" value="((0, 0), (0, 0))" help="int, or tuple of 2 ints, or tuple of 2 tuples of 2 ints."/>
566 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
567 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
568 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
569 </param>
570 <yield/>
571 </xml>
572
573 <xml name="layer_Cropping3D">
574 <param argument="cropping" type="text" value="((1, 1), (1, 1), (1, 1))" help="int, or tuple of 3 ints, or tuple of 3 tuples of 2 ints."/>
575 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
576 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
577 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
578 </param>
579 <yield/>
580 </xml>
581
582 <xml name="layer_UpSampling1D">
583 <param argument="size" type="integer" value="2" min="0" help="integer. Upsampling factor."/>
584 <yield/>
585 </xml>
586
587 <xml name="layer_UpSampling2D">
588 <param argument="size" type="text" value="(2, 2)" help="int, or tuple of 2 integers. The upsampling factors for rows and columns."/>
589 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
590 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
591 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
592 </param>
593 <param argument="interpolation" type="select">
594 <option value="nearest" selected="true">nearest</option>
595 <option value="bilinear">bilinear</option>
596 </param>
597 <yield/>
598 </xml>
599
600 <xml name="layer_UpSampling3D">
601 <param argument="size" type="text" value="(2, 2, 2)" help="int, or tuple of 3 integers. The upsampling factors for dim1, dim2 and dim3."/>
602 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
603 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
604 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
605 </param>
606 <yield/>
607 </xml>
608
609 <xml name="layer_ZeroPadding1D">
610 <param argument="padding" type="text" value="1" help="int, or tuple of int (length 2)"/>
611 <yield/>
612 </xml>
613
614 <xml name="layer_ZeroPadding2D">
615 <param argument="padding" type="text" value="(1, 1)" help="int, or tuple of 2 ints, or tuple of 2 tuples of 2 ints."/>
616 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
617 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
618 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
619 </param>
620 <yield/>
621 </xml>
622
623 <xml name="layer_ZeroPadding3D">
624 <param argument="padding" type="text" value="(1, 1, 1)" help="int, or tuple of 3 ints, or tuple of 3 tuples of 2 ints."/>
625 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
626 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
627 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
628 </param>
629 <yield/>
630 </xml>
631
632 <!--Pooling Layers-->
633
634 <xml name="layer_MaxPooling1D">
635 <param name="pool_size" type="integer" value="2" help="Integer, size of the max pooling windows."/>
636 <param name="strides" type="integer" value="" help="Integer, or None. Factor by which to downscale. E.g. 2 will halve the input. If None, it will default to pool_size."/>
637 <param argument="padding" type="select" >
638 <option value="valid" selected="true">valid - no padding</option>
639 <option value="same">same - output has the same length as the original input</option>
640 <!--option value="causal">causal - causal (dilated) convolutions</option-->
641 </param>
642 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
643 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, steps, channels)</option>
644 <option value="channels_first">channels_first - inputs with shape (batch, channels, steps)</option>
645 </param>
646 <yield/>
647 </xml>
648
649 <xml name="layer_MaxPooling2D">
650 <param name="pool_size" type="text" value="(2, 2)" help="integer or tuple of 2 integers, factors by which to downscale (vertical, horizontal)"/>
651 <param name="strides" type="text" value="" help="Integer, tuple of 2 integers, or None. Strides values. If None, it will default to pool_size."/>
652 <param argument="padding" type="select" >
653 <option value="valid" selected="true">valid - no padding</option>
654 <option value="same">same - output has the same length as the original input</option>
655 <!--option value="causal">causal - causal (dilated) convolutions</option-->
656 </param>
657 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
658 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
659 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
660 </param>
661 <yield/>
662 </xml>
663
664 <xml name="layer_MaxPooling3D">
665 <param name="pool_size" type="text" value="(2, 2, 2)" help="tuple of 3 integers, factors by which to downscale (dim1, dim2, dim3).
666 (2, 2, 2) will halve the size of the 3D input in each dimension."/>
667 <param name="strides" type="text" value="" help="tuple of 3 integers, or None. If None, it will default to pool_size."/>
668 <param argument="padding" type="select" >
669 <option value="valid" selected="true">valid - no padding</option>
670 <option value="same">same - output has the same length as the original input</option>
671 <!--option value="causal">causal - causal (dilated) convolutions</option-->
672 </param>
673 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
674 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
675 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
676 </param>
677 <yield/>
678 </xml>
679
680 <xml name="layer_AveragePooling1D">
681 <param name="pool_size" type="integer" value="2" help="Integer, size of the max pooling windows."/>
682 <param name="strides" type="integer" value="" help="Integer, or None. Factor by which to downscale. E.g. 2 will halve the input. If None, it will default to pool_size."/>
683 <param argument="padding" type="select" >
684 <option value="valid" selected="true">valid - no padding</option>
685 <option value="same">same - output has the same length as the original input</option>
686 <!--option value="causal">causal - causal (dilated) convolutions</option-->
687 </param>
688 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
689 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, steps, channels)</option>
690 <option value="channels_first">channels_first - inputs with shape (batch, channels, steps)</option>
691 </param>
692 <yield/>
693 </xml>
694
695 <xml name="layer_AveragePooling2D">
696 <param name="pool_size" type="text" value="(2, 2)" help="integer or tuple of 2 integers, factors by which to downscale (vertical, horizontal)"/>
697 <param name="strides" type="text" value="" help=" Integer, tuple of 2 integers, or None. Strides values. If None, it will default to pool_size."/>
698 <param argument="padding" type="select" >
699 <option value="valid" selected="true">valid - no padding</option>
700 <option value="same">same - output has the same length as the original input</option>
701 <!--option value="causal">causal - causal (dilated) convolutions</option-->
702 </param>
703 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
704 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
705 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
706 </param>
707 <yield/>
708 </xml>
709
710 <xml name="layer_AveragePooling3D">
711 <param name="pool_size" type="text" value="(2, 2, 2)" help="tuple of 3 integers, factors by which to downscale (dim1, dim2, dim3).
712 (2, 2, 2) will halve the size of the 3D input in each dimension."/>
713 <param name="strides" type="text" value="" help="tuple of 3 integers, or None. If None, it will default to pool_size."/>
714 <param argument="padding" type="select" >
715 <option value="valid" selected="true">valid - no padding</option>
716 <option value="same">same - output has the same length as the original input</option>
717 <!--option value="causal">causal - causal (dilated) convolutions</option-->
718 </param>
719 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
720 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
721 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
722 </param>
723 <yield/>
724 </xml>
725
726 <xml name="layer_GlobalMaxPooling1D">
727 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
728 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, steps, channels)</option>
729 <option value="channels_first">channels_first - inputs with shape (batch, channels, steps)</option>
730 </param>
731 <yield/>
732 </xml>
733
734 <xml name="layer_GlobalMaxPooling2D">
735 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
736 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
737 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
738 </param>
739 <yield/>
740 </xml>
741
742 <xml name="layer_GlobalMaxPooling3D">
743 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
744 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
745 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
746 </param>
747 <yield/>
748 </xml>
749
750 <xml name="layer_GlobalAveragePooling1D">
751 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
752 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, steps, channels)</option>
753 <option value="channels_first">channels_first - inputs with shape (batch, channels, steps)</option>
754 </param>
755 <yield/>
756 </xml>
757
758 <xml name="layer_GlobalAveragePooling2D">
759 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
760 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
761 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
762 </param>
763 <yield/>
764 </xml>
765
766 <xml name="layer_GlobalAveragePooling3D">
767 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
768 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)</option>
769 <option value="channels_first">channels_first - inputs with shape (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)</option>
770 </param>
771 <yield/>
772 </xml>
773
774 <!--Locally-connected Layers-->
775
776 <xml name="layer_LocallyConnected1D">
777 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
778 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of a single integer, specifying the length of the 1D convolution window."/>
779 <param argument="strides" type="text" value="1" help="An integer or tuple/list of a single integer, specifying the stride length of the convolution."/>
780 <section name="layer_options" title="Layer Advanced Options" expanded="false">
781 <param argument="padding" type="select" help="">
782 <option value="valid" selected="true">valid - no padding</option>
783 </param>
784 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
785 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, steps, channels)</option>
786 <option value="channels_first">channels_first - inputs with shape (batch, channels, steps)</option>
787 </param>
788 <expand macro="keras_activations"/>
789 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
790 <expand macro="keras_initializers" default_kernel="true"/>\
791 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
792 <expand macro="keras_regularizers"/>
793 <expand macro="keras_regularizers" argument="bias_regularizer"/>
794 <expand macro="keras_regularizers" argument="activity_regularizer"/>
795 <expand macro="keras_constraints"/>
796 <expand macro="keras_constraints" argument="bias_constraint"/>
797 </section>
798 <yield/>
799 </xml>
800
801 <xml name="layer_LocallyConnected2D">
802 <param argument="filters" type="integer" value="" min="0" help="the dimensionality of the output space (i.e. the number of output filters in the convolution)."/>
803 <param argument="kernel_size" type="text" value="" help="An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window."/>
804 <param argument="strides" type="text" value="(1, 1)" help="An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width."/>
805 <section name="layer_options" title="Layer Advanced Options" expanded="false">
806 <param argument="padding" type="select" help="">
807 <option value="valid" selected="true">valid - no padding</option>
808 <option value="same">same - output has the same length as the original input</option>
809 <!--option value="causal">causal - causal (dilated) convolutions</option-->
810 </param>
811 <param argument="data_format" type="select" help="The ordering of the dimensions in the inputs.">
812 <option value="channels_last" selected="true">channels_last - inputs with shape (batch, height, width, channels)</option>
813 <option value="channels_first">channels_first - inputs with shape (batch, channels, height, width)</option>
814 </param>
815 <expand macro="keras_activations"/>
816 <param argument="use_bias" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true"/>
817 <expand macro="keras_initializers" default_kernel="true"/>\
818 <expand macro="keras_initializers" argument="bias_initializer" default_bias="true"/>
819 <expand macro="keras_regularizers"/>
820 <expand macro="keras_regularizers" argument="bias_regularizer"/>
821 <expand macro="keras_regularizers" argument="activity_regularizer"/>
822 <expand macro="keras_constraints"/>
823 <expand macro="keras_constraints" argument="bias_constraint"/>
824 </section>
825 <yield/>
826 </xml>
827
828 <!--Recurrent Layers>
829
830 <xml name="layer_RNN">
831 <param argument="cell" >
832 <section name="layer_options" title="Layer Advanced Options" expanded="false">
833 <param argument="return_sequences" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" />
834 <param argument="return_state" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" />
835 <param argument="go_backwards" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" />
836 <param argument="stateful" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" />
837 <param argument="unroll" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" />
838 <param argument="input_dim" >
839 <param argument="input_length" >
840 </section>
841 <yield/>
842 </xml-->
843
844 <xml name="layer_LSTM">
845 <param argument="units" type="integer" value="" min="1" help="Positive integer, dimensionality of the output space."/>
846 <section name="layer_options" title="Layer Advanced Options" expanded="false">
847 <expand macro="keras_activations"/>
848 </section>
849 <yield/>
850 </xml>
851
852 <!--Embedding Layers-->
853
854 <xml name="layer_Embedding">
855 <param argument="input_dim" type="integer" value="" min="0" help="int > 0. Size of the vocabulary, i.e. maximum integer index + 1."/>
856 <param argument="output_dim" type="integer" value="" min="0" help="int >= 0. Dimension of the dense embedding."/>
857 <section name="layer_options" title="Layer Advanced Options" expanded="false">
858 <expand macro="keras_initializers" argument="embeddings_initializer" default_embeddings="true"/>
859 <expand macro="keras_regularizers" argument="embeddings_regularizer"/>
860 <expand macro="keras_regularizers" argument="activity_regularizer"/>
861 <expand macro="keras_constraints" argument="embeddings_constraint"/>
862 <param argument="mask_zero" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false"/>
863 <param argument="input_length" type="integer" value="" optional="true" min="0" help="Length of input sequences. Required if connecting Flatten then Dense layers upstream"/>
864 </section>
865 <yield/>
866 </xml>
867
868 <!--Merge Layers-->
869
870 <xml name="layer_merge">
871 <param name="merging_layers" type="text" value="[ ]" label="Type the layer index numbers in a list" help="List of numbers">
872 <sanitizer>
873 <valid initial="default">
874 <add value="["/>
875 <add value="]"/>
876 </valid>
877 </sanitizer>
878 </param>
879 <yield/>
880 </xml>
881
882 <xml name="layer_Concatenate" token_type="integer" token_default_value="-1" token_help="Axis along which to concatenate.">
883 <expand macro="layer_merge">
884 <param argument="axis" type="@TYPE@" value="@DEFAULT_VALUE@" help="@HELP@"/>
885 </expand>
886 <yield/>
887 </xml>
888
889 <xml name="layer_Dot">
890 <expand macro="layer_Concatenate" type="text" default_value="" help="Integer or tuple of integers, axis or axes along which to take the dot product.">
891 <param argument="normalize" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" label="Whether to L2-normalize samples along the dot product axis before taking the dot product?"/>
892 </expand>
893 <yield/>
894 </xml>
895
896 <!--Advanced Activations Layers-->
897
898 <xml name="layer_LeakyReLU">
899 <param argument="alpha" type="float" value="0.3" min="0." help="float >= 0. Negative slope coefficient."/>
900 <yield/>
901 </xml>
902
903 <xml name="layer_PReLU">
904 <expand macro="keras_initializers" argument="alpha_initializer" default_bias="true"/>
905 <expand macro="keras_regularizers" argument="alpha_regularizer"/>
906 <expand macro="keras_constraints" argument="alpha_constraint"/>
907 <param argument="shared_axes" type="text" value="" help="the axes along which to share learnable parameters for the activation function. E.g. [1, 2]">
908 <sanitizer>
909 <valid initial="default">
910 <add value="["/>
911 <add value="]"/>
912 </valid>
913 </sanitizer>
914 </param>
915 <yield/>
916 </xml>
917
918 <xml name="layer_ELU">
919 <param argument="alpha" type="float" value="1.0" help="scale for the negative factor."/>
920 <yield/>
921 </xml>
922
923 <xml name="layer_ThresholdedReLU">
924 <param argument="theta" type="float" value="1.0" help="float >= 0. Threshold location of activation."/>
925 <yield/>
926 </xml>
927
928 <xml name="layer_Softmax">
929 <param argument="axis" type="integer" value="-1" help="Integer, axis along which the softmax normalization is applied."/>
930 <yield/>
931 </xml>
932
933 <xml name="layer_ReLU">
934 <param argument="max_value" type="float" value="" min="0." help="float >= 0. Maximum activation value."/>
935 <param argument="negative_slope" type="float" value="0." min="0." help="float >= 0. Negative slope coefficient."/>
936 <param argument="max_value" type="float" value="0." help="float. Threshold value for thresholded activation."/>
937 <yield/>
938 </xml>
939
940 <!--Normalization Layers-->
941
942 <!--Noise layers-->
943
944 <xml name="inbound_nodes_index">
945 <param name="inbound_nodes" type="integer" value="" label="Type the index number of input layer"
946 help="Find the index number at the left top corner of layer configuration block"/>
947 </xml>
948
949
950 <!-- Keras CallBacks -->
951
952 <xml name="keras_callbacks">
953 <repeat name="callbacks" min="1" max="5" title="callback">
954 <conditional name="callback_selection">
955 <param name="callback_type" type="select" label="Choose a callback">
956 <option value="None" selected="true">None</option>
957 <option value="EarlyStopping">EarlyStopping -- Stop training when a monitored quantity has stopped improving</option>
958 <!--option value="KerasTensorBoard">TensorBoard</option-->
959 <!--option value="KerasLearningRateScheduler">LearningRateScheduler</option-->
960 <!--option value="RemoteMonitor">RemoteMonitor - Stream events to a server</option> -->
961 <!--option value="ModelCheckpoint">ModelCheckpoint - Save the model after every epoch</option>-->
962 <option value="TerminateOnNaN">TerminateOnNaN -- Terminates training when a NaN loss is encountered.</option>
963 <option value="ReduceLROnPlateau">ReduceLROnPlateau -- Reduce learning rate when a metric has stopped improving</option>
964 <option value="CSVLogger">CSVLogger -- Streams epoch results to a csv file</option>
965 </param>
966 <when value="None"/>
967 <when value="EarlyStopping">
968 <expand macro="keras_callback_common_options">
969 <param argument="min_delta" type="float" value="0" optional="true" help="Minimum change in the monitored quantity to qualify as an improvement."/>
970 <param argument="patience" type="integer" value="0" min="0" help="Number of epochs with no improvement after which training will be stopped."/>
971 <param argument="baseline" type="float" value="" optional="true" help="Baseline value for the monitored quantity to reach. Training will stop if the model doesn't show improvement over the baseline."/>
972 <param argument="restore_best_weights" type="boolean" truevalue="booltrue" falsevalue="boolfalse" checked="false" help="Whether to restore model weights from the epoch with the best value of the monitored quantity"/>
973 </expand>
974 </when>
975 <!--when value="TensorBoard">
976 <param argument="histogram_freq" />
977 <param argument="batch_size" />
978 <param argument="write_graph" />
979 <param argument="write_grads" />
980 <param argument="write_images" />
981 <param argument="embeddings_layer_names" />
982 <param argument="embeddings_metadata" />
983 <param argument="embeddings_data" />
984 <param argument="update_freq" />
985 </when-->
986 <!--when value="RemoteMonitor">
987 <param argument="root" type="text" value="http://localhost:9000" help="Root url of the target server."/>
988 <param argument="path" type="text" value="/publish/epoch/end/" help="Path relative to root to which the events will be sent. E.g., root + '/publish/epoch/end/'"/>
989 <param argument="field" type="text" value="data" optional="true" help="JSON field under which the data will be stored. The field is used only if the payload is sent within a form (i.e. send_as_json is set to False)."/>
990 <param argument="headers" type="text" value="" optional="true" help="Dictionary; optional custom HTTP headers.">
991 <sanitizer>
992 <valid initial="default">
993 <add value="{"/>
994 <add value="}"/>
995 </valid>
996 </sanitizer>
997 </param>
998 <param argument="send_as_json" type="boolean" truevalue="booltrue" falsevalue="boolfalse" checked="false" help="Whether the request should be send as application/json."/>
999 </when>
1000 <when value="ModelCheckpoint">
1001 <expand macro="keras_callback_common_options">
1002 <param argument="save_best_only" type="boolean" truevalue="booltrue" falsevalue="boolfalse" checked="false" help="If True, the latest best model according to the quantity monitored will not be overwritten."/>
1003 <param argument="save_weights_only" type="boolean" truevalue="booltrue" falsevalue="boolfalse" checked="true" help="If True, then only the model's weights will be saved, else the full model is saved."/>
1004 <param argument="period" type="integer" value="1" min="1" help="Interval (number of epochs) between checkpoints."/>
1005 </expand>
1006 </when>-->
1007 <when value="TerminateOnNaN"/>
1008 <when value="ReduceLROnPlateau">
1009 <expand macro="keras_callback_common_options">
1010 <param argument="factor" type="float" value="0.1" help="Factor by which the learning rate will be reduced. new_lr = lr * factor"/>
1011 <param argument="patience" type="integer" value="10" help="Number of epochs with no improvement after which learning rate will be reduced."/>
1012 <param argument="min_delta" type="float" value="0.0001" help="Threshold for measuring the new optimum, to only focus on significant changes."/>
1013 <param argument="cooldown" type="integer" value="0" help="Number of epochs to wait before resuming normal operation after lr has been reduced."/>
1014 <param argument="min_lr" type="float" value="0" help="Lower bound on the learning rate."/>
1015 </expand>
1016 </when>
1017 <when value="CSVLogger"/>
1018 </conditional>
1019 </repeat>
1020 </xml>
1021
1022 <xml name="keras_callback_common_options">
1023 <param argument="monitor" type="select" help="Quantity to be monitored.">
1024 <option value="val_loss" selected="true">val_loss</option>
1025 <option value="loss">loss</option>
1026 </param>
1027 <param argument="mode" type="select">
1028 <option value="auto" selected="true">auto -- the direction is automatically inferred from the name of the monitored quantity</option>
1029 <option value="min">min -- training will stop when the quantity monitored has stopped decreasing</option>
1030 <option value="max">max -- training will stop when the quantity monitored has stopped increasing</option>
1031 </param>
1032 <yield/>
1033 </xml>
1034
1035 <!--Batch online data generators-->
1036
1037 <xml name="params_fasta_dna_batch_generator">
1038 <param argument="seq_length" type="integer" value="1000" optional="true" help="Integer. Sequence length or number of bases."/>
1039 <param argument="shuffle" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="true" help="Whether to shuffle the data between epochs."/>
1040 <param argument="seed" type="integer" value="" optional="true" help="Integer, random seed for data shuffling"/>
1041 </xml>
1042
1043 <xml name="params_fasta_protein_batch_generator">
1044 <expand macro="params_fasta_dna_batch_generator"/>
1045 </xml>
1046
1047 <xml name="params_genomic_interval_batch_generator">
1048 <expand macro="params_fasta_dna_batch_generator"/>
1049 <param argument="blacklist_regions" type="select" help="Tabix-indexed list of regions from which we should not output sequences">
1050 <option value="hg38" selected="true">hg38</option>
1051 <option value="hg19">hg19</option>
1052 </param>
1053 <param argument="center_bin_to_predict" type="integer" value="200" optional="true" help="Query the tabix-indexed file for a region of length."/>
1054 <param argument="feature_thresholds" type="float" value="0.5" optional="true" help="Threshold values to determine target value."/>
1055 <param argument="random_state" type="integer" value="" optional="true" help="Random seed number, to control the sample position in each invertal."/>
1056 </xml>
1057
1058 <xml name="params_image_batch_generator">
1059 </xml>
1060
1061
1062 <!--composite params macro-->
1063
1064 <xml name="keras_compile_params_section">
1065 <section name="compile_params" title="Compile Parameters" expanded="true">
1066 <param name="loss" type="select" label="Select a loss function">
1067 <option value="binary_crossentropy" selected="true">binary_crossentropy</option>
1068 <option value="mean_squared_error">mse / MSE/ mean_squared_error</option>
1069 <option value="mean_absolute_error">mae / MAE / mean_absolute_error</option>
1070 <option value="mean_absolute_percentage_error">mape / MAPE / mean_absolute_percentage_error</option>
1071 <option value="mean_squared_logarithmic_error">msle / MSLE / mean_squared_logarithmic_error</option>
1072 <option value="squared_hinge">squared_hinge</option>
1073 <option value="hinge">hinge</option>
1074 <option value="categorical_hinge">categorical_hinge</option>
1075 <option value="logcosh">logcosh</option>
1076 <option value="categorical_crossentropy">categorical_crossentropy</option>
1077 <option value="sparse_categorical_crossentropy">sparse_categorical_crossentropy</option>
1078 <option value="kullback_leibler_divergence">kld / KLD / kullback_leibler_divergence</option>
1079 <option value="poisson">poisson</option>
1080 <option value="cosine_proximity">cosine / cosine_proximity</option>
1081 </param>
1082 <conditional name="optimizer_selection">
1083 <param name="optimizer_type" type="select" label="Select an optimizer">
1084 <option value="SGD" selected="true">SGD - Stochastic gradient descent optimizer </option>
1085 <option value="RMSprop">RMSprop - RMSProp optimizer </option>
1086 <option value="Adagrad">Adagrad - Adagrad optimizer </option>
1087 <option value="Adadelta">Adadelta - Adadelta optimizer </option>
1088 <option value="Adam">Adam - Adam optimizer </option>
1089 <option value="Adamax">Adamax - A variant of Adam based on the infinity norm </option>
1090 <option value="Nadam">Nadam - Nesterov Adam optimizer </option>
1091 </param>
1092 <when value="SGD">
1093 <expand macro="keras_optimizer_common">
1094 <param argument="momentum" type="float" value="0" optional="true" label="Momentum"
1095 help="float >= 0. Parameter that accelerates SGD in the relevant direction and dampens oscillations."/>
1096 <param argument="decay" type="float" value="0" label="Decay" optional="true" help="float &gt;= 0. Learning rate decay over each update."/>
1097 <param argument="nesterov" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" label="Whether to apply Nesterov momentum"/>
1098 </expand>
1099 </when>
1100 <when value="RMSprop">
1101 <expand macro="keras_optimizer_common_more" lr="0.001">
1102 <param argument="rho" type="float" value="0.9" optional="true" label="rho" help="float &gt;= 0."/>
1103 </expand>
1104 </when>
1105 <when value="Adagrad">
1106 <expand macro="keras_optimizer_common_more" lr="0.001"/>
1107 </when>
1108 <when value="Adadelta">
1109 <expand macro="keras_optimizer_common_more" lr="1.0">
1110 <param argument="rho" type="float" value="0.95" optional="true" label="rho" help="float &gt;= 0."/>
1111 </expand>
1112 </when>
1113 <when value="Adam">
1114 <expand macro="keras_optimizer_common_more" lr="0.001">
1115 <param argument="beta_1" type="float" value="0.9" optional="true" label="beta_1" help="float, 0 &lt; beta &lt; 1. Generally close to 1."/>
1116 <param argument="beta_2" type="float" value="0.999" optional="true" label="beta_2" help="float, 0 &lt; beta &lt; 1. Generally close to 1."/>
1117 <param argument="amsgrad" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" label="Whether to apply the AMSGrad variant?"
1118 help="Refer to paper `On the Convergence of Adam and Beyond`"/>
1119 </expand>
1120 </when>
1121 <when value="Adamax">
1122 <expand macro="keras_optimizer_common_more" lr="0.002">
1123 <param argument="beta_1" type="float" value="0.9" optional="true" label="beta_1" help="float, 0 &lt; beta &lt; 1. Generally close to 1."/>
1124 <param argument="beta_2" type="float" value="0.999" optional="true" label="beta_2" help="float, 0 &lt; beta &lt; 1. Generally close to 1."/>
1125 </expand>
1126 </when>
1127 <when value="Nadam">
1128 <expand macro="keras_optimizer_common" lr="0.002">
1129 <param argument="beta_1" type="float" value="0.9" optional="true" label="beta_1" help="float, 0 &lt; beta &lt; 1. Generally close to 1."/>
1130 <param argument="beta_2" type="float" value="0.999" optional="true" label="beta_2" help="float, 0 &lt; beta &lt; 1. Generally close to 1."/>
1131 <param argument="epsilon" type="float" value="" label="epsilon" optional="true" help="Fuzz factor. If `None`, defaults to `K.epsilon()`"/>
1132 <param argument="schedule_decay" type="float" value="0.004" optional="true" label="schedule_decay" help="float, 0 &lt; beta &lt; 1."/>
1133 </expand>
1134 </when>
1135 </conditional>
1136 <param name="metrics" type="select" optional="true" multiple="true" label="Select metrics">
1137 <option value="acc" selected="true">acc / accruracy</option>
1138 <option value="binary_accuracy">binary_accuracy</option>
1139 <option value="categorical_accuracy">categorical_accuracy</option>
1140 <option value="sparse_categorical_accuracy">sparse_categorical_accuracy</option>
1141 <option value="mse">mse / MSE / mean_squared_error</option>
1142 <option value="mae">mae / MAE / mean_absolute_error</option>
1143 <option value="mae">mape / MAPE / mean_absolute_percentage_error</option>
1144 <option value="cosine_proximity">cosine_proximity</option>
1145 <option value="cosine">cosine</option>
1146 <option value="none">none</option>
1147 </param>
1148 </section>
1149 </xml>
1150
1151 <xml name="keras_fit_params_section">
1152 <section name="fit_params" title="Fit Parameters" expanded="true">
1153 <param name="epochs" type="integer" value="1" min="1" label="epochs"/>
1154 <param name="batch_size" type="integer" value="32" optional="true" label="batch_size" help="Integer or blank for 32"/>
1155 <param name="steps_per_epoch" type="integer" value="" optional="true" label="steps_per_epoch" help="The number of steps (batches of samples) before declaring one epoch finished and starting the next epoch. The default None is equal to the number of samples in your dataset divided by the batch size, or 1 if that cannot be determined."/>
1156 <param name="validation_steps" type="integer" value="" optional="true" label="validation_steps" help="Default None. Total number of steps (batches of samples) to validate before stopping." />
1157 <!--`validation_freq` will be available in next keras version-->
1158 <!--param name="validation_freq" type="integer" value="1" optional="true" label="validation_freq" help="Integer only at current moment. If an integer, specifies how many training epochs to run before a new validation run is performed."/-->
1159 <expand macro="keras_callbacks"/>
1160 </section>
1161 </xml>
1162
1163 <!--Citation-->
1164 <xml name="keras_citation">
1165 <citation type="bibtex">
1166 @misc{chollet2015keras,
1167 title={Keras},
1168 url={https://keras.io},
1169 author={Chollet, Fran\c{c}ois and others},
1170 year={2015},
1171 howpublished={https://keras.io},
1172 }
1173 </citation>
1174 </xml>
1175
1176 <xml name="tensorflow_citation">
1177 <citation type="bibtex">
1178 @misc{tensorflow2015-whitepaper,
1179 title={ {TensorFlow}: Large-Scale Machine Learning on Heterogeneous Systems},
1180 url={https://www.tensorflow.org/},
1181 note={Software available from tensorflow.org},
1182 author={
1183 Mart\'{\i}n~Abadi and
1184 Ashish~Agarwal and
1185 Paul~Barham and
1186 Eugene~Brevdo and
1187 Zhifeng~Chen and
1188 Craig~Citro and
1189 Greg~S.~Corrado and
1190 Andy~Davis and
1191 Jeffrey~Dean and
1192 Matthieu~Devin and
1193 Sanjay~Ghemawat and
1194 Ian~Goodfellow and
1195 Andrew~Harp and
1196 Geoffrey~Irving and
1197 Michael~Isard and
1198 Yangqing Jia and
1199 Rafal~Jozefowicz and
1200 Lukasz~Kaiser and
1201 Manjunath~Kudlur and
1202 Josh~Levenberg and
1203 Dandelion~Man\'{e} and
1204 Rajat~Monga and
1205 Sherry~Moore and
1206 Derek~Murray and
1207 Chris~Olah and
1208 Mike~Schuster and
1209 Jonathon~Shlens and
1210 Benoit~Steiner and
1211 Ilya~Sutskever and
1212 Kunal~Talwar and
1213 Paul~Tucker and
1214 Vincent~Vanhoucke and
1215 Vijay~Vasudevan and
1216 Fernanda~Vi\'{e}gas and
1217 Oriol~Vinyals and
1218 Pete~Warden and
1219 Martin~Wattenberg and
1220 Martin~Wicke and
1221 Yuan~Yu and
1222 Xiaoqiang~Zheng},
1223 year={2015},
1224 }
1225 </citation>
1226 </xml>
1227
1228 </macros>