Numpy (and pylab which uses numpy) can be instructed to change how it prints out arrays and other objects. The one I find most useful is:
If there are more than threshold elements in an array then pylab/numpy will use the ... (elipses) notation to print, which reduces clutter.
pylab.set_printoptions(threshold=5)
If there are more than threshold elements in an array then pylab/numpy will use the ... (elipses) notation to print, which reduces clutter.
Comments
Post a Comment