Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regularisation #6

Open
wants to merge 74 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
5882020
Add files via upload
gksoriginals Aug 16, 2017
14a7f88
Create tensorflow.md
gksoriginals Jul 31, 2018
3fc91c9
Update tensorflow.md
gksoriginals Jul 31, 2018
057bf80
Update tensorflow.md
gksoriginals Aug 2, 2018
8391243
Update tensorflow.md
gksoriginals Aug 2, 2018
e5d5e58
Update tensorflow.md
gksoriginals Aug 2, 2018
1acb16a
Update tensorflow.md
gksoriginals Aug 2, 2018
a4883bc
Update tensorflow.md
gksoriginals Aug 2, 2018
6e89f1f
Update tensorflow.md
gksoriginals Aug 2, 2018
a8910f2
Update tensorflow.md
gksoriginals Aug 2, 2018
950a000
Update tensorflow.md
gksoriginals Aug 2, 2018
a5c2b45
Update tensorflow.md
gksoriginals Aug 2, 2018
5bd4208
Update tensorflow.md
gksoriginals Aug 2, 2018
7236c45
Update tensorflow.md
gksoriginals Aug 2, 2018
9798c08
Add files via upload
gksoriginals Aug 2, 2018
4c5cb47
Update tensorflow.md
gksoriginals Aug 2, 2018
ca7c214
Update tensorflow.md
gksoriginals Aug 2, 2018
4b43960
Add files via upload
gksoriginals Aug 2, 2018
5f88363
Update tensorflow.md
gksoriginals Aug 2, 2018
01d751d
Update tensorflow.md
gksoriginals Aug 2, 2018
820639b
Update tensorflow.md
gksoriginals Aug 2, 2018
cba52c6
Update tensorflow.md
gksoriginals Aug 2, 2018
a98460e
Add files via upload
gksoriginals Aug 2, 2018
7837ba4
Update tensorflow.md
gksoriginals Aug 2, 2018
97cc65c
Update tensorflow.md
gksoriginals Aug 2, 2018
477fd1e
Update tensorflow.md
gksoriginals Aug 3, 2018
e7e9eec
Update tensorflow.md
gksoriginals Aug 3, 2018
d9c13f4
Add files via upload
gksoriginals Aug 3, 2018
b63447b
Update tensorflow.md
gksoriginals Aug 4, 2018
84305a8
Add files via upload
gksoriginals Aug 4, 2018
be961a9
Update tensorflow.md
gksoriginals Aug 4, 2018
f4a2883
Update tensorflow.md
gksoriginals Aug 4, 2018
e08f94f
Create regularisation.md
akshaydevml Aug 10, 2018
9415483
Add regularization notes
akshaydevml Aug 10, 2018
a55b058
Add image files for regularisation
akshaydevml Aug 10, 2018
90a1043
Update regularisation.md
akshaydevml Aug 10, 2018
743ce86
Update regularisation.md
akshaydevml Aug 10, 2018
1e98b21
added validation set and dropout
akshaydevml Aug 10, 2018
5fabd3e
Merge pull request #1 from akshaydevml/master
gksoriginals Aug 10, 2018
8241e85
Create pytorch.md
gksoriginals Aug 10, 2018
8d3d748
Update pytorch.md
gksoriginals Aug 10, 2018
f1b66fe
Update pytorch.md
gksoriginals Aug 10, 2018
08b02e9
Update pytorch.md
gksoriginals Aug 10, 2018
133de26
Add files via upload
gksoriginals Aug 12, 2018
d450662
Merge pull request #1 from GopikrishnanSasikumar/master
akshaydevml Aug 30, 2018
65723c9
Create NeuralNetworks.md
akshaydevml Aug 30, 2018
0c44e05
Add files via upload
akshaydevml Aug 30, 2018
7e065b9
Delete Neural Network.PNG
akshaydevml Aug 30, 2018
3e51089
Add files via upload
akshaydevml Aug 30, 2018
df07fc2
Update NeuralNetworks.md
akshaydevml Aug 30, 2018
2912ca1
Update NeuralNetworks.md
akshaydevml Aug 30, 2018
c8b64ea
Update NeuralNetworks.md
akshaydevml Aug 31, 2018
91d330a
Update NeuralNetworks.md
akshaydevml Aug 31, 2018
c4e8596
Update NeuralNetworks.md
akshaydevml Aug 31, 2018
c3271de
Merge pull request #2 from akshaydevml/master
gksoriginals Sep 7, 2018
89bc8ce
Create python_for_ML.md
gksoriginals Nov 17, 2018
69b2cda
Add files via upload
gksoriginals Nov 17, 2018
c43659f
Update python_for_ML.md
gksoriginals Nov 17, 2018
2f61b4a
Update python_for_ML.md
gksoriginals Nov 17, 2018
8301697
Update python_for_ML.md
gksoriginals Nov 17, 2018
4e5ad5b
Update python_for_ML.md
gksoriginals Nov 17, 2018
958d86b
Add files via upload
gksoriginals Nov 27, 2018
51d7eed
Update tf_and.ipynb
gksoriginals Nov 27, 2018
ce92946
Update pytorch_and.ipynb
gksoriginals Nov 27, 2018
bcc70e9
Delete pytorch_and.ipynb
gksoriginals Nov 27, 2018
b07f321
Add files via upload
gksoriginals Nov 27, 2018
433ac05
Update tf_and.ipynb
gksoriginals Nov 27, 2018
a875bcb
Delete tf_and.ipynb
gksoriginals Nov 27, 2018
8d1d975
Add files via upload
gksoriginals Nov 27, 2018
5e2bd98
Delete tf_and.ipynb
gksoriginals Nov 27, 2018
5cc9a0a
Add files via upload
gksoriginals Nov 27, 2018
25f0acb
Add files via upload
gksoriginals Feb 22, 2019
298ea00
Add files via upload
gksoriginals Mar 28, 2019
24a3079
Delete card.png
gksoriginals Mar 28, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 1*HvoLc50Dpq1ESKuejhICHg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FP_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added IMG-20180812-WA0001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions NeuralNetworks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Neural Networks

- Last class we discussed Supervised Learning,where we fed data to the model and got predictions
- In Supervised Learning,we used a specific algorithm,to process the data
- In the domain of deep learning,we primarily use Neural Network
- In,Neural Networks,we define a task and the network tries to "learn",the function,on it's own
- A neural network is comprised of many "layers"
- There are three types of layers,input,output and hidden
- The hidden layers are layers,which come in between the input and output
- They are called,"hidden',because,what goes in them,is unknown to us,and we have no role in setting their state
- The dimensionality of these hidden layers represent,the "width" of the model
- Each layer in the Neural Network,consists of "nodes" or also called "units"
- Nodes are linked to each other by a "transition matrix"
- A "transition matrix,is a matrix of weights,controlling the functions,mapping from layer j to layer j+1
- Each unit has it's own activation function

<p>
<img src="Neural_Network.PNG" height="200" width="400" alt="Neural Netwrok"/>
</p>

- Now to compute the cost function,we use a technique called,forward propagation
- We multiply all the nodes with their transition matrices and feed it as input to the node of the next layer
- After getting the value for each node,we apply the activation function,on it
- This keeps propagating forward through the layers untl it reaches the output layer
- At the output layer,the neural network learns a function,called the hypothesis function,which is used to determine the output
- What makes Neural Networks different from other methods of Machine Learning is that,we cannot determine which "features" the model learns
- We can only change the task and hyperparameters,keep iterating to get the best result


<p>
<img src="FP_1.png" height="200" width="400" alt="Forward Propagation" />
</p>

## Backpropagation
- Now that we have computed the cost function,we need an algorithm to minimise it
- Our old friend Gradient Descent will not work here,we need a new algorithm
- We need a new algorithm,this is where,Backpropagation comes in,it works similar to gradient descent by minimising the cost function
- As the name suggests,backpropagation works in reverse compared to forward propagation
- The intution behind Backpropagation is to calculate the error of node "j",in layer "l"
- So we are going to capture the error of activation of each node
- We assign each error ,for each node to a new variable and then calculate the gradient with respect to the cost function
- After minimising the cost function,we update it

Binary file added Neural_Network.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added iammlengineer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logloss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading