Print numpy full matrix without truncate

When I print my matrix of numpy it gets trancated and looks like this

[[0.00029835 0.0003334  0.00037256 ... 0.0005698  0.00056639 0.00056299]
 [0.00035514 0.00039805 0.00044613 ... 0.00064543 0.00063786 0.00063038]
 [0.00042275 0.00047522 0.00053421 ... 0.0007311  0.00071835 0.00070583]
 ...
 [0.00069639 0.00078163 0.00087729 ... 0.00075643 0.00070945 0.00066539]
 [0.00067638 0.00076202 0.00085849 ... 0.00070018 0.00065185 0.00060686]
 [0.00065693 0.0007429  0.00084009 ... 0.00064811 0.00059892 0.00055347]]

How can I print a full matrix, cause my matrix is not too big?

numpymatrixprint
4 votesLP185.00
1 Answers
JO218.00
2

Just add an option of numpy print config

import sys
import numpy
numpy.set_printoptions(threshold=sys.maxsize)

Heres is the docs of  numpy.set_printoptions function.

Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?