All Projects → ageron → Tensorflow Safari Course

ageron / Tensorflow Safari Course

Licence: apache-2.0
Exercises and solutions to accompany my Safari course introducing TensorFlow.

Projects that are alternatives of or similar to Tensorflow Safari Course

Segnet
A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
Stars: ✭ 170 (-0.58%)
Mutual labels:  jupyter-notebook
Deep Learning With Python Notebooks
Jupyter notebooks for the code samples of the book "Deep Learning with Python"
Stars: ✭ 14,243 (+8229.24%)
Mutual labels:  jupyter-notebook
Pytorch Tutorials
Stars: ✭ 170 (-0.58%)
Mutual labels:  jupyter-notebook
Ml Training Camp
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook
Shap
A game theoretic approach to explain the output of any machine learning model.
Stars: ✭ 14,917 (+8623.39%)
Mutual labels:  jupyter-notebook
Bert Keyword Extractor
Deep Keyphrase Extraction using BERT
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook
Word vectors game of thrones Live
This is the code for the "How to Make Word Vectors from Game of Thrones (LIVE) " Siraj Raval on Youtube
Stars: ✭ 170 (-0.58%)
Mutual labels:  jupyter-notebook
Data Science Tutorial
Code material for a data science tutorial
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook
Dive Into Dl Pytorch
本项目将《动手学深度学习》(Dive into Deep Learning)原书中的MXNet实现改为PyTorch实现。
Stars: ✭ 14,234 (+8223.98%)
Mutual labels:  jupyter-notebook
Udacity Machine Learning Nanodegree
All projects and lecture notes of the Udacity Machine Learning Engineer Nanodegree.
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook
Tutorials
MONAI Tutorials
Stars: ✭ 170 (-0.58%)
Mutual labels:  jupyter-notebook
Covid19 Severity Prediction
Extensive and accessible COVID-19 data + forecasting for counties and hospitals. 📈
Stars: ✭ 170 (-0.58%)
Mutual labels:  jupyter-notebook
Data Science Resources
👨🏽‍🏫You can learn about what data science is and why it's important in today's modern world. Are you interested in data science?🔋
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook
Convolutional autoencoder
Code for a convolutional autoencoder written on python, theano, lasagne, nolearn
Stars: ✭ 170 (-0.58%)
Mutual labels:  jupyter-notebook
Ipywebrtc
WebRTC for Jupyter notebook/lab
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook
Shape Detection
🟣 Object detection of abstract shapes with neural networks
Stars: ✭ 170 (-0.58%)
Mutual labels:  jupyter-notebook
Awesome Python Applications
💿 Free software that works great, and also happens to be open-source Python.
Stars: ✭ 13,275 (+7663.16%)
Mutual labels:  jupyter-notebook
Alpha Mind
quantitative security portfolio analysis. The analysis pipeline including data storage abstraction, alpha calculation, ML based alpha combining and portfolio calculation.
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook
Mlbox
Machine Learning Algorithms implementations
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook
Data science for all
Code and resources for my blog and articles to share Data Science and AI knowledge and learnings with everyone
Stars: ✭ 171 (+0%)
Mutual labels:  jupyter-notebook

Introduction to TensorFlow

This project accompanies my Introduction to TensorFlow live online trainings (April 27-28, June 21-22, September 13-14, December 13-14 2017). It contains the exercises and their solutions, in the form of Jupyter notebooks.

During the course itself, a URL will be provided for running the notebooks. You can participate in the course without installing anything local. If you prefer to work on a local installation, please follow the installation instructions below.

book

If you are looking for the code accompanying my O'Reilly book, Hands-on Machine Learning with Scikit-Learn and TensorFlow, visit this GitHub project: handson-ml.

Installation

First, you will need to install git, if you don't have it already.

Next, clone this repository by opening a terminal and typing the following commands:

$ cd $HOME  # or any other development directory you prefer
$ git clone https://github.com/ageron/tensorflow-safari-course.git
$ cd tensorflow-safari-course

If you are familiar with Python and you know how to install Python libraries, go ahead and install NumPy, Matplotlib, Jupyter and TensorFlow (see requirements.txt for details), and jump to the Starting Jupyter section. If you need detailed instructions, read on.

You obviously need Python. Python 2 is already preinstalled on most systems nowadays, and sometimes even Python 3. You can check which version(s) you have by typing the following commands:

$ python --version   # for Python 2
$ python3 --version  # for Python 3

Any Python 3 version should be fine, as well as Python 2.6 or 2.7. However, if you don't have Python 3, I recommend installing it (Python 2 should work, but it is deprecated so Python 3 is preferable). To do so, you have several options: on Windows or MacOSX, you can just download it from python.org. On MacOSX, you can alternatively use MacPorts or Homebrew. On Linux, unless you know what you are doing, you should use your system's packaging system. For example, on Debian or Ubuntu, type:

$ sudo apt-get update
$ sudo apt-get install python3

Another option is to download and install Anaconda. This is a package that includes both Python and many scientific libraries. You should prefer the Python 3 version.

Using Anaconda

If you chose to install Anaconda, you can optionally create an isolated Python environment dedicated to this course. This is recommended as it makes it possible to have a different environment for each project (e.g. one for this course), with potentially different libraries and library versions:

$ conda create -n tfintro python=3.5 anaconda
$ source activate tfintro

This creates a fresh Python 3.5 environment called tfintro, and it activates it. This environment contains all the scientific libraries that come with Anaconda. This includes all the libraries we will need (NumPy, Matplotlib and Jupyter), except for TensorFlow, so let's install it:

$ conda install -n tfintro -c conda-forge tensorflow=1.4.0

This installs TensorFlow 1.4.0 in the tfintro environment (fetching it from the conda-forge repository). If you chose not to create a tfintro environment, then just remove the -n tfintro option.

You are all set! Next, jump to the Starting Jupyter section.

Using pip

If you are not using Anaconda, you need to install several scientific Python libraries that are necessary for this course: NumPy, Jupyter, Matplotlib and TensorFlow. For this, you can either use Python's integrated packaging system, pip, or you may prefer to use your system's own packaging system (if available, e.g. on Linux, or on MacOSX when using MacPorts or Homebrew). The advantage of using pip is that it is easy to create multiple isolated Python environments with different libraries and different library versions (e.g. one environment for each project). The advantage of using your system's packaging system is that there is less risk of having conflicts between the Python libraries versions and your system's other packages. Since I have many projects with different library requirements, I prefer to use pip with isolated environments.

These are the commands you need to type in a terminal if you want to use pip to install the required libraries. Note: in all the following commands, if you chose to use Python 2 rather than Python 3, you must replace pip3 with pip, and python3 with python.

First you need to make sure you have the latest version of pip installed:

$ pip3 install --user --upgrade pip

The --user option will install the latest version of pip only for the current user. If you prefer to install it system wide (i.e. for all users), you must have administrator rights (e.g. use sudo pip3 instead of pip3 on Linux), and you should remove the --user option. The same is true of the command below that uses the --user option.

Next, you can optionally create an isolated environment. As explained above, this is recommended as it makes it possible to have a different environment for each project (e.g. one for this course), with potentially very different libraries, and different versions:

$ pip3 install --user --upgrade virtualenv
$ virtualenv -p `which python3` env

This creates a new directory called env in the current directory, containing an isolated Python environment using Python 3. If you have multiple versions of Python 3 installed on your system, you can replace `which python3` with the path to the Python executable you prefer to use.

Now you want to activate this environment. You will need to run this command every time you want to use it.

$ source ./env/bin/activate

Next, use pip to install the required python packages. If you are not using virtualenv, you should add the --user option (or else you will probably need administrator rights, e.g. using sudo pip3 instead of pip3 on Linux).

$ pip3 install --upgrade -r requirements.txt

Great! You're all set, you just need to start Jupyter now.

Starting Jupyter

To start Jupyter, simply type:

$ jupyter notebook

This should open up your browser, and you should see Jupyter's tree view, with the contents of the current directory. If your browser does not open automatically, visit localhost:8888.

Next, just click on any *.ipynb to open a Jupyter notebook.

That's it! Now, have fun learning TensorFlow!

Using Docker

There is a docker image available for this course: esztiorm/0636920073925

If you wish to create your own image using the Dockerfile, please note that the path "tmp/data" should be changed to "/home/jovyan/tmp/data" in notebooks 8 through 11.

mnist = input_data.read_data_sets("/home/jovyan/tmp/data/")

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].