첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
import matplotlib.pyplot as pp
import tensorflow as tf

tensor = tf.random_uniform([100], minval = 0, maxval = 1, dtype = tf.float32)

with tf.Session() as sess:
    print(tensor.eval())
    pp.hist(tensor.eval(), density = True)
    pp.show()

 

728x90

 

[결과]

[0.59834206 0.51181686 0.050102   0.73071086 0.43281043 0.403
 0.84472597 0.86903036 0.9982685  0.37471735 0.29925036 0.7509545
 0.80886376 0.13208961 0.8736682  0.7498324  0.05850744 0.7352829
 0.01046085 0.86014843 0.52570355 0.67701745 0.8295574  0.3465761
 0.59797275 0.65029776 0.5552492  0.09862709 0.7465478  0.5077661
 0.6939571  0.33908582 0.8289263  0.73877156 0.735968   0.7166053
 0.6315912  0.31752253 0.9069333  0.6777247  0.14038134 0.7489219
 0.90146756 0.24346983 0.10258448 0.20915556 0.3328128  0.8555565
 0.5762454  0.8039553  0.46993172 0.11023343 0.1745404  0.9341748
 0.850304   0.09276247 0.7760397  0.88917756 0.49657965 0.51570284
 0.07565284 0.08290625 0.47053838 0.65277123 0.9000623  0.5739497
 0.8410399  0.8034811  0.43779492 0.7869625  0.8152808  0.18398738
 0.57458556 0.36849105 0.14195943 0.5163764  0.5915874  0.79982495
 0.87443864 0.6804317  0.31145406 0.5538204  0.1555816  0.70909894
 0.15273666 0.09382796 0.0074687  0.7780589  0.7109288  0.17873096
 0.7720157  0.9246503  0.6532688  0.16645253 0.38929904 0.38421035
 0.8735094  0.47028458 0.30578423 0.4232496 ]

 

300x250

 

728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요