Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.