comparison keras_model_config.xml @ 9:4471d2b2de79 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
author bgruening
date Tue, 13 Apr 2021 18:25:32 +0000
parents 0fd7d8e90e2a
children 6eb4e7fb0f91
comparison
equal deleted inserted replaced
8:2a853a2d2e72 9:4471d2b2de79
1 <tool id="keras_model_config" name="Create a deep learning model architecture" version="@KERAS_VERSION@"> 1 <tool id="keras_model_config" name="Create a deep learning model architecture" version="@KERAS_VERSION@" profile="20.05">
2 <description>using Keras</description> 2 <description>using Keras</description>
3 <macros> 3 <macros>
4 <import>main_macros.xml</import> 4 <import>main_macros.xml</import>
5 <import>keras_macros.xml</import> 5 <import>keras_macros.xml</import>
6 </macros> 6 </macros>
7 <expand macro="python_requirements"/> 7 <expand macro="python_requirements" />
8 <expand macro="macro_stdio"/> 8 <expand macro="macro_stdio" />
9 <version_command>echo "@KERAS_VERSION@"</version_command> 9 <version_command>echo "@KERAS_VERSION@"</version_command>
10 <command> 10 <command>
11 <![CDATA[ 11 <![CDATA[
12 python '$__tool_directory__/keras_deep_learning.py' 12 python '$__tool_directory__/keras_deep_learning.py'
13 --inputs '$inputs' 13 --inputs '$inputs'
14 --tool_id 'keras_model_config' 14 --tool_id 'keras_model_config'
15 --outfile '$outfile' 15 --outfile '$outfile'
16 ]]> 16 ]]>
17 </command> 17 </command>
18 <configfiles> 18 <configfiles>
19 <inputs name="inputs"/> 19 <inputs name="inputs" />
20 </configfiles> 20 </configfiles>
21 <inputs> 21 <inputs>
22 <conditional name="model_selection"> 22 <conditional name="model_selection">
23 <param name="model_type" type="select" label="Select keras model type"> 23 <param name="model_type" type="select" label="Select keras model type">
24 <option value="sequential" selected="true">Sequential</option> 24 <option value="sequential" selected="true">Sequential</option>
25 <option value="functional">Model (functional API)</option> 25 <option value="functional">Model (functional API)</option>
26 </param>
27 <when value="sequential">
28 <param argument="input_shape" type="text" value="(32, )" optional="true" label="input_shape" help="Tuple of integers or None. Required for the first layer."/>
29 <repeat name="layers" min="1" max="500" title="LAYER">
30 <conditional name="layer_selection">
31 <param name="layer_type" type="select" label="Choose the type of layer">
32 <expand macro="keras_layer_types_core"/>
33 <expand macro="keras_layer_types_Convolutional"/>
34 <expand macro="keras_layer_types_Pooling"/>
35 <expand macro="keras_layer_types_locally_connected"/>
36 <expand macro="keras_layer_types_recurrent"/>
37 <expand macro="keras_layer_types_embedding"/>
38 <expand macro="keras_layer_types_advanced_activations"/>
39 <expand macro="keras_layer_types_normalization"/>
40 <expand macro="keras_layer_types_noise"/>
41 </param> 26 </param>
42 <when value="Dense"> 27 <when value="sequential">
43 <expand macro="layer_Dense"/> 28 <param argument="input_shape" type="text" value="(32, )" optional="true" label="input_shape" help="Tuple of integers or None. Required for the first layer." />
29 <repeat name="layers" min="1" max="500" title="LAYER">
30 <conditional name="layer_selection">
31 <param name="layer_type" type="select" label="Choose the type of layer">
32 <expand macro="keras_layer_types_core" />
33 <expand macro="keras_layer_types_Convolutional" />
34 <expand macro="keras_layer_types_Pooling" />
35 <expand macro="keras_layer_types_locally_connected" />
36 <expand macro="keras_layer_types_recurrent" />
37 <expand macro="keras_layer_types_embedding" />
38 <expand macro="keras_layer_types_advanced_activations" />
39 <expand macro="keras_layer_types_normalization" />
40 <expand macro="keras_layer_types_noise" />
41 </param>
42 <when value="Dense">
43 <expand macro="layer_Dense" />
44 </when>
45 <when value="Activation">
46 <expand macro="keras_activations" />
47 </when>
48 <when value="Dropout">
49 <expand macro="layer_Dropout" />
50 </when>
51 <when value="Flatten">
52 <expand macro="layer_Flatten" />
53 </when>
54 <when value="Reshape">
55 <expand macro="layer_Reshape" />
56 </when>
57 <when value="Permute">
58 <expand macro="layer_Permute" />
59 </when>
60 <when value="RepeatVector">
61 <expand macro="layer_RepeatVector" />
62 </when>
63 <when value="ActivityRegularization">
64 <expand macro="layer_ActivityRegularization" />
65 </when>
66 <when value="Masking">
67 <expand macro="layer_Masking" />
68 </when>
69 <when value="SpatialDropout1D">
70 <expand macro="layer_SpatialDropout1D" />
71 </when>
72 <when value="SpatialDropout2D">
73 <expand macro="layer_SpatialDropout2D" />
74 </when>
75 <when value="SpatialDropout3D">
76 <expand macro="layer_SpatialDropout3D" />
77 </when>
78 <when value="Conv1D">
79 <expand macro="layer_Conv1D" />
80 </when>
81 <when value="Conv2D">
82 <expand macro="layer_Conv2D" />
83 </when>
84 <when value="SeparableConv1D">
85 <expand macro="layer_SeparableConv1D" />
86 </when>
87 <when value="SeparableConv2D">
88 <expand macro="layer_SeparableConv2D" />
89 </when>
90 <when value="DepthwiseConv2D">
91 <expand macro="layer_DepthwiseConv2D" />
92 </when>
93 <when value="Conv2DTranspose">
94 <expand macro="layer_Conv2DTranspose" />
95 </when>
96 <when value="Conv3D">
97 <expand macro="layer_Conv3D" />
98 </when>
99 <when value="Conv3DTranspose">
100 <expand macro="layer_Conv3DTranspose" />
101 </when>
102 <when value="Cropping1D">
103 <expand macro="layer_Cropping1D" />
104 </when>
105 <when value="Cropping2D">
106 <expand macro="layer_Cropping2D" />
107 </when>
108 <when value="Cropping3D">
109 <expand macro="layer_Cropping3D" />
110 </when>
111 <when value="UpSampling1D">
112 <expand macro="layer_UpSampling1D" />
113 </when>
114 <when value="UpSampling2D">
115 <expand macro="layer_UpSampling2D" />
116 </when>
117 <when value="UpSampling3D">
118 <expand macro="layer_UpSampling3D" />
119 </when>
120 <when value="ZeroPadding1D">
121 <expand macro="layer_ZeroPadding1D" />
122 </when>
123 <when value="ZeroPadding2D">
124 <expand macro="layer_ZeroPadding2D" />
125 </when>
126 <when value="ZeroPadding3D">
127 <expand macro="layer_ZeroPadding3D" />
128 </when>
129 <when value="MaxPooling1D">
130 <expand macro="layer_MaxPooling1D" />
131 </when>
132 <when value="MaxPooling2D">
133 <expand macro="layer_MaxPooling2D" />
134 </when>
135 <when value="MaxPooling3D">
136 <expand macro="layer_MaxPooling3D" />
137 </when>
138 <when value="AveragePooling1D">
139 <expand macro="layer_AveragePooling1D" />
140 </when>
141 <when value="AveragePooling2D">
142 <expand macro="layer_AveragePooling2D" />
143 </when>
144 <when value="AveragePooling3D">
145 <expand macro="layer_AveragePooling3D" />
146 </when>
147 <when value="GlobalMaxPooling1D">
148 <expand macro="layer_GlobalMaxPooling1D" />
149 </when>
150 <when value="GlobalAveragePooling1D">
151 <expand macro="layer_GlobalAveragePooling1D" />
152 </when>
153 <when value="GlobalMaxPooling2D">
154 <expand macro="layer_GlobalMaxPooling2D" />
155 </when>
156 <when value="GlobalAveragePooling2D">
157 <expand macro="layer_GlobalAveragePooling2D" />
158 </when>
159 <when value="GlobalMaxPooling3D">
160 <expand macro="layer_GlobalMaxPooling3D" />
161 </when>
162 <when value="GlobalAveragePooling3D">
163 <expand macro="layer_GlobalAveragePooling3D" />
164 </when>
165 <when value="LocallyConnected1D">
166 <expand macro="layer_LocallyConnected1D" />
167 </when>
168 <when value="LocallyConnected2D">
169 <expand macro="layer_LocallyConnected2D" />
170 </when>
171 <when value="SimpleRNN">
172 <expand macro="layer_SimpleRNN" />
173 </when>
174 <when value="GRU">
175 <expand macro="layer_GRU" />
176 </when>
177 <when value="LSTM">
178 <expand macro="layer_LSTM" />
179 </when>
180 <when value="ConvLSTM2D">
181 <expand macro="layer_ConvLSTM2D" />
182 </when>
183 <when value="ConvLSTM2DCell">
184 <expand macro="layer_ConvLSTM2DCell" />
185 </when>
186 <when value="SimpleRNNCell">
187 <expand macro="layer_SimpleRNNCell" />
188 </when>
189 <when value="GRUCell">
190 <expand macro="layer_GRUCell" />
191 </when>
192 <when value="LSTMCell">
193 <expand macro="layer_LSTMCell" />
194 </when>
195 <when value="CuDNNGRU">
196 <expand macro="layer_CuDNNGRU" />
197 </when>
198 <when value="CuDNNLSTM">
199 <expand macro="layer_CuDNNLSTM" />
200 </when>
201 <when value="Embedding">
202 <expand macro="layer_Embedding" />
203 </when>
204 <when value="LeakyReLU">
205 <expand macro="layer_LeakyReLU" />
206 </when>
207 <when value="PReLU">
208 <expand macro="layer_PReLU" />
209 </when>
210 <when value="ELU">
211 <expand macro="layer_ELU" />
212 </when>
213 <when value="ThresholdedReLU">
214 <expand macro="layer_ThresholdedReLU" />
215 </when>
216 <when value="Softmax">
217 <expand macro="layer_Softmax" />
218 </when>
219 <when value="ReLU">
220 <expand macro="layer_ReLU" />
221 </when>
222 <when value="BatchNormalization">
223 <expand macro="layer_BatchNormalization" />
224 </when>
225 <when value="GaussianNoise">
226 <expand macro="layer_GaussianNoise" />
227 </when>
228 <when value="GaussianDropout">
229 <expand macro="layer_GaussianDropout" />
230 </when>
231 <when value="AlphaDropout">
232 <expand macro="layer_AlphaDropout" />
233 </when>
234 </conditional>
235 </repeat>
44 </when> 236 </when>
45 <when value="Activation"> 237 <when value="functional">
46 <expand macro="keras_activations"/> 238 <repeat name="layers" min="1" max="500" title="LAYER">
239 <conditional name="layer_selection">
240 <param name="layer_type" type="select" label="Choose the type of layer">
241 <option value="Input">Input</option>
242 <expand macro="keras_layer_types_core" />
243 <expand macro="keras_layer_types_Convolutional" />
244 <expand macro="keras_layer_types_Pooling" />
245 <expand macro="keras_layer_types_locally_connected" />
246 <expand macro="keras_layer_types_recurrent" />
247 <expand macro="keras_layer_types_merge" />
248 <expand macro="keras_layer_types_embedding" />
249 <expand macro="keras_layer_types_advanced_activations" />
250 <expand macro="keras_layer_types_normalization" />
251 <expand macro="keras_layer_types_noise" />
252 </param>
253 <when value="Input">
254 <expand macro="layer_Input" />
255 </when>
256 <when value="Dense">
257 <expand macro="layer_Dense">
258 <expand macro="inbound_nodes_index" />
259 </expand>
260 </when>
261 <when value="Activation">
262 <expand macro="keras_activations">
263 <expand macro="inbound_nodes_index" />
264 </expand>
265 </when>
266 <when value="Dropout">
267 <expand macro="layer_Dropout">
268 <expand macro="inbound_nodes_index" />
269 </expand>
270 </when>
271 <when value="Flatten">
272 <expand macro="layer_Flatten">
273 <expand macro="inbound_nodes_index" />
274 </expand>
275 </when>
276 <when value="Reshape">
277 <expand macro="layer_Reshape">
278 <expand macro="inbound_nodes_index" />
279 </expand>
280 </when>
281 <when value="Permute">
282 <expand macro="layer_Permute">
283 <expand macro="inbound_nodes_index" />
284 </expand>
285 </when>
286 <when value="RepeatVector">
287 <expand macro="layer_RepeatVector">
288 <expand macro="inbound_nodes_index" />
289 </expand>
290 </when>
291 <when value="ActivityRegularization">
292 <expand macro="layer_ActivityRegularization">
293 <expand macro="inbound_nodes_index" />
294 </expand>
295 </when>
296 <when value="Masking">
297 <expand macro="layer_Masking">
298 <expand macro="inbound_nodes_index" />
299 </expand>
300 </when>
301 <when value="SpatialDropout1D">
302 <expand macro="layer_SpatialDropout1D">
303 <expand macro="inbound_nodes_index" />
304 </expand>
305 </when>
306 <when value="SpatialDropout2D">
307 <expand macro="layer_SpatialDropout2D">
308 <expand macro="inbound_nodes_index" />
309 </expand>
310 </when>
311 <when value="SpatialDropout3D">
312 <expand macro="layer_SpatialDropout3D">
313 <expand macro="inbound_nodes_index" />
314 </expand>
315 </when>
316 <when value="Conv1D">
317 <expand macro="layer_Conv1D">
318 <expand macro="inbound_nodes_index" />
319 </expand>
320 </when>
321 <when value="Conv2D">
322 <expand macro="layer_Conv2D">
323 <expand macro="inbound_nodes_index" />
324 </expand>
325 </when>
326 <when value="SeparableConv1D">
327 <expand macro="layer_SeparableConv1D">
328 <expand macro="inbound_nodes_index" />
329 </expand>
330 </when>
331 <when value="SeparableConv2D">
332 <expand macro="layer_SeparableConv2D">
333 <expand macro="inbound_nodes_index" />
334 </expand>
335 </when>
336 <when value="DepthwiseConv2D">
337 <expand macro="layer_DepthwiseConv2D">
338 <expand macro="inbound_nodes_index" />
339 </expand>
340 </when>
341 <when value="Conv2DTranspose">
342 <expand macro="layer_Conv2DTranspose">
343 <expand macro="inbound_nodes_index" />
344 </expand>
345 </when>
346 <when value="Conv3D">
347 <expand macro="layer_Conv3D">
348 <expand macro="inbound_nodes_index" />
349 </expand>
350 </when>
351 <when value="Conv3DTranspose">
352 <expand macro="layer_Conv3DTranspose">
353 <expand macro="inbound_nodes_index" />
354 </expand>
355 </when>
356 <when value="Cropping1D">
357 <expand macro="layer_Cropping1D">
358 <expand macro="inbound_nodes_index" />
359 </expand>
360 </when>
361 <when value="Cropping2D">
362 <expand macro="layer_Cropping2D">
363 <expand macro="inbound_nodes_index" />
364 </expand>
365 </when>
366 <when value="Cropping3D">
367 <expand macro="layer_Cropping3D">
368 <expand macro="inbound_nodes_index" />
369 </expand>
370 </when>
371 <when value="UpSampling1D">
372 <expand macro="layer_UpSampling1D">
373 <expand macro="inbound_nodes_index" />
374 </expand>
375 </when>
376 <when value="UpSampling2D">
377 <expand macro="layer_UpSampling2D">
378 <expand macro="inbound_nodes_index" />
379 </expand>
380 </when>
381 <when value="UpSampling3D">
382 <expand macro="layer_UpSampling3D">
383 <expand macro="inbound_nodes_index" />
384 </expand>
385 </when>
386 <when value="ZeroPadding1D">
387 <expand macro="layer_ZeroPadding1D">
388 <expand macro="inbound_nodes_index" />
389 </expand>
390 </when>
391 <when value="ZeroPadding2D">
392 <expand macro="layer_ZeroPadding2D">
393 <expand macro="inbound_nodes_index" />
394 </expand>
395 </when>
396 <when value="ZeroPadding3D">
397 <expand macro="layer_ZeroPadding3D">
398 <expand macro="inbound_nodes_index" />
399 </expand>
400 </when>
401 <when value="MaxPooling1D">
402 <expand macro="layer_MaxPooling1D">
403 <expand macro="inbound_nodes_index" />
404 </expand>
405 </when>
406 <when value="MaxPooling2D">
407 <expand macro="layer_MaxPooling2D">
408 <expand macro="inbound_nodes_index" />
409 </expand>
410 </when>
411 <when value="MaxPooling3D">
412 <expand macro="layer_MaxPooling3D">
413 <expand macro="inbound_nodes_index" />
414 </expand>
415 </when>
416 <when value="AveragePooling1D">
417 <expand macro="layer_AveragePooling1D">
418 <expand macro="inbound_nodes_index" />
419 </expand>
420 </when>
421 <when value="AveragePooling2D">
422 <expand macro="layer_AveragePooling2D">
423 <expand macro="inbound_nodes_index" />
424 </expand>
425 </when>
426 <when value="AveragePooling3D">
427 <expand macro="layer_AveragePooling3D">
428 <expand macro="inbound_nodes_index" />
429 </expand>
430 </when>
431 <when value="GlobalMaxPooling1D">
432 <expand macro="layer_GlobalMaxPooling1D">
433 <expand macro="inbound_nodes_index" />
434 </expand>
435 </when>
436 <when value="GlobalAveragePooling1D">
437 <expand macro="layer_GlobalAveragePooling1D">
438 <expand macro="inbound_nodes_index" />
439 </expand>
440 </when>
441 <when value="GlobalMaxPooling2D">
442 <expand macro="layer_GlobalMaxPooling2D">
443 <expand macro="inbound_nodes_index" />
444 </expand>
445 </when>
446 <when value="GlobalAveragePooling2D">
447 <expand macro="layer_GlobalAveragePooling2D">
448 <expand macro="inbound_nodes_index" />
449 </expand>
450 </when>
451 <when value="GlobalMaxPooling3D">
452 <expand macro="layer_GlobalMaxPooling3D">
453 <expand macro="inbound_nodes_index" />
454 </expand>
455 </when>
456 <when value="GlobalAveragePooling3D">
457 <expand macro="layer_GlobalAveragePooling3D">
458 <expand macro="inbound_nodes_index" />
459 </expand>
460 </when>
461 <when value="LocallyConnected1D">
462 <expand macro="layer_LocallyConnected1D">
463 <expand macro="inbound_nodes_index" />
464 </expand>
465 </when>
466 <when value="LocallyConnected2D">
467 <expand macro="layer_LocallyConnected2D">
468 <expand macro="inbound_nodes_index" />
469 </expand>
470 </when>
471 <when value="SimpleRNN">
472 <expand macro="layer_SimpleRNN">
473 <expand macro="inbound_nodes_index" />
474 </expand>
475 </when>
476 <when value="GRU">
477 <expand macro="layer_GRU">
478 <expand macro="inbound_nodes_index" />
479 </expand>
480 </when>
481 <when value="LSTM">
482 <expand macro="layer_LSTM">
483 <expand macro="inbound_nodes_index" />
484 </expand>
485 </when>
486 <when value="ConvLSTM2D">
487 <expand macro="layer_ConvLSTM2D">
488 <expand macro="inbound_nodes_index" />
489 </expand>
490 </when>
491 <when value="ConvLSTM2DCell">
492 <expand macro="layer_ConvLSTM2DCell">
493 <expand macro="inbound_nodes_index" />
494 </expand>
495 </when>
496 <when value="SimpleRNNCell">
497 <expand macro="layer_SimpleRNNCell">
498 <expand macro="inbound_nodes_index" />
499 </expand>
500 </when>
501 <when value="GRUCell">
502 <expand macro="layer_GRUCell">
503 <expand macro="inbound_nodes_index" />
504 </expand>
505 </when>
506 <when value="LSTMCell">
507 <expand macro="layer_LSTMCell">
508 <expand macro="inbound_nodes_index" />
509 </expand>
510 </when>
511 <when value="CuDNNGRU">
512 <expand macro="layer_CuDNNGRU">
513 <expand macro="inbound_nodes_index" />
514 </expand>
515 </when>
516 <when value="CuDNNLSTM">
517 <expand macro="layer_CuDNNLSTM">
518 <expand macro="inbound_nodes_index" />
519 </expand>
520 </when>
521 <when value="Add">
522 <expand macro="layer_merge" />
523 </when>
524 <when value="Subtract">
525 <expand macro="layer_merge" />
526 </when>
527 <when value="Multiply">
528 <expand macro="layer_merge" />
529 </when>
530 <when value="Average">
531 <expand macro="layer_merge" />
532 </when>
533 <when value="Maximum">
534 <expand macro="layer_merge" />
535 </when>
536 <when value="Minimum">
537 <expand macro="layer_merge" />
538 </when>
539 <when value="Concatenate">
540 <expand macro="layer_Concatenate" />
541 </when>
542 <when value="Dot">
543 <expand macro="layer_Dot" />
544 </when>
545 <when value="Embedding">
546 <expand macro="layer_Embedding">
547 <expand macro="inbound_nodes_index" />
548 </expand>
549 </when>
550 <when value="LeakyReLU">
551 <expand macro="layer_LeakyReLU">
552 <expand macro="inbound_nodes_index" />
553 </expand>
554 </when>
555 <when value="PReLU">
556 <expand macro="layer_PReLU">
557 <expand macro="inbound_nodes_index" />
558 </expand>
559 </when>
560 <when value="ELU">
561 <expand macro="layer_ELU">
562 <expand macro="inbound_nodes_index" />
563 </expand>
564 </when>
565 <when value="ThresholdedReLU">
566 <expand macro="layer_ThresholdedReLU">
567 <expand macro="inbound_nodes_index" />
568 </expand>
569 </when>
570 <when value="Softmax">
571 <expand macro="layer_Softmax">
572 <expand macro="inbound_nodes_index" />
573 </expand>
574 </when>
575 <when value="ReLU">
576 <expand macro="layer_ReLU">
577 <expand macro="inbound_nodes_index" />
578 </expand>
579 </when>
580 <when value="BatchNormalization">
581 <expand macro="layer_BatchNormalization">
582 <expand macro="inbound_nodes_index" />
583 </expand>
584 </when>
585 <when value="GaussianNoise">
586 <expand macro="layer_GaussianNoise">
587 <expand macro="inbound_nodes_index" />
588 </expand>
589 </when>
590 <when value="GaussianDropout">
591 <expand macro="layer_GaussianDropout">
592 <expand macro="inbound_nodes_index" />
593 </expand>
594 </when>
595 <when value="AlphaDropout">
596 <expand macro="layer_AlphaDropout">
597 <expand macro="inbound_nodes_index" />
598 </expand>
599 </when>
600 </conditional>
601 </repeat>
602 <param name="input_layers" type="text" value="[]" label="Type the list of input layer indexes" help="List of integers. Find index number at the left top corner of layer configuration block.">
603 <sanitizer>
604 <valid initial="default">
605 <add value="[" />
606 <add value="]" />
607 </valid>
608 </sanitizer>
609 </param>
610 <param name="output_layers" type="text" value="[]" label="Type the list of output layer indexes" help="List of integers. Find index number at the left top corner of layer configuration block.">
611 <sanitizer>
612 <valid initial="default">
613 <add value="[" />
614 <add value="]" />
615 </valid>
616 </sanitizer>
617 </param>
47 </when> 618 </when>
48 <when value="Dropout"> 619 </conditional>
49 <expand macro="layer_Dropout"/> 620 </inputs>
50 </when> 621 <outputs>
51 <when value="Flatten"> 622 <data format="json" name="outfile" label="Keras Model Config" />
52 <expand macro="layer_Flatten"/> 623 </outputs>
53 </when> 624 <tests>
54 <when value="Reshape"> 625 <test>
55 <expand macro="layer_Reshape"/> 626 <conditional name="model_selection">
56 </when> 627 <param name="model_type" value="sequential" />
57 <when value="Permute"> 628 <param name="input_shape" value="(784, )" />
58 <expand macro="layer_Permute"/> 629 <repeat name="layers">
59 </when> 630 <conditional name="layer_selection">
60 <when value="RepeatVector"> 631 <param name="layer_type" value="Dense" />
61 <expand macro="layer_RepeatVector"/> 632 <param name="units" value="32" />
62 </when> 633 </conditional>
63 <when value="ActivityRegularization"> 634 </repeat>
64 <expand macro="layer_ActivityRegularization"/> 635 <repeat name="layers">
65 </when> 636 <conditional name="layer_selection">
66 <when value="Masking"> 637 <param name="layer_type" value="Activation" />
67 <expand macro="layer_Masking"/> 638 <param name="activation" value="relu" />
68 </when> 639 </conditional>
69 <when value="SpatialDropout1D"> 640 </repeat>
70 <expand macro="layer_SpatialDropout1D"/> 641 <repeat name="layers">
71 </when> 642 <conditional name="layer_selection">
72 <when value="SpatialDropout2D"> 643 <param name="layer_type" value="Dense" />
73 <expand macro="layer_SpatialDropout2D"/> 644 <param name="units" value="10" />
74 </when> 645 </conditional>
75 <when value="SpatialDropout3D"> 646 </repeat>
76 <expand macro="layer_SpatialDropout3D"/> 647 <repeat name="layers">
77 </when> 648 <conditional name="layer_selection">
78 <when value="Conv1D"> 649 <param name="layer_type" value="Activation" />
79 <expand macro="layer_Conv1D"/> 650 <param name="activation" value="softmax" />
80 </when> 651 </conditional>
81 <when value="Conv2D"> 652 </repeat>
82 <expand macro="layer_Conv2D"/> 653 </conditional>
83 </when> 654 <output name="outfile" file="keras01.json" />
84 <when value="SeparableConv1D"> 655 </test>
85 <expand macro="layer_SeparableConv1D"/> 656 <test>
86 </when> 657 <conditional name="model_selection">
87 <when value="SeparableConv2D"> 658 <param name="model_type" value="functional" />
88 <expand macro="layer_SeparableConv2D"/> 659 <repeat name="layers">
89 </when> 660 <conditional name="layer_selection">
90 <when value="DepthwiseConv2D"> 661 <param name="layer_type" value="Input" />
91 <expand macro="layer_DepthwiseConv2D"/> 662 <param name="shape" value="(100, )" />
92 </when> 663 <param name="name" value="main_input" />
93 <when value="Conv2DTranspose"> 664 <param name="dtype" value="int32" />
94 <expand macro="layer_Conv2DTranspose"/> 665 </conditional>
95 </when> 666 </repeat>
96 <when value="Conv3D"> 667 <repeat name="layers">
97 <expand macro="layer_Conv3D"/> 668 <conditional name="layer_selection">
98 </when> 669 <param name="layer_type" value="Embedding" />
99 <when value="Conv3DTranspose"> 670 <param name="input_dim" value="10000" />
100 <expand macro="layer_Conv3DTranspose"/> 671 <param name="output_dim" value="512" />
101 </when> 672 <param name="kwargs" value="input_length=100" />
102 <when value="Cropping1D"> 673 <param name="inbound_nodes" value="1" />
103 <expand macro="layer_Cropping1D"/> 674 </conditional>
104 </when> 675 </repeat>
105 <when value="Cropping2D"> 676 <repeat name="layers">
106 <expand macro="layer_Cropping2D"/> 677 <conditional name="layer_selection">
107 </when> 678 <param name="layer_type" value="LSTM" />
108 <when value="Cropping3D"> 679 <param name="units" value="32" />
109 <expand macro="layer_Cropping3D"/> 680 <param name="inbound_nodes" value="2" />
110 </when> 681 </conditional>
111 <when value="UpSampling1D"> 682 </repeat>
112 <expand macro="layer_UpSampling1D"/> 683 <repeat name="layers">
113 </when> 684 <conditional name="layer_selection">
114 <when value="UpSampling2D"> 685 <param name="layer_type" value="Dense" />
115 <expand macro="layer_UpSampling2D"/> 686 <param name="units" value="1" />
116 </when> 687 <param name="activation" value="sigmoid" />
117 <when value="UpSampling3D"> 688 <param name="inbound_nodes" value="3" />
118 <expand macro="layer_UpSampling3D"/> 689 </conditional>
119 </when> 690 </repeat>
120 <when value="ZeroPadding1D"> 691 <repeat name="layers">
121 <expand macro="layer_ZeroPadding1D"/> 692 <conditional name="layer_selection">
122 </when> 693 <param name="layer_type" value="Input" />
123 <when value="ZeroPadding2D"> 694 <param name="shape" value="(5, )" />
124 <expand macro="layer_ZeroPadding2D"/> 695 <param name="name" value="aux_input" />
125 </when> 696 <param name="dtype" value="float32" />
126 <when value="ZeroPadding3D"> 697 </conditional>
127 <expand macro="layer_ZeroPadding3D"/> 698 </repeat>
128 </when> 699 <repeat name="layers">
129 <when value="MaxPooling1D"> 700 <conditional name="layer_selection">
130 <expand macro="layer_MaxPooling1D"/> 701 <param name="layer_type" value="Concatenate" />
131 </when> 702 <param name="merging_layers" value="[4, 5]" />
132 <when value="MaxPooling2D"> 703 </conditional>
133 <expand macro="layer_MaxPooling2D"/> 704 </repeat>
134 </when> 705 <repeat name="layers">
135 <when value="MaxPooling3D"> 706 <conditional name="layer_selection">
136 <expand macro="layer_MaxPooling3D"/> 707 <param name="layer_type" value="Dense" />
137 </when> 708 <param name="units" value="64" />
138 <when value="AveragePooling1D"> 709 <param name="activation" value="relu" />
139 <expand macro="layer_AveragePooling1D"/> 710 <param name="inbound_nodes" value="6" />
140 </when> 711 </conditional>
141 <when value="AveragePooling2D"> 712 </repeat>
142 <expand macro="layer_AveragePooling2D"/> 713 <repeat name="layers">
143 </when> 714 <conditional name="layer_selection">
144 <when value="AveragePooling3D"> 715 <param name="layer_type" value="Dense" />
145 <expand macro="layer_AveragePooling3D"/> 716 <param name="units" value="64" />
146 </when> 717 <param name="activation" value="relu" />
147 <when value="GlobalMaxPooling1D"> 718 <param name="inbound_nodes" value="7" />
148 <expand macro="layer_GlobalMaxPooling1D"/> 719 </conditional>
149 </when> 720 </repeat>
150 <when value="GlobalAveragePooling1D"> 721 <repeat name="layers">
151 <expand macro="layer_GlobalAveragePooling1D"/> 722 <conditional name="layer_selection">
152 </when> 723 <param name="layer_type" value="Dense" />
153 <when value="GlobalMaxPooling2D"> 724 <param name="units" value="64" />
154 <expand macro="layer_GlobalMaxPooling2D"/> 725 <param name="activation" value="relu" />
155 </when> 726 <param name="inbound_nodes" value="8" />
156 <when value="GlobalAveragePooling2D"> 727 </conditional>
157 <expand macro="layer_GlobalAveragePooling2D"/> 728 </repeat>
158 </when> 729 <repeat name="layers">
159 <when value="GlobalMaxPooling3D"> 730 <conditional name="layer_selection">
160 <expand macro="layer_GlobalMaxPooling3D"/> 731 <param name="layer_type" value="Dense" />
161 </when> 732 <param name="units" value="1" />
162 <when value="GlobalAveragePooling3D"> 733 <param name="activation" value="sigmoid" />
163 <expand macro="layer_GlobalAveragePooling3D"/> 734 <param name="inbound_nodes" value="9" />
164 </when> 735 </conditional>
165 <when value="LocallyConnected1D"> 736 </repeat>
166 <expand macro="layer_LocallyConnected1D"/> 737 <param name="input_layers" value="[1, 5]" />
167 </when> 738 <param name="output_layers" value="[4, 10]" />
168 <when value="LocallyConnected2D"> 739 </conditional>
169 <expand macro="layer_LocallyConnected2D"/> 740 <output name="outfile" file="keras02.json" />
170 </when> 741 </test>
171 <when value="SimpleRNN"> 742 <test>
172 <expand macro="layer_SimpleRNN"/> 743 <conditional name="model_selection">
173 </when> 744 <param name="model_type" value="sequential" />
174 <when value="GRU"> 745 <param name="input_shape" value="(17, )" />
175 <expand macro="layer_GRU"/> 746 <repeat name="layers">
176 </when> 747 <conditional name="layer_selection">
177 <when value="LSTM"> 748 <param name="layer_type" value="Dense" />
178 <expand macro="layer_LSTM"/> 749 <param name="units" value="32" />
179 </when> 750 </conditional>
180 <when value="ConvLSTM2D"> 751 </repeat>
181 <expand macro="layer_ConvLSTM2D"/> 752 <repeat name="layers">
182 </when> 753 <conditional name="layer_selection">
183 <when value="ConvLSTM2DCell"> 754 <param name="layer_type" value="Activation" />
184 <expand macro="layer_ConvLSTM2DCell"/> 755 <param name="activation" value="linear" />
185 </when> 756 </conditional>
186 <when value="SimpleRNNCell"> 757 </repeat>
187 <expand macro="layer_SimpleRNNCell"/> 758 <repeat name="layers">
188 </when> 759 <conditional name="layer_selection">
189 <when value="GRUCell"> 760 <param name="layer_type" value="Dense" />
190 <expand macro="layer_GRUCell"/> 761 <param name="units" value="1" />
191 </when> 762 </conditional>
192 <when value="LSTMCell"> 763 </repeat>
193 <expand macro="layer_LSTMCell"/> 764 <repeat name="layers">
194 </when> 765 <conditional name="layer_selection">
195 <when value="CuDNNGRU"> 766 <param name="layer_type" value="Activation" />
196 <expand macro="layer_CuDNNGRU"/> 767 <param name="activation" value="linear" />
197 </when> 768 </conditional>
198 <when value="CuDNNLSTM"> 769 </repeat>
199 <expand macro="layer_CuDNNLSTM"/> 770 </conditional>
200 </when> 771 <output name="outfile" file="keras04.json" />
201 <when value="Embedding"> 772 </test>
202 <expand macro="layer_Embedding"/> 773 </tests>
203 </when> 774 <help>
204 <when value="LeakyReLU"> 775 <![CDATA[
205 <expand macro="layer_LeakyReLU"/>
206 </when>
207 <when value="PReLU">
208 <expand macro="layer_PReLU"/>
209 </when>
210 <when value="ELU">
211 <expand macro="layer_ELU"/>
212 </when>
213 <when value="ThresholdedReLU">
214 <expand macro="layer_ThresholdedReLU"/>
215 </when>
216 <when value="Softmax">
217 <expand macro="layer_Softmax"/>
218 </when>
219 <when value="ReLU">
220 <expand macro="layer_ReLU"/>
221 </when>
222 <when value="BatchNormalization">
223 <expand macro="layer_BatchNormalization"/>
224 </when>
225 <when value="GaussianNoise">
226 <expand macro="layer_GaussianNoise"/>
227 </when>
228 <when value="GaussianDropout">
229 <expand macro="layer_GaussianDropout"/>
230 </when>
231 <when value="AlphaDropout">
232 <expand macro="layer_AlphaDropout"/>
233 </when>
234 </conditional>
235 </repeat>
236 </when>
237 <when value="functional">
238 <repeat name="layers" min="1" max="500" title="LAYER">
239 <conditional name="layer_selection">
240 <param name="layer_type" type="select" label="Choose the type of layer">
241 <option value="Input">Input</option>
242 <expand macro="keras_layer_types_core"/>
243 <expand macro="keras_layer_types_Convolutional"/>
244 <expand macro="keras_layer_types_Pooling"/>
245 <expand macro="keras_layer_types_locally_connected"/>
246 <expand macro="keras_layer_types_recurrent"/>
247 <expand macro="keras_layer_types_merge"/>
248 <expand macro="keras_layer_types_embedding"/>
249 <expand macro="keras_layer_types_advanced_activations"/>
250 <expand macro="keras_layer_types_normalization"/>
251 <expand macro="keras_layer_types_noise"/>
252 </param>
253 <when value="Input">
254 <expand macro="layer_Input"/>
255 </when>
256 <when value="Dense">
257 <expand macro="layer_Dense">
258 <expand macro="inbound_nodes_index"/>
259 </expand>
260 </when>
261 <when value="Activation">
262 <expand macro="keras_activations">
263 <expand macro="inbound_nodes_index"/>
264 </expand>
265 </when>
266 <when value="Dropout">
267 <expand macro="layer_Dropout">
268 <expand macro="inbound_nodes_index"/>
269 </expand>
270 </when>
271 <when value="Flatten">
272 <expand macro="layer_Flatten">
273 <expand macro="inbound_nodes_index"/>
274 </expand>
275 </when>
276 <when value="Reshape">
277 <expand macro="layer_Reshape">
278 <expand macro="inbound_nodes_index"/>
279 </expand>
280 </when>
281 <when value="Permute">
282 <expand macro="layer_Permute">
283 <expand macro="inbound_nodes_index"/>
284 </expand>
285 </when>
286 <when value="RepeatVector">
287 <expand macro="layer_RepeatVector">
288 <expand macro="inbound_nodes_index"/>
289 </expand>
290 </when>
291 <when value="ActivityRegularization">
292 <expand macro="layer_ActivityRegularization">
293 <expand macro="inbound_nodes_index"/>
294 </expand>
295 </when>
296 <when value="Masking">
297 <expand macro="layer_Masking">
298 <expand macro="inbound_nodes_index"/>
299 </expand>
300 </when>
301 <when value="SpatialDropout1D">
302 <expand macro="layer_SpatialDropout1D">
303 <expand macro="inbound_nodes_index"/>
304 </expand>
305 </when>
306 <when value="SpatialDropout2D">
307 <expand macro="layer_SpatialDropout2D">
308 <expand macro="inbound_nodes_index"/>
309 </expand>
310 </when>
311 <when value="SpatialDropout3D">
312 <expand macro="layer_SpatialDropout3D">
313 <expand macro="inbound_nodes_index"/>
314 </expand>
315 </when>
316 <when value="Conv1D">
317 <expand macro="layer_Conv1D">
318 <expand macro="inbound_nodes_index"/>
319 </expand>
320 </when>
321 <when value="Conv2D">
322 <expand macro="layer_Conv2D">
323 <expand macro="inbound_nodes_index"/>
324 </expand>
325 </when>
326 <when value="SeparableConv1D">
327 <expand macro="layer_SeparableConv1D">
328 <expand macro="inbound_nodes_index"/>
329 </expand>
330 </when>
331 <when value="SeparableConv2D">
332 <expand macro="layer_SeparableConv2D">
333 <expand macro="inbound_nodes_index"/>
334 </expand>
335 </when>
336 <when value="DepthwiseConv2D">
337 <expand macro="layer_DepthwiseConv2D">
338 <expand macro="inbound_nodes_index"/>
339 </expand>
340 </when>
341 <when value="Conv2DTranspose">
342 <expand macro="layer_Conv2DTranspose">
343 <expand macro="inbound_nodes_index"/>
344 </expand>
345 </when>
346 <when value="Conv3D">
347 <expand macro="layer_Conv3D">
348 <expand macro="inbound_nodes_index"/>
349 </expand>
350 </when>
351 <when value="Conv3DTranspose">
352 <expand macro="layer_Conv3DTranspose">
353 <expand macro="inbound_nodes_index"/>
354 </expand>
355 </when>
356 <when value="Cropping1D">
357 <expand macro="layer_Cropping1D">
358 <expand macro="inbound_nodes_index"/>
359 </expand>
360 </when>
361 <when value="Cropping2D">
362 <expand macro="layer_Cropping2D">
363 <expand macro="inbound_nodes_index"/>
364 </expand>
365 </when>
366 <when value="Cropping3D">
367 <expand macro="layer_Cropping3D">
368 <expand macro="inbound_nodes_index"/>
369 </expand>
370 </when>
371 <when value="UpSampling1D">
372 <expand macro="layer_UpSampling1D">
373 <expand macro="inbound_nodes_index"/>
374 </expand>
375 </when>
376 <when value="UpSampling2D">
377 <expand macro="layer_UpSampling2D">
378 <expand macro="inbound_nodes_index"/>
379 </expand>
380 </when>
381 <when value="UpSampling3D">
382 <expand macro="layer_UpSampling3D">
383 <expand macro="inbound_nodes_index"/>
384 </expand>
385 </when>
386 <when value="ZeroPadding1D">
387 <expand macro="layer_ZeroPadding1D">
388 <expand macro="inbound_nodes_index"/>
389 </expand>
390 </when>
391 <when value="ZeroPadding2D">
392 <expand macro="layer_ZeroPadding2D">
393 <expand macro="inbound_nodes_index"/>
394 </expand>
395 </when>
396 <when value="ZeroPadding3D">
397 <expand macro="layer_ZeroPadding3D">
398 <expand macro="inbound_nodes_index"/>
399 </expand>
400 </when>
401 <when value="MaxPooling1D">
402 <expand macro="layer_MaxPooling1D">
403 <expand macro="inbound_nodes_index"/>
404 </expand>
405 </when>
406 <when value="MaxPooling2D">
407 <expand macro="layer_MaxPooling2D">
408 <expand macro="inbound_nodes_index"/>
409 </expand>
410 </when>
411 <when value="MaxPooling3D">
412 <expand macro="layer_MaxPooling3D">
413 <expand macro="inbound_nodes_index"/>
414 </expand>
415 </when>
416 <when value="AveragePooling1D">
417 <expand macro="layer_AveragePooling1D">
418 <expand macro="inbound_nodes_index"/>
419 </expand>
420 </when>
421 <when value="AveragePooling2D">
422 <expand macro="layer_AveragePooling2D">
423 <expand macro="inbound_nodes_index"/>
424 </expand>
425 </when>
426 <when value="AveragePooling3D">
427 <expand macro="layer_AveragePooling3D">
428 <expand macro="inbound_nodes_index"/>
429 </expand>
430 </when>
431 <when value="GlobalMaxPooling1D">
432 <expand macro="layer_GlobalMaxPooling1D">
433 <expand macro="inbound_nodes_index"/>
434 </expand>
435 </when>
436 <when value="GlobalAveragePooling1D">
437 <expand macro="layer_GlobalAveragePooling1D">
438 <expand macro="inbound_nodes_index"/>
439 </expand>
440 </when>
441 <when value="GlobalMaxPooling2D">
442 <expand macro="layer_GlobalMaxPooling2D">
443 <expand macro="inbound_nodes_index"/>
444 </expand>
445 </when>
446 <when value="GlobalAveragePooling2D">
447 <expand macro="layer_GlobalAveragePooling2D">
448 <expand macro="inbound_nodes_index"/>
449 </expand>
450 </when>
451 <when value="GlobalMaxPooling3D">
452 <expand macro="layer_GlobalMaxPooling3D">
453 <expand macro="inbound_nodes_index"/>
454 </expand>
455 </when>
456 <when value="GlobalAveragePooling3D">
457 <expand macro="layer_GlobalAveragePooling3D">
458 <expand macro="inbound_nodes_index"/>
459 </expand>
460 </when>
461 <when value="LocallyConnected1D">
462 <expand macro="layer_LocallyConnected1D">
463 <expand macro="inbound_nodes_index"/>
464 </expand>
465 </when>
466 <when value="LocallyConnected2D">
467 <expand macro="layer_LocallyConnected2D">
468 <expand macro="inbound_nodes_index"/>
469 </expand>
470 </when>
471 <when value="SimpleRNN">
472 <expand macro="layer_SimpleRNN">
473 <expand macro="inbound_nodes_index"/>
474 </expand>
475 </when>
476 <when value="GRU">
477 <expand macro="layer_GRU">
478 <expand macro="inbound_nodes_index"/>
479 </expand>
480 </when>
481 <when value="LSTM">
482 <expand macro="layer_LSTM">
483 <expand macro="inbound_nodes_index"/>
484 </expand>
485 </when>
486 <when value="ConvLSTM2D">
487 <expand macro="layer_ConvLSTM2D">
488 <expand macro="inbound_nodes_index"/>
489 </expand>
490 </when>
491 <when value="ConvLSTM2DCell">
492 <expand macro="layer_ConvLSTM2DCell">
493 <expand macro="inbound_nodes_index"/>
494 </expand>
495 </when>
496 <when value="SimpleRNNCell">
497 <expand macro="layer_SimpleRNNCell">
498 <expand macro="inbound_nodes_index"/>
499 </expand>
500 </when>
501 <when value="GRUCell">
502 <expand macro="layer_GRUCell">
503 <expand macro="inbound_nodes_index"/>
504 </expand>
505 </when>
506 <when value="LSTMCell">
507 <expand macro="layer_LSTMCell">
508 <expand macro="inbound_nodes_index"/>
509 </expand>
510 </when>
511 <when value="CuDNNGRU">
512 <expand macro="layer_CuDNNGRU">
513 <expand macro="inbound_nodes_index"/>
514 </expand>
515 </when>
516 <when value="CuDNNLSTM">
517 <expand macro="layer_CuDNNLSTM">
518 <expand macro="inbound_nodes_index"/>
519 </expand>
520 </when>
521 <when value="Add">
522 <expand macro="layer_merge"/>
523 </when>
524 <when value="Subtract">
525 <expand macro="layer_merge"/>
526 </when>
527 <when value="Multiply">
528 <expand macro="layer_merge"/>
529 </when>
530 <when value="Average">
531 <expand macro="layer_merge"/>
532 </when>
533 <when value="Maximum">
534 <expand macro="layer_merge"/>
535 </when>
536 <when value="Minimum">
537 <expand macro="layer_merge"/>
538 </when>
539 <when value="Concatenate">
540 <expand macro="layer_Concatenate"/>
541 </when>
542 <when value="Dot">
543 <expand macro="layer_Dot"/>
544 </when>
545 <when value="Embedding">
546 <expand macro="layer_Embedding">
547 <expand macro="inbound_nodes_index"/>
548 </expand>
549 </when>
550 <when value="LeakyReLU">
551 <expand macro="layer_LeakyReLU">
552 <expand macro="inbound_nodes_index"/>
553 </expand>
554 </when>
555 <when value="PReLU">
556 <expand macro="layer_PReLU">
557 <expand macro="inbound_nodes_index"/>
558 </expand>
559 </when>
560 <when value="ELU">
561 <expand macro="layer_ELU">
562 <expand macro="inbound_nodes_index"/>
563 </expand>
564 </when>
565 <when value="ThresholdedReLU">
566 <expand macro="layer_ThresholdedReLU">
567 <expand macro="inbound_nodes_index"/>
568 </expand>
569 </when>
570 <when value="Softmax">
571 <expand macro="layer_Softmax">
572 <expand macro="inbound_nodes_index"/>
573 </expand>
574 </when>
575 <when value="ReLU">
576 <expand macro="layer_ReLU">
577 <expand macro="inbound_nodes_index"/>
578 </expand>
579 </when>
580 <when value="BatchNormalization">
581 <expand macro="layer_BatchNormalization">
582 <expand macro="inbound_nodes_index"/>
583 </expand>
584 </when>
585 <when value="GaussianNoise">
586 <expand macro="layer_GaussianNoise">
587 <expand macro="inbound_nodes_index"/>
588 </expand>
589 </when>
590 <when value="GaussianDropout">
591 <expand macro="layer_GaussianDropout">
592 <expand macro="inbound_nodes_index"/>
593 </expand>
594 </when>
595 <when value="AlphaDropout">
596 <expand macro="layer_AlphaDropout">
597 <expand macro="inbound_nodes_index"/>
598 </expand>
599 </when>
600 </conditional>
601 </repeat>
602 <param name="input_layers" type="text" value="[]" label="Type the list of input layer indexes"
603 help="List of integers. Find index number at the left top corner of layer configuration block.">
604 <sanitizer>
605 <valid initial="default">
606 <add value="["/>
607 <add value="]"/>
608 </valid>
609 </sanitizer>
610 </param>
611 <param name="output_layers" type="text" value="[]" label="Type the list of output layer indexes"
612 help="List of integers. Find index number at the left top corner of layer configuration block.">
613 <sanitizer>
614 <valid initial="default">
615 <add value="["/>
616 <add value="]"/>
617 </valid>
618 </sanitizer>
619 </param>
620 </when>
621 </conditional>
622 </inputs>
623 <outputs>
624 <data format="json" name="outfile" label="Keras Model Config"/>
625 </outputs>
626 <tests>
627 <test>
628 <conditional name="model_selection">
629 <param name="model_type" value="sequential"/>
630 <param name="input_shape" value="(784, )"/>
631 <repeat name="layers">
632 <conditional name="layer_selection">
633 <param name="layer_type" value="Dense"/>
634 <param name="units" value="32"/>
635 </conditional>
636 </repeat>
637 <repeat name="layers">
638 <conditional name="layer_selection">
639 <param name="layer_type" value="Activation"/>
640 <param name="activation" value="relu"/>
641 </conditional>
642 </repeat>
643 <repeat name="layers">
644 <conditional name="layer_selection">
645 <param name="layer_type" value="Dense"/>
646 <param name="units" value="10"/>
647 </conditional>
648 </repeat>
649 <repeat name="layers">
650 <conditional name="layer_selection">
651 <param name="layer_type" value="Activation"/>
652 <param name="activation" value="softmax"/>
653 </conditional>
654 </repeat>
655 </conditional>
656 <output name="outfile" file="keras01.json"/>
657 </test>
658 <test>
659 <conditional name="model_selection">
660 <param name="model_type" value="functional"/>
661 <repeat name="layers">
662 <conditional name="layer_selection">
663 <param name="layer_type" value="Input"/>
664 <param name="shape" value="(100, )" />
665 <param name="name" value="main_input"/>
666 <param name="dtype" value="int32"/>
667 </conditional>
668 </repeat>
669 <repeat name="layers">
670 <conditional name="layer_selection">
671 <param name="layer_type" value="Embedding"/>
672 <param name="input_dim" value="10000"/>
673 <param name="output_dim" value="512"/>
674 <param name="kwargs" value="input_length=100"/>
675 <param name="inbound_nodes" value="1"/>
676 </conditional>
677 </repeat>
678 <repeat name="layers">
679 <conditional name="layer_selection">
680 <param name="layer_type" value="LSTM"/>
681 <param name="units" value="32"/>
682 <param name="inbound_nodes" value="2"/>
683 </conditional>
684 </repeat>
685 <repeat name="layers">
686 <conditional name="layer_selection">
687 <param name="layer_type" value="Dense"/>
688 <param name="units" value="1"/>
689 <param name="activation" value="sigmoid"/>
690 <param name="inbound_nodes" value="3"/>
691 </conditional>
692 </repeat>
693 <repeat name="layers">
694 <conditional name="layer_selection">
695 <param name="layer_type" value="Input"/>
696 <param name="shape" value="(5, )" />
697 <param name="name" value="aux_input"/>
698 <param name="dtype" value="float32"/>
699 </conditional>
700 </repeat>
701 <repeat name="layers">
702 <conditional name="layer_selection">
703 <param name="layer_type" value="Concatenate"/>
704 <param name="merging_layers" value="[4, 5]"/>
705 </conditional>
706 </repeat>
707 <repeat name="layers">
708 <conditional name="layer_selection">
709 <param name="layer_type" value="Dense"/>
710 <param name="units" value="64"/>
711 <param name="activation" value="relu"/>
712 <param name="inbound_nodes" value="6"/>
713 </conditional>
714 </repeat>
715 <repeat name="layers">
716 <conditional name="layer_selection">
717 <param name="layer_type" value="Dense"/>
718 <param name="units" value="64"/>
719 <param name="activation" value="relu"/>
720 <param name="inbound_nodes" value="7"/>
721 </conditional>
722 </repeat>
723 <repeat name="layers">
724 <conditional name="layer_selection">
725 <param name="layer_type" value="Dense"/>
726 <param name="units" value="64"/>
727 <param name="activation" value="relu"/>
728 <param name="inbound_nodes" value="8"/>
729 </conditional>
730 </repeat>
731 <repeat name="layers">
732 <conditional name="layer_selection">
733 <param name="layer_type" value="Dense"/>
734 <param name="units" value="1"/>
735 <param name="activation" value="sigmoid"/>
736 <param name="inbound_nodes" value="9"/>
737 </conditional>
738 </repeat>
739 <param name="input_layers" value="[1, 5]"/>
740 <param name="output_layers" value="[4, 10]"/>
741 </conditional>
742 <output name="outfile" file="keras02.json"/>
743 </test>
744 <test>
745 <conditional name="model_selection">
746 <param name="model_type" value="sequential"/>
747 <param name="input_shape" value="(17, )"/>
748 <repeat name="layers">
749 <conditional name="layer_selection">
750 <param name="layer_type" value="Dense"/>
751 <param name="units" value="32"/>
752 </conditional>
753 </repeat>
754 <repeat name="layers">
755 <conditional name="layer_selection">
756 <param name="layer_type" value="Activation"/>
757 <param name="activation" value="linear"/>
758 </conditional>
759 </repeat>
760 <repeat name="layers">
761 <conditional name="layer_selection">
762 <param name="layer_type" value="Dense"/>
763 <param name="units" value="1"/>
764 </conditional>
765 </repeat>
766 <repeat name="layers">
767 <conditional name="layer_selection">
768 <param name="layer_type" value="Activation"/>
769 <param name="activation" value="linear"/>
770 </conditional>
771 </repeat>
772 </conditional>
773 <output name="outfile" file="keras04.json"/>
774 </test>
775 </tests>
776 <help>
777 <![CDATA[
778 **Help** 776 **Help**
779 777
780 **What it does** 778 **What it does**
781 779
782 Creates a deep learning architecture using Keras deep learning library by adding different types of layers in a sequential manner. Different types of layers include Dense, Dropout, Convolutional, Activation and so on. These layers are added one after another which generates a deep architecture. Moreover, it also offers functional API (where layers are callable and can be chained) for advanced users to create complex models. 780 Creates a deep learning architecture using Keras deep learning library by adding different types of layers in a sequential manner. Different types of layers include Dense, Dropout, Convolutional, Activation and so on. These layers are added one after another which generates a deep architecture. Moreover, it also offers functional API (where layers are callable and can be chained) for advanced users to create complex models.
792 3. Add layers using "Insert layer" button. Choose the layers and attributes (using advanced options) suited to the dataset. For example - Choose 'Dense' for adding a dense layer to the architecture and insert an integer under "Units" which are the number of neurons for this layer. Higher the number of units, the stronger is the architecture. Please be noted that the higher values of units may lead to overfitting and lower values may lead to underfitting. This is one of the hyperparameters of the architecture which needs to be tuned for a dataset. 790 3. Add layers using "Insert layer" button. Choose the layers and attributes (using advanced options) suited to the dataset. For example - Choose 'Dense' for adding a dense layer to the architecture and insert an integer under "Units" which are the number of neurons for this layer. Higher the number of units, the stronger is the architecture. Please be noted that the higher values of units may lead to overfitting and lower values may lead to underfitting. This is one of the hyperparameters of the architecture which needs to be tuned for a dataset.
793 4. Execute the tool to get a JSON string of the architecture. 791 4. Execute the tool to get a JSON string of the architecture.
794 792
795 793
796 ]]> 794 ]]>
797 </help> 795 </help>
798 <citations> 796 <citations>
799 <expand macro="keras_citation"/> 797 <expand macro="keras_citation" />
800 <expand macro="tensorflow_citation"/> 798 <expand macro="tensorflow_citation" />
801 </citations> 799 </citations>
802 </tool> 800 </tool>