Created
March 11, 2020 07:26
-
-
Save MattSkiff/70bdcad471e92061c39237619157e6e8 to your computer and use it in GitHub Desktop.
Revisions
-
MattSkiff created this gist
Mar 11, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # author: matthew skiffington # purpose: make sigmoid simple viz to go in dissertation sigmoid.func <- function(x) { sapply( FUN = function(x) { x = (exp(x)/(1+exp(x))) }, X = x, simplify = T ) } x.vec <- seq(-60000,60000)/10000 y.vec <- sigmoid.func(x.vec) plot(type = 'l',x=x.vec,y=y.vec,xlab = "x",ylab = "y",main = "The Sigmoid Activation Function",ylim = c(0,1),xlim = c(-6,6))