Skip to content
Open
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions nntutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ var x = Math.max(a, 0)
var da = a > 0 ? 1.0 * dx : 0.0;
```

In other words this gate simply passes the value through if it's larger than 0, or it stops the flow and sets it to zero. In the backward pass, the gate will pass on the gradient from the top if it was activated during the forawrd pass, or if the original input was below zero, it will stop the gradient flow.
In other words this gate simply passes the value through if it's larger than 0, or it stops the flow and sets it to zero. In the backward pass, the gate will pass on the gradient from the top if it was activated during the forward pass, or if the original input was below zero, it will stop the gradient flow.

I will stop at this point. I hope you got some intuition about how you can compute entire expressions (which are made up of many gates along the way) and how you can compute backprop for every one of them.

Expand Down Expand Up @@ -936,7 +936,7 @@ for(var iter = 0; iter < 400; iter++) {
var label = labels[i];
svm.learnFrom(x, y, label);

if(iter % 25 == 0) { // every 10 iterations...
if(iter % 25 == 0) { // every 25 iterations...
console.log('training accuracy at iter ' + iter + ': ' + evalTrainingAccuracy());
}
}
Expand Down