Files
MachineLearningCoursera/machine-learning-ex3/ex3/sigmoid.m
2015-12-05 16:43:37 +01:00

7 lines
137 B
Matlab

function g = sigmoid(z)
%SIGMOID Compute sigmoid functoon
% J = SIGMOID(z) computes the sigmoid of z.
g = 1.0 ./ (1.0 + exp(-z));
end