Mercurial > hg > machine-learning-hw4
view sigmoid.m @ 9:8dd249e99b5b default tip
Optimisations for backprop
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 11 Nov 2011 20:36:02 -0500 |
parents | 395fc40248c3 |
children |
line wrap: on
line source
function g = sigmoid(z) %SIGMOID Compute sigmoid functoon % J = SIGMOID(z) computes the sigmoid of z. g = 1.0 ./ (1.0 + exp(-z)); end