Compute the sigmoid function
This commit is contained in:
parent
d52fa95328
commit
efe94282b4
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
||||
|
||||
|
|
Reference in a new issue