TensorFlow-Examples README

The project's README from github.com/aymericdamien/TensorFlow-Examples. As one markdown file: README.md.

TensorFlow Examples

This tutorial was designed for easily diving into TensorFlow, through examples. For readability, it includes both notebooks and source codes with explanation, for both TF v1 & v2.

It is suitable for beginners who want to find clear and concise examples about TensorFlow. Besides the traditional 'raw' TensorFlow implementations, you can also find the latest TensorFlow API practices (such as layers, estimator, dataset, ...).

Update (05/16/2020): Moving all default examples to TF2. For TF v1 examples: check here.

Tutorial index

0 - Prerequisite

1 - Introduction

2 - Basic Models

3 - Neural Networks

Supervised
Unsupervised

4 - Utilities

5 - Data Management

6 - Hardware

TensorFlow v1

The tutorial index for TF v1 is available here: TensorFlow v1.15 Examples. Or see below for a list of the examples.

Dataset

Some examples require MNIST dataset for training and testing. Don't worry, this dataset will automatically be downloaded when running examples. MNIST is a database of handwritten digits, for a quick description of that dataset, you can check this notebook.

Official Website: http://yann.lecun.com/exdb/mnist/.

Installation

To download all the examples, simply clone this repository:

git clone https://github.com/aymericdamien/TensorFlow-Examples

To run them, you also need the latest version of TensorFlow. To install it:

pip install tensorflow

or (with GPU support):

pip install tensorflow_gpu

For more details about TensorFlow installation, you can check TensorFlow Installation Guide

TensorFlow v1 Examples - Index

The tutorial index for TF v1 is available here: TensorFlow v1.15 Examples.

0 - Prerequisite

1 - Introduction

2 - Basic Models

3 - Neural Networks

Supervised
Unsupervised

4 - Utilities

5 - Data Management

6 - Multi GPU

More Examples

The following examples are coming from TFLearn, a library that provides a simplified interface for TensorFlow. You can have a look, there are many examples and pre-built operations and layers.

Tutorials

Examples

TensorFlow-Examples (aymericdamien/TensorFlow-Examples)

Searching Database…

What is this?A hands-on tutorial collection that teaches TensorFlow through runnable examples, from a hello world notebook up to deep neural networks and GANs.
Is each example a runnable notebook or just code listings?Jupyter notebooks with explanations; the TF v1 section also ships the same examples as plain source files.
How do I pull all the examples onto my machine?Clone the repository — that one step downloads every example in the collection.
What has to be installed before the notebooks will run?The latest version of TensorFlow; the README also points to an install with GPU support and to the official TensorFlow Installation Guide.
Is the code in step with the newest TensorFlow releases?The default examples were moved to TF2 in the May 2020 update, so expect TF 2.x-era code; TF v1.15 examples live in a separate index.
I'm new to deep learning — is this the right place to start?Yes — it targets beginners who want clear, concise examples, and even opens with prerequisites: an intro to machine learning and to the MNIST dataset.
How is the collection organized?As a numbered index: 0 prerequisites, 1 introduction, 2 basic models (linear/logistic regression, Word2Vec, GBDT), 3 neural networks split into supervised (CNN, RNN/LSTM) and unsupervised (auto-encoder, DCGAN), 4 utilities (TensorBoard, save/restore, custom layers), 5 data management (pipelines, TFRecords, augmentation) and 6 multi-GPU training.
Do I have to download the MNIST dataset myself?No — examples that need it fetch MNIST automatically when you run them. MNIST is a database of handwritten digits used for training and testing.
Are examples written with the modern high-level API or raw low-level code?Both — besides traditional raw implementations you also get examples using the latest TensorFlow API practices, such as layers, estimator and dataset.
What are the TFLearn examples at the bottom about?A bonus section of examples coming from TFLearn, a library that provides a simplified interface for TensorFlow, plus a quickstart that builds and trains a deep neural network classifier.
Size
10 MB
Stars
43.7K
Updated
CommitOct 23
Age
10y
Commits · 90 Days