Tensorflow - 0

前言: Jserv 2016 暑期軟體課程



Tensorflow




Google 開源 Tensorflow

TensorFlow是 Google 研發的第二代人工智慧學習系統
- 開源 : github
- Tensor(張量)意味着N維數組,Flow(流)意味着基於數據流圖的計算,
   TensorFlow即為張量從圖象的一端流動到另一端
   ——將複雜的數據結構傳輸至人工智能神經網中進行分析和處理。 
谷歌正計劃在TensorFlow的基礎上發佈ImageNet計算機視覺模型


Tensorflow 安裝方式: 
https://www.tensorflow.org/versions/master/get_started/os_setup.html
以 mac 上 pip 安裝為例 : 
- 安裝 pip
$ sudo easy_install pip
$ sudo easy_install --upgrade six

Python 2.7 


export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py2-none-any.whl

$ sudo pip install --upgrade $TF_BINARY_URL

測試是否安裝正確, 可以在 terminal 上 執行 : 

$ python
...
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> print(sess.run(a + b))
42
>>>

---
範例 - 手寫數字


中文說明 
MNIST 數據 
實驗 - github 程式

python mnist_softmax.py : 0.91

[心得] 這範例可以跑,  但看不大懂呀.. 看來得先再學幾個基本..

----


剛去 safaribooksonline 看, 歐萊禮 明年要出一本新書呢.. 先來 study 一下..




https://github.com/ageron/handson-ml




參考:
https://github.com/aymericdamien/TensorFlow-Examples
TensorFlow - 官方文檔中文版
http://www.jianshu.com/p/2186766b69dc

莫煩教學影片
https://www.youtube.com/playlist?list=PLXO45tsB95cKI5AIlf5TxxFPzb-0zeVZ8




留言

熱門文章