<p dir="auto">Numpy.power(a,b) doesn't seem to be handling large numbers properly.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9269983/39159452-30168168-472b-11e8-9660-59ac9532a3bd.png"><img src="https://user-images.githubusercontent.com/9269983/39159452-30168168-472b-11e8-9660-59ac9532a3bd.png" alt="screen shot 2018-04-23 at 7 18 48 pm" style="max-width: 100%;"></a><br>
Maybe a bug in multiplying matrixes?<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9269983/39159470-517e1eb0-472b-11e8-84ec-a5e9447bb6dd.png"><img src="https://user-images.githubusercontent.com/9269983/39159470-517e1eb0-472b-11e8-84ec-a5e9447bb6dd.png" alt="screen shot 2018-04-23 at 7 19 29 pm" style="max-width: 100%;"></a><br>
Numpy info: numpy in /Users/usernameHere/miniconda3/envs/nnseries/lib/python3.6/site-packages (1.12.1)<br>
Update:<br>
This seems similar to my c++ program that couldn't handle numbers larger than 2^31.  If numpy uses a c or c++, an arbitrary-length integer library may be need to handle large numbers.</p>
<p dir="auto">Simple demo:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: np.uint8(0) - np.uint8(1)
RuntimeWarning: overflow encountered in ubyte_scalars
Out[1]: 255

In [2]: np.uint8(0)[...] - np.uint8(1)[...]
Out[2]: 255"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">0</span>) <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">1</span>)
<span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">overflow</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-s1">ubyte_scalars</span>
<span class="pl-v">Out</span>[<span class="pl-c1">1</span>]: <span class="pl-c1">255</span>

<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">0</span>)[...] <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">1</span>)[...]
<span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-c1">255</span></pre></div>
<p dir="auto">Should we even warn at all for unsigned integers?</p>