|
|
@ -2164,8 +2164,8 @@ drawer = cg.output.GraphvizOutput(output_file=filename) |
|
|
|
<array> = <array>.flatten() <span class="hljs-comment"># Collapses array into one dimension.</span> |
|
|
|
<view> = <array>.squeeze() <span class="hljs-comment"># Removes dimensions of length one.</span> |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><array> = <array>.sum/min/mean/var/std(axis) <span class="hljs-comment"># Passed dimension gets aggregated.</span> |
|
|
|
<array> = <array>.argmin(axis) <span class="hljs-comment"># Returns indexes of smallest elements.</span> |
|
|
|
<pre><code class="python language-python hljs"><array> = <array>.sum/min/mean/var/std([axis]) <span class="hljs-comment"># Passed dimension gets aggregated.</span> |
|
|
|
<array> = <array>.argmin([axis]) <span class="hljs-comment"># Returns indexes of smallest elements.</span> |
|
|
|
<array> = np.apply_along_axis(<func>, axis, <array>) <span class="hljs-comment"># Func can return a scalar or array.</span> |
|
|
|
</code></pre> |
|
|
|
<ul> |
|
|
|