Last active
March 30, 2019 04:14
-
-
Save mihikadutta/da5f5e7f6fb538d80bf17c7361e514c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| for (let i = 0; i < 50000; i++) { | |
| ... | |
| ... | |
| const weightedSum = getWeightedInputSum(weights, input, bias); | |
| const weightedSumWRTweight0 = input[0]; | |
| const weightedSumWRTweight1 = input[1]; | |
| const weightedSumWRTbias = 1; | |
| const prediction = compose( | |
| sigmoid, | |
| identity | |
| )(weightedSum); | |
| const predictionWRTweightedSum = prediction * (1 - prediction); | |
| const error = getError(prediction, target); | |
| const errorWRTprediction = 2 * (prediction - target); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment