1.安裝Anaconda和Tensorflow以及Keras

在安裝時也要注意下載相關套件像是 NumPy、Pandas等矩陣運算的套件

Tensorflow則是CPU或GPU版皆可使用

Tensorflow
Keras
Numpy
Pandas

2.安裝 CUDA Toolkit 需要依照Tensorflow的版本來下載對應的版本

https://developer.nvidia.com/cuda-toolkit-archive

下載前須先建立並登入NVIDIA帳號

因為我們使用Tensorflow 1.14.0 故下載CUDA 10.0

3.下載  cuDNN v6.x  ,將檔案解壓縮放入  CUDA Toolkit  安裝目錄中

(名稱為NVIDIA GPU Computing Toolkit)

會擁有以下三個檔案

4.再來就可以將程式打入

圖中可看見程式執行是沒有問題的

如果想看看訓練的成果,可以放入以下程式

我們可以看到他成功的讀出了第一筆資料7,如果想看看其他筆資料,則可以更改X_test[]之中的數字,例如改成1,則會顯示出第二筆資料2

如果想看看優化過程的話,則可以使用以下程式碼

(請記得把觀看訓練成果的程式碼先暫時註解掉,否則無法正常顯示)

260 thoughts on “編寫Neural Network 程式—阿拉伯數字辨識

  1. Aw, this was an incredibly nice post. Taking the time and actualeffort to create a great article… but what can I say… I put things offa whole lot and don’t manage to get nearlyanything done.

  2. Aw, this was an extremely nice post. Taking a few minutes and actual effort to make a good article… but what can I say… I procrastinate a whole lot and never seem to get nearly anything done.

  3. A fascinating discussion is definitely worth comment. Ido think that you should write more on this subject, itmight not be a taboo matter but typically peopledon’t speak about these topics. To the next! Cheers!!

  4. Thanks for some other wonderful article. The place elsemay anyone get that kind of info in such an ideal way of writing?I’ve a presentation subsequent week, and I’mat the look for such information.

  5. I am not sure where you’re getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for magnificent info I was looking for this information for my mission.

  6. I’m really impressed with your writing skills as well as with the layout on your blog.Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it’s rare to see a great blog like this one these days.

  7. Wow that was odd. I just wrote an extremely long comment but after I clicked submit my comment didn’t appear.Grrrr… well I’m not writing all that over again. Anyway, just wanted to say fantastic blog!

  8. Hi, I do think this is an excellent blog. I stumbledupon it 😉 I will revisit once again since I saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to help others.

  9. Thanks for ones marvelous posting! I certainly enjoyed reading it, you will be a great author.I will be sure to bookmark your blog and may come back very soon. I want to encourage that you continue your great work, have a nice morning!

  10. Hello there! I know this is kinda off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having problems finding one? Thanks a lot!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>