实验环境配置

Pre-requisites: git, python 2.7.X, virtualenv, pip (7.1.X recommended)

  • If you're using Ubuntu, here are all the packages you'll need before you can proceed

    $ sudo apt-get install python2.7 python-dev build-essential curl libatlas-base-dev gfortran
    $ sudo apt-get install libfreetype6-dev libpng-dev libjpeg-dev
    
  • Clone the repo from GitHub

    $ git clone https://github.com/rouseguy/intro2deeplearning.git
    $ cd intro2deeplearning
    
  • Create python virtual environment

    $ virtualenv env
    $ source env/bin/activate
    
  • Install requirements using pip

    $ pip install -r requirements.txt
    

    Use requirements_linux.txt instead of requirements.txt if you're on linux

  • When the requirements are being downloaded / installed, Fetch the datasets simultaneously

      $ sh download_data.sh
    
  • Run check_env.py script to test the dependencies

    $ python check_env.py
    

    Output should look like this

    [ OK ] scipy version 0.15.1
    [ OK ] PIL version 1.1.7
    [ OK ] keras
    [ OK ] IPython version 4.0.0
    [ OK ] theano version 0.7.0
    [ OK ] numpy version 1.9.2
    [ OK ] pandas version 0.16.2
    [ OK ] gensim version 0.10.3
    [ OK ] sklearn version 0.16.1
    

    This means you have all the dependencies installed and you're ready to start.

  • Run the notebook

    $ cd notebooks
    $ ipython notebook
    

    This opens your default browser which displays the list of notebooks in the current directory. 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值