Skip to content

hamzafar/deep_learning_toys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Learning Toys:

Background:

Getting inspiation from Andrew_Ng deep learning speccialization; Heros of Deep Learning I am compiling jupyter notebooks that focuses on the tips of the Heros. Below are main points; will be considering in this repo:

1. Geofry Hinton: Work on your own intiuation & code it

2. Yoshua Bengio: Create small deep learning toys

3. Andrej Karpathy & Ian Good Fellow: Deploy Algorithms from scratch

Compiling all tips together, we are making a toy that will understand Deep learning algorithms and deploy them from scratch. After then we will do some intuation in deep learning algorithms. This Toy is really excited by new type of Electricity and really want to be an Artificial Electrical Specialist. Let's have toy story:

[Please Note: The Algorithm from scratch, that are deployed on Kaggle Kernel, can be seen on the links in the story.]


Alex has recently come to know about the new form of electricty that can transform the industrization. He is really excited to learn about it. So, he plans to build a basic circuit to start learning with that can replicate XOR gate but he is not using electric gate, instead he tries to implement this "new" concept that is just brought up in his knowledge.

As Alex is new-bie in the field and he really does not know much about this field concepts but all he knows that there is tool Regression that can build XOR gate. So, he just picks up the tool and starts building his first basic XOR gate. His detailed demo of gate can be seen on the following link: Make first gate

In his first attempt, Alex just used only two input values to validate his gate operation either it's working fine or not. But surperising his gate is giving him superb results as it is working ~100% accurately. He does not hold himself and after making his hands dirty to build XOR gate with simple input he thinks to generalize this circut gate with more complex inputs to check how his work is robust. In the link Regression for XOR he automates the gate and check it on various load setting(by load setting we mean different shape of input data).

But, alas, his automated Regression gate is not powreful to cope up load testing! :(

There is a guy in Alex class, who always secures more marks than him and also beat Alex in different competitions in the school, and Alex was really jealous from him. One day his smart fried told him about concept of Artificial Neural Network and its power of aproximation to every equation in the universe. Alex, got excited about the concept and was really happy to deploy it to solve his XOR problem. So, he deployed a simple two neural network using KISS principle.

He is excited, as his simple Network is giving him excellent results as compared to Regression. So, he generalized the simple architecture into complex one. He named it Multi Layer Perceptrons. The architecture is flexible one, that it can include more neuorns(Logistic Regression Units) in it. These units stack up together to build a netowrk that is much bigger and deep than the simple network: made before.

Since, Alex was inspired by functions of brain and brain has one excellent functionality "Memory"; he wanted to replicate that concpet in his work. He came to know about the type of Artificial Neural Netowrk names as Recurrent Neural Network. They can read inputs x (such as bits) one at a time, and remember some information/context through the hidden layer activations that get passed from one time-step to the next. This allows a RNN to take information from the past to process later inputs.

Result Comparision:

The three algorithms: Logistic Regression, Multi-layer Neural Network and Recurrent Neural Network, are trained on two different binary datasets whose length(number of rows) is 10000, 100000 and width (number of column) is 50. The table below contains the error graphs of each algorithm.

Algorithms Training Sample:10000 Training Sample:100000
Regression
Multi-layer Neural Network
Recurrent Neural Network

(WORK IN PROGRESS!! He is exploring to build gate more powerful.)

About

Deep learning from scratch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published