numpy.set_printoptions(precision=4, threshold=10000, linewidth=150)
Monday, October 19, 2009
Controlling Printing in Numpy
Numpy has numpy.set_printoptions for controlling the printing of arrays. See the doc for full details. Now that I know about it, I'll be using something displaying fewer precision digits, allowing a larger linewidth and not summarizing until the array is substantially larger:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment