Created
August 19, 2013 15:18
-
-
Save drewconway/6270306 to your computer and use it in GitHub Desktop.
Template for deploying draft predictions for Yhat Fantasy Football Challenge using R
This file contains 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 characters
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