Skip to content

Instantly share code, notes, and snippets.

View luisfredgs's full-sized avatar
🎯
Focusing

Luís Gonçalves, PhD. luisfredgs

🎯
Focusing
View GitHub Profile
@luisfredgs
luisfredgs / R_plot_sigmoid.R
Last active May 23, 2020 17:04
Plot sigmoid using R
library(ggplot2)
library(dplyr)
sigmoid = function(x) {
1 / (1 + exp(-x))
}
###
vals <- tibble(x = seq(-10, 10, 1),
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
codigo_uf uf nome latitude longitude
11 RO Rondônia -10.83 -63.34
12 AC Acre -8.77 -70.55
13 AM Amazonas -3.47 -65.1
14 RR Roraima 1.99 -61.33
15 PA Pará -3.79 -52.48
16 AP Amapá 1.41 -51.77
17 TO Tocantins -9.46 -48.26
21 MA Maranhão -5.42 -45.44
22 PI Piauí -6.6 -42.28