Troubleshooting Python output is an ellipsis

Source: Internet
Author: User
Below for you to share an article to solve the Python output is the ellipsis problem, has a good reference value, I hope to be helpful to everyone. Come and see it together.

The problem is very, very important, it's not settled all night, but it's really simple and simple, if you're also using the NumPy array, if you want the entire contents of the output matrix, rather than omitting the form,

[[0.10284943 0.0959931 0.00076021 ...,-0.01035775 0.02561938 0.09741836] [ -0.01446581-0.0427694-0.08351202 ..., 0.0248 9615 0.05786737-0.01584686] [ -0.05037935-0.07454829 0.09947016 ..., -0.09998163-0.09964585 0.09975565] ...,  [- 0.07702241 0.05524901 0.06280549 ..., 0.04165902 0.00985143-0.08415554] [0.08382587-0.01704193-0.0087511 ..., 0.028493 57-0.04322642-0.05537828] [-0.03705954 0.05411949-0.06646272 ..., 0.06692882-0.08324111-0.07917399]]

Then you only need to add a line of code:

Np.set_printoptions (threshold= ' nan ') #全部输出 print str (LSTM_NODE_LIST[-1].PARAM.WI)

And then you can output it all.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.