deep learning summer workshop 2018 - purdue …...instructor: diyu yang (phd year 1, el gamal lab)...
TRANSCRIPT
![Page 1: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/1.jpg)
Deep Learning Summer Workshop 2018
Organizing Committee:Stanley ChanCharles BoumanAmir ZiabariXiangyu QuDiyu Yang
![Page 2: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/2.jpg)
Agenda
Wed 6/20: 1-5pm, EE 170
Wed 6/21: 1-5pm, EE 170
Session 1. (1pm - 3pm)Python Basic. RCAC server. Linux. Vim. Python. Numpy, Scipy. Instructor: Xiangyu Qu (PhD year 1, Chan Lab)
Session 2. (3pm - 5pm)Tensor Flow Basic. Neural network. Build graph. Train a network. Test a network. Instructor: Diyu Yang (PhD year 1, El Gamal Lab)
Session 3. (1pm - 3pm)Conv NN 1. Build your first CNN with tensor flow on MNIST dataset. Instructor: Dr. Amir Ziabari (Postdoc, Bouman Lab)
Session 4. (1pm - 3pm)Conv NN 2. Adding nonlinear components to NN. Instructor: Dr. Amir Ziabari (Postdoc, Bouman Lab)
![Page 3: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/3.jpg)
Installation Guide
![Page 4: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/4.jpg)
https://desktop.rice.rcac.purdue.edu:300/main/
Using Rice Server
Login with your Purdue Account
![Page 5: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/5.jpg)
Start Terminal
![Page 6: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/6.jpg)
Get a Node
$qsub -I –l nodes=1:ppn=20 –l walltime=04:00:00 –q chan129
![Page 7: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/7.jpg)
$ module load tensorflow
$ pip install matplotlib --user
Create a new file, say temp.pyOpen it
Open a file to write
![Page 8: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/8.jpg)
Hello World
$ python3 temp.py
![Page 9: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/9.jpg)
Using Your Own Laptop
https://anaconda.org/
![Page 10: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/10.jpg)
Install TensorFlow
![Page 11: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/11.jpg)
Create Environment
![Page 12: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/12.jpg)
Install Packages
You need:
tensorflow – cpunumpyscipymatplotlibSpyder… and other things you like
Makes sure this is checked
![Page 13: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/13.jpg)
Launch Spyder
![Page 14: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/14.jpg)
Hello World
![Page 15: Deep Learning Summer Workshop 2018 - Purdue …...Instructor: Diyu Yang (PhD year 1, El Gamal Lab) Session 3. (1pm - 3pm) Conv NN 1. Build your first CNN with tensor flow on MNIST](https://reader030.vdocuments.net/reader030/viewer/2022040811/5e53881b59c9ca15f45e6415/html5/thumbnails/15.jpg)