# TensorFlow Examples by aymericdamien

### Files

### Readme.md

# TensorFlow Examples

**There is updated version of this code in Python 3 and Tensorflow 1.3**
Aymericdamien TensorFlow Examples

Code examples for some popular machine learning algorithms, using TensorFlow library. This tutorial is designed to easily dive into TensorFlow, through examples. It includes both notebook and code with explanations.

## Tutorial index

#### 1 - Introduction

#### 2 - Basic Classifiers

- Nearest Neighbor (notebook) (code)
- Linear Regression (notebook) (code)
- Logistic Regression (notebook) (code)

#### 3 - Neural Networks

- Multilayer Perceptron (notebook) (code)
- Convolutional Neural Network (notebook) (code)
- AlexNet (notebook) (code)
- Recurrent Neural Network (LSTM) (notebook) (code)
- Bidirectional Recurrent Neural Network (LSTM) (notebook) (code)
- AutoEncoder (code)

#### 4 - Multi GPU

#### 5 - User Interface (Tensorboard)

## 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.

#### Basics

- Linear Regression. Implement a linear regression using TFLearn.
- Logical Operators. Implement logical operators with TFLearn (also includes a usage of 'merge').
- Weights Persistence. Save and Restore a model.
- Fine-Tuning. Fine-Tune a pre-trained model on a new task.
- Using HDF5. Use HDF5 to handle large datasets.
- Using DASK. Use DASK to handle large datasets.

#### Computer Vision

- Multi-layer perceptron. A multi-layer perceptron implementation for MNIST classification task.
- Convolutional Network (MNIST). A Convolutional neural network implementation for classifying MNIST dataset.
- Convolutional Network (CIFAR-10). A Convolutional neural network implementation for classifying CIFAR-10 dataset.
- Network in Network. 'Network in Network' implementation for classifying CIFAR-10 dataset.
- Alexnet. Apply Alexnet to Oxford Flowers 17 classification task.
- VGGNet. Apply VGG Network to Oxford Flowers 17 classification task.
- RNN Pixels. Use RNN (over sequence of pixels) to classify images.
- Residual Network (MNIST). A residual network with shallow bottlenecks applied to MNIST classification task.
- Residual Network (CIFAR-10). A residual network with deep bottlenecks applied to CIFAR-10 classification task.
- Auto Encoder. An auto encoder applied to MNIST handwritten digits.

#### Natural Language Processing

- Reccurent Network (LSTM). Apply an LSTM to IMDB sentiment dataset classification task.
- Bi-Directional LSTM. Apply a bi-directional LSTM to IMDB sentiment dataset classification task.
- City Name Generation. Generates new US-cities name, using LSTM network.
- Shakespeare Scripts Generation. Generates new Shakespeare scripts, using LSTM network.

## Dependencies

```
tensorflow
numpy
matplotlib
cuda (to run examples on GPU)
tflearn (if using tflearn examples)
```

For more details about TensorFlow installation, you can check Setup_TensorFlow.md

## Dataset

Some examples require MNIST dataset for training and testing. Don't worry, this dataset will automatically be downloaded when running examples (with input_data.py). MNIST is a database of handwritten digits, with 60,000 examples for training and 10,000 examples for testing. (Website: http://yann.lecun.com/exdb/mnist/)

### Changelog

[2017-08-30 07:39:04] v0.1.3: Add information about updated version

[2016-05-29 20:43] v0.1.2 : Move files to main folder

[2016-05-29 15:26] v0.1.1 : Clone repository, fresh install of TensorFlow

### More from this author

- SVM MNIST handwritten digit classification
- Linear regression models
- Introduction to matplotlib
- Tensorflow numbers recognition
- Tensorflow MNIST convolutional neural networks
- Numpy tutorial
- The World Bank eastern Europe GDP Analysis using Python Pandas and Seaborn
- Aymeric Damien TensorFlow Examples in Python 3
- Image convolution in python
- Python Bokeh Intorduction