Skip to content

Instantly share code, notes, and snippets.

@drewconway
Created August 19, 2013 15:18
Show Gist options
  • Save drewconway/6270306 to your computer and use it in GitHub Desktop.
Save drewconway/6270306 to your computer and use it in GitHub Desktop.
Template for deploying draft predictions for Yhat Fantasy Football Challenge using R
library(yhatr)
model.require <- function() {
library(plyr)
}
model.transform <- function(df) {
df
}
model.predict <- function(df) {
data.frame(
"draft_sequence"=draft.sequence
)
}
yhat.config <- c(
username="drew",
apikey="my.api.key"
)
# image is too big :(
ls()
if ("draft.join" %in% ls()) {
rm("draft.join")
}
if ("training.sub" %in% ls()) {
rm("training.sub")
}
yhat.deploy("fantasyFootballDraft")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment