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