15
Deep Learning Summer Workshop 2018 Organizing Committee: Stanley Chan Charles Bouman Amir Ziabari Xiangyu Qu Diyu Yang

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

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

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

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

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

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://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

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

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

$ 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

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

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

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

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

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

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

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