r/neuralnetworks • • Aug 23 '17

Easy configurable neural network Java package. Very basic code so everyone can understand whats happening + examples and documentation. (Updates coming)

https://github.com/sebig3000/MachineLearning
11 Upvotes

5 comments sorted by

3

u/SamSlate Aug 23 '17

very cool!

pardon my nn noobish-ness:

        double gradient = (cost1 - cost2) / (2 * epsilon);
        weights[j][i] += - gradient * learningRate;

is this the standard implementation of gradient descent?

2

u/sebig3000 Aug 23 '17 edited Aug 23 '17

Gradient is just a crude calculation of the cost gradient respective to the current weight. Wikipedia: Numerical gradient calculation

Then the gradient multiplied with an learning rate changes the weight to decrease the cost (steeper gradient = further away of cost minimum -> bigger weight change) Wikipedia: Backpropagation (I am currently working to implement the symbolic calculation of the derivative)

Edit: English is difficult.

3

u/SamSlate Aug 23 '17

I am currently working to implement the symbolic calculation of the derivative

I would very much like to see this when you do! These functions are much easier to read in code than mathematical notation, imo. thanks for sharing.

3

u/sebig3000 Aug 23 '17

Here is a great explanation (and also my inspiration for starting this project) Welch Labs: Neural Networks Demystified

3

u/HelperBot_ Aug 23 '17

Non-Mobile link: https://en.wikipedia.org/wiki/Numerical_differentiation


HelperBot v1.1 /r/HelperBot_ I am a bot. Please message /u/swim1929 with any feedback and/or hate. Counter: 104532