I'm trying to use set_printoptions from the answer to the question How to pretty-printing a numpy.array without scientific notation and with given precision?
But I get this error:
Traceback (most recent call last):
  File "neural_network.py", line 57, in <module>
    output.set_printoptions(precision=3)
AttributeError: 'numpy.ndarray' object has no attribute 'set_printoptions'
Apparently, not all numpy arrays are created equal, and what works for a regular numpy.array doesn't work for a numpy.ndarray.
How can I format a numpy.ndarray for priting such as to remove scientific notation?
UPDATE
Changing the call to numpy.set_printoptions() removes the error, but has no effect on the print format of the ndarray contents.
 
     
    