GithubHelp home page GithubHelp logo

0d3ng / tensorflow-101 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from serengil/tensorflow-101

0.0 1.0 0.0 15.31 MB

TensorFlow 101: Introduction to TensorFlow

Home Page: https://sefiks.com/2017/07/11/hello-tensorflow/

License: MIT License

Java 0.04% Python 1.75% Jupyter Notebook 98.21%

tensorflow-101's Introduction

TensorFlow 101: Introduction to Deep Learning

I have worked all my life in Machine Learning, and I've never seen one algorithm knock over its benchmarks like Deep Learning - Andrew Ng

This repository will guide you to become a machine learning practitioner. This includes deep learning based project implementations I've done from scratch. You can find both the source code and documentation as a step by step tutorial. Model structrues and pre-trained weights are shared as well.

1- Facial Expression Recognition Code, Tutorial

This is a custom CNN model. Kaggle FER 2013 data set is fed to the model. This model runs fast and produces satisfactory results.

2- Real Time Facial Expression Recognition Code, Tutorial, Video

This is the adaptation of the same model to real time video or web cam.

3- Face Recognition With Oxford VGG-Face Model Code, Tutorial

Oxford Visual Geometry Group's VGG model is famous for confident scores on Imagenet contest. They retrain (almost) the same network structure for face recognition. This implementation is mainly based on convolutional neural networks, autoencoders and transfer learning. This is on the top of the leaderboard for face recognition challenges.

4- Real Time Deep Face Recognition Implementation with VGG-Face Code, Video

This is the real time implementation of VGG-Face model for face recognition.

5- Face Recognition with Google FaceNet Model Code, Tutorial

This is an alternative to Oxford VGG model. Even though FaceNet has more complex structure, it runs slower and less successful than VGG-Face based on my observations and experiments.

6- Apparent Age and Gender Prediction Code for age, Code for gender, Tutorial

We've used VGG-Face model for apparent age prediction this time. We actually applied transfer learning. Locking the early layers' weights enables to have outcomes fast.

7- Real Time Age and Gender Prediction Code, Video

This is a real time apparent age and gender prediction implementation

8- Celebrity You Look-Alike Face Recognition Code, Tutorial

Applying same face recogniction technology for imdb data set will find your celebrity look-alike if you discard the threshold in similarity score.

9- Real Time Celebrity Look-Alike Face Recognition Code, Video

This is the real time implementation of finding similar celebrities.

10- Making Arts with Deep Learning: Artistic Style Transfer Code, Tutorial, Video

What if Vincent van Gogh had painted Istanbul Bosporus? Today we can answer this question. A deep learning technique named artistic style transfer enables to transform ordinary images to masterpieces.

11- Autoencoder and clustering Code, Tutorial

We can use neural networks to represent data. If you design a neural networks model symmetric about the centroid and you can restore a base data with an acceptable loss, then output of the centroid layer can represent the base data. Representations can contribute any field of deep learning such as face recognition, style transfer or just clustering.

11- Convolutional Autoencoder and clustering Code, Tutorial

We can adapt same representation approach to convolutional neural networks, too.

13- Transfer Learning: Consuming InceptionV3 to Classify Cat and Dog Images in Keras Code, Tutorial

We can have the outcomes of the other researchers effortlessly. Google researchers compete on Kaggle Imagenet competition. They got 97% accuracy. We will adapt Google's Inception V3 model to classify objects.

14- Handwritten Digit Classification Using Neural Networks Code, Tutorial

We had to apply feature extraction on data sets to use neural networks. Deep learning enables to skip this step. We just feed the data, and deep neural networks can extract features on the data set. Here, we will feed handwritten digit data (MNIST) to deep neural networks, and expect to learn digits.

15- Handwritten Digit Recognition Using Convolutional Neural Networks with Keras Code, Tutorial

Convolutional neural networks are close to human brain. People look for some patterns in classifying objects. For example, mouth, nose and ear shape of a cat is enough to classify a cat. We don't look at all pixels, just focus on some area. Herein, CNN applies some filters to detect these kind of shapes. They perform better than conventional neural networks. Herein, we got almost 2% accuracy than fully connected neural networks.

16- Automated Machine Learning and Auto-Keras Code, Model, Tutorial

AutoML concept aims to find the best network structure and hyper-parameters. Here, I've applied AutoML to facial expression recognition data set. My custom design got 57% accuracy whereas AutoML found a better model and got 66% accuracy. This means almost 10% improvement in the accuracy.

Curriculum

The following curriculum includes the source codes and notebooks captured in TensorFlow 101: Introduction to Deep Learning online course published on Udemy.

Section 1 - Installing TensorFlow

1- Installing TensorFlow and Prerequisites Video

2- Jupyter notebook Video

3- Hello, TensorFlow! Building Deep Neural Networks Classifier Model Code

Section 2 - Reusability in TensorFlow

1- Restoring and Working on Already Trained DNN In TensorFlow Code

The costly operation in neural networks is learning. You may spent hours to train a neural networks model. On the other hand, you can run the model in seconds after training. We'll mention how to store trained models and restore them.

2- Importing Saved TensorFlow DNN Classifier Model in Java Code

You can handle training with TensorFlow in Python and you can call this trained model from Java on your production pipeline.

Section 3 - Monitoring and Evaluating

1- Monitoring Model Evaluation Metrics in TensorFlow and TensorBoard Code

Section 4 - Building regression and time series models

1- Building a DNN Regressor for Non-Linear Time Series in TensorFlow Code

2- Visualizing ML Results with Matplotlib and Embed them in TensorBoard Code

Section 5 - Building Unsupervised Learning Models

1- Unsupervised learning and k-means clustering with TensorFlow Code

We feel strong at supervised learning but today the more data we have is unlabeled. Unsupervised learning is mandatory field in machine learning.

2- Applying k-means clustering to n-dimensional datasets in TensorFlow Code

We can visualize clustering result on 2 and 3 dimensional space but the algorithm still works for higher dimensions even though we cannot visualize. Here, we apply k-means for n-dimensional data set but visualize for 3 dimensions.

Section 6 - Tuning Deep Neural Networks Models

1- Optimization Algorithms in TensorFlow Code

2- Activation Functions in TensorFlow Code

Section 7 - Consuming TensorFlow via Keras

1- Installing Keras Code

2- Building DNN Classifier with Keras Code

3- Storing and restoring a trained neural networks model with Keras Code

Additional Documents

1- How single layer perceptron works Code

This is the 1957 model implementation of the perceptron.

2- Gradient Vanishing Problem Code Tutorial

Why legacy activation functions such as sigmoid and tanh disappear on the pages of the history?

Requirements

I have tested this repository on the following environments.

C:\>python --version
Python 3.6.4 :: Anaconda, Inc.

C:\>activate tensorflow

(tensorflow) C:\>python
Python 3.5.5 |Anaconda, Inc.| (default, Apr  7 2018, 04:52:34) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> print(tf.__version__)
1.9.0
>>> import keras
Using TensorFlow backend.
>>> print(keras.__version__)
2.2.0

Licence

This repository is licensed under MIT license - see LICENSE for more details

tensorflow-101's People

Contributors

serengil avatar

Watchers

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