powered by
Sigmoid function
sigmoid(x)
Returns a numeric vector of the transformed values.
numeric vector
x <- seq(from=-3,to=3,length.out=100) y <- sigmoid(x) graphics::plot(x=x,y=y,type="l") graphics::abline(v=0,lty=2) graphics::abline(h=0.5,lty=2)
Run the code above in your browser using DataLab