Skip to content

Instantly share code, notes, and snippets.

@mtrudelle
mtrudelle / gist:87e1f43d2c2f1c3f2603ab1e05d2b0b8
Created September 6, 2019 12:51
Sigmoid Function using "exp(-y)" does not work
% Why does this Sigmoid function using exp(-y) where y is a [100 1] vector does not work?
octave:70> size(y)
ans =
100 1
octave:71> y=zeros([100,1]);
octave:72> g=1/(1+exp(-y))
g =