Giter Club home page Giter Club logo

deep_learning's Introduction

Deep Learning

Supplemental files for the Deep Learning workshop, presented by the IDEA Student Center of UC San Diego.

Requirements

We will be using the Keras package to write our Deep Learning models, with TensorFlow as the backend:

  • python 3.5
  • numpy
  • matplotlib
  • keras >= 2.0.0
  • tensorflow >= 1.0.0
  • jupyter

NOTE: Python 2.7 should work on macOS and Linux, but only Python 3.5 is supported for TensorFlow on Windows.

Installation

If you previously installed Python using Anaconda (https://www.anaconda.com/download/), you can install the required packages using the following commands:

macOS

  1. open Terminal.app
  2. run the following commands in the terminal (type each line and hit enter):
    1. create a new Anaconda environment: conda create -n deeplearning python=3.6 numpy scipy matplotlib jupyter pandas scikit-learn pip
    2. activate the environment: source activate deeplearning
    3. install TensorFlow and Keras: pip install --upgrade tensorflow keras

Windows

  1. open the Anaconda Command Prompt
  2. run the following commands in the terminal (type each line and hit enter):
    1. create a new Anaconda environment: conda create -n deeplearning python=3.6 numpy scipy matplotlib jupyter pandas scikit-learn pip
    2. activate the environment: activate deeplearning
    3. install TensorFlow and Keras: pip install --upgrade tensorflow keras

Linux

  1. open a terminal program
  2. run the following commands in the terminal (type each line and hit enter):
    1. create a new Anaconda environment: conda create -n deeplearning python=3.6 numpy scipy matplotlib jupyter pandas scikit-learn pip
    2. activate the environment: source activate deeplearning
    3. install TensorFlow and Keras: pip install --upgrade tensorflow keras

Testing the installation

To test the installation (for macOS, Windows or Linux), run the following commands in the same terminal from above:

  • start python and load TensorFlow: python -c "import tensorflow; print(tensorflow.__version__)"
  • start python and load Keras: python -c "import keras; print(keras.__version__)"

You should see output similar to the following:

> python -c "import tensorflow; print(tensorflow.__version__)"
1.4.0

NOTE: Make sure you have the Anaconda environment activated before running the above test command. If you don't, the command will fail as it will not "know" where to look for the TensorFlow install.

Common issues

  • If TensorFlow fails to install, still try to install Keras (Keras defaults to TensorFlow for the backend, but can switch to Theano instead).
  • On Windows, TensorFlow is only compatible with Python 3.5+.
  • If you don't already have Python installed, we recommend installing it using the Anaconda distribution (https://www.anaconda.com/download/).
  • If you are already familiar with Python and installing packages with pip, you can skip installing Python using Anaconda and instead install the requirements using pip (e.g. pip install numpy matplotlib jupyter tensorflow keras).

Non-Anaconda installation

If you did not previously install Python using Anaconda, then you can follow the installation instructions listed in the official documentation for:

Demos

Online demos:

Articles:

Other TensorFlow and Keras tutorials

deep_learning's People

Contributors

dplarson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.