1
0
Fork 0

Compute the sigmoid function

This commit is contained in:
neingeist 2014-10-13 23:14:44 +02:00
parent d52fa95328
commit efe94282b4

View file

@ -9,7 +9,7 @@ g = zeros(size(z));
% Instructions: Compute the sigmoid of each value of z (z can be a matrix,
% vector or scalar).
g = 1 ./ (1 + exp(-z));