R/sigmoid.R

Defines functions d2sigmoid dsigmoid sigmoid

Documented in d2sigmoid dsigmoid sigmoid

sigmoid <- function(x) 1/(1 + exp(-x))

dsigmoid <- function(x) sigmoid(x) * (1 - sigmoid(x))

d2sigmoid <- function(x) dsigmoid(x) * (1 - 2 * sigmoid(x))

Try the e1071 package in your browser

Any scripts or data that you put into this service are public.

e1071 documentation built on May 29, 2024, 10:08 a.m.