Skip to content

Commit

Permalink
deploy: 2e1fad2
Browse files Browse the repository at this point in the history
  • Loading branch information
mieskolainen committed Aug 29, 2024
1 parent 43c6983 commit 192a148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _modules/icenet/tools/process.html
Original file line number Diff line number Diff line change
Expand Up @@ -1372,8 +1372,8 @@ <h1>Source code for icenet.tools.process</h1><div class="highlight"><pre>

<span class="c1"># ----------------------------------------------------------</span>
<span class="c1"># ** Re-permute train and validation events for safety **</span>
<span class="n">trn</span> <span class="o">=</span> <span class="n">trn</span><span class="o">.</span><span class="n">permute</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">permutation</span><span class="p">(</span><span class="n">trn</span><span class="o">.</span><span class="n">x</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">]))</span>
<span class="n">val</span> <span class="o">=</span> <span class="n">val</span><span class="o">.</span><span class="n">permute</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">permutation</span><span class="p">(</span><span class="n">val</span><span class="o">.</span><span class="n">x</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">]))</span>
<span class="n">trn</span> <span class="o">=</span> <span class="n">trn</span><span class="o">.</span><span class="n">permute</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">permutation</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">trn</span><span class="o">.</span><span class="n">x</span><span class="p">)))</span>
<span class="n">val</span> <span class="o">=</span> <span class="n">val</span><span class="o">.</span><span class="n">permute</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">permutation</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">val</span><span class="o">.</span><span class="n">x</span><span class="p">)))</span>
<span class="c1"># ---------------------------------------------------------- </span>

<span class="c1"># ----------------------------------------------------------</span>
Expand Down

0 comments on commit 192a148

Please sign in to comment.