-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
206 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.. _activation_functions: | ||
|
||
==================== | ||
Activation functions | ||
==================== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:titlesonly: | ||
|
||
ELU | ||
=== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
LeakyReLU | ||
========= | ||
|
||
Be the first to contribute! | ||
|
||
|
||
ReLU | ||
======== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Sigmoid | ||
======= | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Softmax | ||
======= | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Tanh | ||
==== | ||
|
||
Be the first to contribute! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.. _loss_functions: | ||
|
||
============== | ||
Loss functions | ||
============== | ||
|
||
|
||
Cross-Entropy Loss | ||
================== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Hinge Loss | ||
========== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Kullback-Leibler divergence | ||
=========================== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
L1 Loss | ||
======= | ||
|
||
Be the first to contribute! | ||
|
||
|
||
L2 Loss | ||
======= | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Maximum Likelihood | ||
================== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Mean Squared Error | ||
================== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
|
||
|
||
**References** | ||
|
||
* http://rishy.github.io/ml/2015/07/28/l1-vs-l2-loss/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,18 @@ | ||
.. _nn: | ||
|
||
=============================== | ||
=============== | ||
Neural networks | ||
=============================== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
Basic neural network concepts | ||
|
||
Basics | ||
====== | ||
|
||
Be the first to contribute! | ||
|
||
Forward propagation | ||
=================== | ||
|
||
.. literalinclude:: ../code/nn.py | ||
:language: python | ||
:pyobject: MyClass | ||
|
||
Backpropagation | ||
=============== | ||
|
||
Be the first to contribute! | ||
|
||
Activation Functions | ||
==================== | ||
|
||
Be the first to contribute! | ||
|
||
Loss Functions | ||
============== | ||
|
||
Be the first to contribute! | ||
Neural networks are a class of machine learning algorithms used to model complex patterns in datasets using multiple hidden layers and non-linear activation functions. A neural network takes an input, passes it through multiple layers of hidden neurons (mini-functions with unique coefficients that must be learned), and outputs a prediction representing the combined input of all the neurons. Neural networks are trained iteratively using optimization techniques like gradient descent. After each cycle of training, an error metric is calculated based on the difference between prediction and target. The derivatives of this error metric are calculated and propagated back through the network using a technique called backpropagation. Each neuron's coefficients (weights) are then adjusted relative to how much they contributed to the total error. This process is repeated iteratively until the network error drops below an acceptable threshold. | ||
|
||
Optimizers | ||
========== | ||
** Topics ** | ||
|
||
Be the first to contribute! | ||
|
||
Layers | ||
====== | ||
|
||
Be the first to contribute! | ||
.. toctree:: | ||
:maxdepth: 1 | ||
:titlesonly: | ||
|
||
nn_concepts | ||
activation_functions | ||
loss_functions | ||
optimizers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.. _nn_concepts: | ||
|
||
============== | ||
Basic concepts | ||
============== | ||
|
||
Basic concepts in neural networks | ||
|
||
Neurons | ||
======= | ||
|
||
Intro to neurons | ||
|
||
|
||
Hidden Layers | ||
============= | ||
|
||
Explanation of how layers work | ||
|
||
|
||
Forwardpropagation | ||
================== | ||
|
||
Intro to forwardpropagation | ||
|
||
|
||
Backpropagation | ||
=============== | ||
|
||
Intro to Backpropagation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. _optimizers: | ||
|
||
========== | ||
Optimizers | ||
========== | ||
|
||
|
||
Adadelta | ||
======== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Adagrad | ||
======== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Adam | ||
==== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
L-BFGS | ||
====== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
Momentum | ||
======== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
RMSProp | ||
======= | ||
|
||
Be the first to contribute! | ||
|
||
|
||
SGD | ||
=== | ||
|
||
Be the first to contribute! | ||
|
||
|
||
**References** | ||
|
||
* http://sebastianruder.com/optimizing-gradient-descent/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters