Skip to content

Instantly share code, notes, and snippets.

View jclopeztavera's full-sized avatar
🎯
Focusing

Juan Carlos López Tavera jclopeztavera

🎯
Focusing
View GitHub Profile
@jclopeztavera
jclopeztavera / mapeando_sismo.R
Last active May 25, 2020 19:29
Mexico's 2019 earthquake data processing and mapping
## Cargando los paquetes necesarios para el análisis
if (!require(tidyverse)) {
install.packages(tidyverse)
}
library(tidyverse)
if (!require(googledrive)) {
install.packages("googledrive")
}
library(googledrive)
@karpathy
karpathy / nes.py
Last active June 28, 2024 12:59
Natural Evolution Strategies (NES) toy example that optimizes a quadratic function
"""
A bare bones examples of optimizing a black-box function (f) using
Natural Evolution Strategies (NES), where the parameter distribution is a
gaussian of fixed standard deviation.
"""
import numpy as np
np.random.seed(0)
# the function we want to optimize