Home  >  Article  >  Backend Development  >  Solve the problem of ellipses in python output

Solve the problem of ellipses in python output

不言
不言Original
2018-04-19 11:08:164290browse

Below I will share with you an article that solves the problem of ellipses in python output. It has a good reference value and I hope it will be helpful to everyone. Let's come and take a look.

This problem is very, very important. I haven't solved it all night long, but it is really very simple. If you also use numpy array, if you also want to get the entire output matrix content, rather than omitting the form,

[[ 0.10284943 0.0959931 0.00076021 ..., -0.01035775 0.02561938
 0.09741836]
 [-0.01446581 -0.0427694 -0.08351202 ..., 0.02489615 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.02849357 -0.04322642
 -0.05537828]
 [-0.03705954 0.05411949 -0.06646272 ..., 0.06692882 -0.08324111
 -0.07917399]]

Then you only need to add one line of code:

np.set_printoptions(threshold='nan') #全部输出 
print str(lstm_node_list[-1].param.wi)

Then you can output everything.



##

The above is the detailed content of Solve the problem of ellipses in python output. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn