Git Product home page Git Product logo

tensorflow-hands-on's Introduction

tensorflow-hands-on

This repository is meant to share materials about deep learning and TensorFlow used during my two interventions at training program Certificat de spécialisation Analyste de données massives in Conservatoire national des arts et métiers.

Deep learning Slides

If you would like to have a quick overview of deep learning basic architectures and its applications in computer vision and Natural language processing, you could find the presentation in the following link: http://ahmed-touati.github.io/tensorflow-hands-on/

Hands on and installation

This hands-on is meant to dive into the Google open-sourced machine learning library TensorFlow. Coding will be in Python 2.7 using IPython Notebook.

This hands-on is inspired from the udacity course of deep learning: https://www.udacity.com/course/deep-learning--ud730.

I will explain here how to install TensorFlow on Mac or Linux. For the windows users, you could follow the instructions described in How to install and run TensorFlow on a Windows PC. However, windows users should read this following tutorial especially the last section as the instructions are a bit similar for the three operating systems.

There are three types of install:

  • Pip: Install TensorFlow directly on your computer. You need to have Python 2.7 and pip installed
  • Virtualenv: Install TensorFlow in an isolated (virtual) Python environment.
  • Docker: Run TensorFlow in an isolated Docker container (virtual machine) on your computer.

If you would like to use the two first methods, You could follow instructions in download and setup TensorFlow.

Here, I will explain the Docker method. I think it is the easiest method as it ensures that all dependencies required are available. It could be confusing to use docker initially. Docker is very useful to package a piece of software with all its dependencies. Moreover, it allows us to have the same developpement environnement through the training session.

Setup

  1. Install docker. Follow the instructions in:
  2. Mac users should open "Docker Quickstart Terminal"
  3. Type: docker run -p 8888:8888 -it b.gcr.io/tensorflow/tensorflow /bin/bash
    • docker run : to run a given image.
    • -i : stands for interactive.
    • b.gcr.io/tensorflow/tensorflow : one of TensorFlow images provided by Google. when run this command at the first time, we will get the following response: Unable to find image 'b.gcr.io/tensorflow/tensorflow:latest' locally latest: Pulling from tensorflow/tensorflow and the download of the image from Google Cloud Repository will start. It will take some minutes.
    • /bin/bash : is the process to launch ##Testing Type "ipython". After getting the promt of ipython, type the following code lines. After you type the last line you should see a response "Hello, World!".

IPython Notebook

In the TensorFlow image, we can find three ipython notebooks in the "notebooks" folders: 1_hello_tensorflow.ipynb, 2_getting_started.ipynb, 3_mnist_from_scratch.ipynb.

The IPython Notebook is an interactive computational environment, in which you can combine code execution, text, mathematics, plots.

Type ipython notebook to launch IPython Notebook web application. To get access to the Notebooks, go to the browser and

We could see on the browser the three notebooks. Click for example on the first one "1_hello_tensorflow.ipynb". The notebook is split into cells: a cell can contain python code or text. You can execute a cell by clicking on it and pressing Shift-Enter. When you do so, the code in the cell will run, and the output of the cell will be displayed beneath the cell. You can also add more cells and write more codes. I strongly recommand you to read those three notebooks and play with before the our training session.

tensorflow-hands-on's People

Watchers

James Cloos avatar  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.