Skip to content

Instantly share code, notes, and snippets.

View mkiang's full-sized avatar

Mathew Kiang mkiang

View GitHub Profile
@robjhyndman
robjhyndman / tscv.R
Created December 7, 2016 08:30
Time series cross-validation diagrams
par(mar=c(0,0,0,0))
plot(0,0,xlim=c(0,28),ylim=c(0,1),
xaxt="n",yaxt="n",bty="n",xlab="",ylab="",type="n")
i <- 1
for(j in 1:20)
{
test <- (6+j):26
train <- 1:(5+j)
arrows(0,1-j/20,27,1-j/20,0.05)
points(train,rep(1-j/20,length(train)),pch=19,col="blue")
@dannguyen
dannguyen / Notes-on-stop-and-frisk-data.md
Last active November 22, 2016 06:55
A shell script to clean up the NYPD stop and frisk data (2003 to 2013) and upload it to BigQuery,