iT邦幫忙

2018 iT 邦幫忙鐵人賽
DAY 15
0
AI & Machine Learning

tensorflow python系列 第 15

DAY15 常數分配的亂數

程式開始:

import tensorflow as tf
import matplotlib.pyplot as plt
nor=tf.random_normal([1000])
with tf.Session() as session:
    nor_data=nor.eval()
    print(nor_data[:6])
    plt.hist(nor_data)
    plt.show()

程式說明:

tf.random_normal功能為產生常態分佈的亂數

程式執行:

https://ithelp.ithome.com.tw/upload/images/20180103/20107535sTfegeKSCt.png

https://ithelp.ithome.com.tw/upload/images/20180103/20107535q3ertBKMZj.png

結語:

最近要期末了比較忙,先發這樣,之後再補.


上一篇
DAY14 激勵函數
下一篇
DAY16 線性回歸
系列文
tensorflow python30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言