VijaiKMathew / practical-deep-learning

fast.ai course for coders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Practical Deep Learning For Coders

Setup

  1. ** Create amazon AWS account **

  2. ** Request EC2 limit upgrade **

  3. ** Download Anaconda for python 2.7 **

  4. ** Install AWS CLI **

    • pip install awscli
    • check by typing aws. If it complains about locale's check this site
  5. ** Create new AWS user **

  6. Configure AWS

    • aws configure
    • Enter previous generated credentials
    • Region: eu-west-1
    • Output: text
  7. Download setup script

    wget https://raw.githubusercontent.com/fastai/courses/master/setup/setup_p2.sh

    • chmod 775 setup_p2.sh
  8. Run setup

    • ./setup_p2.sh
    • Copy output in credentials
    • Copy connection command
  9. Connect to server

    • ssh -i /Users/[localUser]/.ssh/aws-key.pem ubuntu@[instanceUrl]
    • When prompted type 'yes'
  10. Update packages & reboot

    • Undo bug with history: sudo rm .bash_history
    • sudo apt-get update
    • sudo apt-get upgrade
    • sudo reboot now
  11. Check setup

  12. Start notebook

  13. Check notebooks

    • Create new notebook in 'nbs' folder usding Python [conda root]
    • check basic command (like 1+1)
    • check imports import theano & import keras
  14. Shortcuts

    • Download aliases wget https://raw.githubusercontent.com/fastai/courses/master/setup/aws-alias.sh
    • source aws-alias.sh
  15. Setup notebooks

    Perhaps rename it to something sensible, like fastai-courses?

    • SSH to machine (aws-ssh)
    • cd ~ if you are not already there
    • Clone your repo git clone https://github.com/[repoUrl]
    • Make a link to notebooks ln -s ~/[repoName]/deeplearning1/nbs/ nbs/deeplearning1
    • Run jupyter in background jupyter notebook &> /dev/null &
    • Make data dir mkdir ~/nbs/data and change to it cd ~/nbs/data
    • Download dogs&cats wget http://www.platform.ai/data/dogscats.zip
    • Install unzip sudo apt-get install unzip
    • Unzip the data unzip -q dogscats.zip
    • Go to your notebook http://[instanceUrl]:8888/notebooks/deeplearning1/lesson1.ipynb
    • Step through the process of lesson1.ipynb
  16. Kaggle CLI

About

fast.ai course for coders


Languages

Language:Shell 100.0%