You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/build/html/code.html
+48-10Lines changed: 48 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
174
174
<tbodyvalign="top">
175
175
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
176
176
<li><strong>set_name</strong> – ‘train’, ‘val’ or ‘test’ set</li>
177
-
<li><strong>init</strong> – initial position in the corresponding set split. Must be bigger or equal than 0 and bigger than final.</li>
177
+
<li><strong>init</strong> – initial position in the corresponding set split. Must be bigger or equal than 0 and smaller than final.</li>
178
178
<li><strong>final</strong> – final position in the corresponding set split.</li>
179
179
<li><strong>debug</strong> – if True all data will be returned without preprocessing</li>
180
180
</ul>
@@ -280,7 +280,7 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
280
280
281
281
<dlclass="method">
282
282
<dtid="keras_wrapper.dataset.Dataset.loadText">
283
-
<codeclass="descname">loadText</code><spanclass="sig-paren">(</span><em>X</em>, <em>vocabularies</em>, <em>max_len</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.dataset.Dataset.loadText" title="Permalink to this definition">¶</a></dt>
283
+
<codeclass="descname">loadText</code><spanclass="sig-paren">(</span><em>X</em>, <em>vocabularies</em>, <em>max_len</em>, <em>offset</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.dataset.Dataset.loadText" title="Permalink to this definition">¶</a></dt>
284
284
<dd><p>Text encoder. Transforms samples from a text representation into a numerical one.</p>
285
285
</dd></dl>
286
286
@@ -299,7 +299,7 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
<dd><p>Loads a list of samples which can contain all samples from the ‘train’, ‘val’, or
304
304
‘test’ sets (specified by set_name).</p>
305
305
<p># General parameters</p>
@@ -308,11 +308,12 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
308
308
<colclass="field-body" />
309
309
<tbodyvalign="top">
310
310
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
311
-
<li><strong>path_list</strong> – can either be a path to a .txt file containing the paths to the images or a python list of paths</li>
311
+
<li><strong>path_list</strong> – can either be a path to a text file containing the paths to the images or a python list of paths</li>
312
312
<li><strong>set_name</strong> – identifier of the set split loaded (‘train’, ‘val’ or ‘test’)</li>
313
313
<li><strong>type</strong> – identifier of the type of input we are loading (accepted types can be seen in self.__accepted_types_inputs)</li>
314
314
<li><strong>id</strong> – identifier of the input data loaded</li>
315
315
<li><strong>repeat_set</strong> – repats the inputs given (useful when we have more outputs than inputs). Int or array of ints.</li>
316
+
<li><strong>required</strong> – flag for optional inputs</li>
316
317
</ul>
317
318
</td>
318
319
</tr>
@@ -341,6 +342,7 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
341
342
<li><strong>build_vocabulary</strong> – whether a new vocabulary will be built from the loaded data or not (only applicable when type==’text’).</li>
342
343
<li><strong>max_text_len</strong> – maximum text length, the rest of the data will be padded with 0s (only applicable if the output data is of type ‘text’).</li>
343
344
<li><strong>max_words</strong> – a maximum of ‘max_words’ words from the whole vocabulary will be chosen by number or occurrences</li>
345
+
<li><strong>offset</strong> – Number of timesteps that the text is shifted to the right (for <ahref="#id1"><spanclass="problematic" id="id2">*</span></a>_cond models)</li>
344
346
</ul>
345
347
</td>
346
348
</tr>
@@ -376,7 +378,7 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
376
378
<colclass="field-body" />
377
379
<tbodyvalign="top">
378
380
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
379
-
<li><strong>path_list</strong> – path to the .txt file with the list of images.</li>
381
+
<li><strong>path_list</strong> – path to the text file with the list of images.</li>
380
382
<li><strong>split</strong> – percentage of images used for [training, validation, test].</li>
381
383
<li><strong>shuffle</strong> – whether we are randomly shuffling the input samples or not.</li>
382
384
<li><strong>type</strong> – identifier of the type of input we are loading (accepted types can be seen in self.__accepted_types_inputs)</li>
@@ -408,19 +410,19 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
408
410
409
411
<dlclass="method">
410
412
<dtid="keras_wrapper.dataset.Dataset.setOutput">
411
-
<codeclass="descname">setOutput</code><spanclass="sig-paren">(</span><em>path_list</em>, <em>set_name</em>, <em>type='categorical'</em>, <em>id='label'</em>, <em>repeat_set=1</em>, <em>tokenization='tokenize_basic'</em>, <em>max_text_len=0</em>, <em>build_vocabulary=False</em>, <em>max_words=0</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.dataset.Dataset.setOutput" title="Permalink to this definition">¶</a></dt>
413
+
<codeclass="descname">setOutput</code><spanclass="sig-paren">(</span><em>path_list</em>, <em>set_name</em>, <em>type='categorical'</em>, <em>id='label'</em>, <em>repeat_set=1</em>, <em>tokenization='tokenize_basic'</em>, <em>max_text_len=0</em>, <em>offset=0</em>, <em>build_vocabulary=False</em>, <em>max_words=0</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.dataset.Dataset.setOutput" title="Permalink to this definition">¶</a></dt>
412
414
<dd><p>Loads a set of output data, usually (type==’categorical’) referencing values in self.classes (starting from 0)</p>
<codeclass="descname">tokenize_basic</code><spanclass="sig-paren">(</span><em>caption</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.dataset.Dataset.tokenize_basic" title="Permalink to this definition">¶</a></dt>
481
+
<codeclass="descname">tokenize_basic</code><spanclass="sig-paren">(</span><em>caption</em>, <em>lowercase=True</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.dataset.Dataset.tokenize_basic" title="Permalink to this definition">¶</a></dt>
482
+
<dd><dlclass="docutils">
483
+
<dt>Basic tokenizer for the input/output data of type ‘text’:</dt>
<codeclass="descname">tokenize_questions</code><spanclass="sig-paren">(</span><em>caption</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.dataset.Dataset.tokenize_questions" title="Permalink to this definition">¶</a></dt>
480
492
<dd><p>Basic tokenizer for the input/output data of type ‘text’</p>
481
493
</dd></dl>
482
494
@@ -635,6 +647,31 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
635
647
<dd><p>Plots the training progress information.</p>
<codeclass="descname">predictNet</code><spanclass="sig-paren">(</span><em>ds</em>, <em>parameters</em>, <em>out_name=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.cnn_model.CNN_Model.predictNet" title="Permalink to this definition">¶</a></dt>
653
+
<dd><p>Returns the predictions of the net on the dataset splits chosen. The valid parameters are:</p>
<li><strong>batch_size</strong> – size of the batch</li>
660
+
<li><strong>n_parallel_loaders</strong> – number of parallel data batch loaders</li>
661
+
<li><strong>normalize_images</strong> – apply data normalization on images/features or not (only if using images/features as input)</li>
662
+
<li><strong>mean_substraction</strong> – apply mean data normalization on images or not (only if using images as input)</li>
663
+
<li><strong>predict_on_sets</strong> – list of set splits for which we want to extract the predictions [‘train’, ‘val’, ‘test’]</li>
<trclass="field-even field"><td> </td><tdclass="field-body"><pclass="first last">dictionary with set splits as keys and matrices of predictions as values.</p>
<codeclass="descname">predictOnBatch</code><spanclass="sig-paren">(</span><em>X</em>, <em>in_name=None</em>, <em>out_name=None</em>, <em>expand=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.cnn_model.CNN_Model.predictOnBatch" title="Permalink to this definition">¶</a></dt>
@@ -672,7 +709,8 @@ <h1>Documentation for the Code<a class="headerlink" href="#documentation-for-the
<codeclass="descname">resumeTrainNet</code><spanclass="sig-paren">(</span><em>ds</em>, <em>parameters</em>, <em>out_name=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#keras_wrapper.cnn_model.CNN_Model.resumeTrainNet" title="Permalink to this definition">¶</a></dt>
675
-
<dd><p>Resumes the last training state of a stored model keeping also its training parameters.
712
+
<dd><p>DEPRECATED</p>
713
+
<p>Resumes the last training state of a stored model keeping also its training parameters.
676
714
If we introduce any parameter through the argument ‘parameters’, it will be replaced by the old one.</p>
0 commit comments