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
6 changes: 3 additions & 3 deletions src/convnet_layers_nonlinearities.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}
}

// Implements Sigmoid nnonlinearity elementwise
// Implements Sigmoid nonlinearity elementwise
// x -> 1/(1+e^(-x))
// so the output is between 0 and 1.
var SigmoidLayer = function(opt) {
Expand Down Expand Up @@ -109,7 +109,7 @@
}
}

// Implements Maxout nnonlinearity that computes
// Implements Maxout nonlinearity that computes
// x -> max(x)
// where x is a vector of size group_size. Ideally of course,
// the input size should be exactly divisible by group_size
Expand Down Expand Up @@ -230,7 +230,7 @@
var y = Math.exp(2 * x);
return (y - 1) / (y + 1);
}
// Implements Tanh nnonlinearity elementwise
// Implements Tanh nonlinearity elementwise
// x -> tanh(x)
// so the output is between -1 and 1.
var TanhLayer = function(opt) {
Expand Down