Skip to content

Instantly share code, notes, and snippets.

@gregakespret
Created May 24, 2012 16:37
Show Gist options
  • Save gregakespret/2782618 to your computer and use it in GitHub Desktop.
Save gregakespret/2782618 to your computer and use it in GitHub Desktop.
Stream prediction
#increments model and predicts
for(i in 2:nrow(dataset)) {
predictions[i] <- predict.model(model.name, my.model, dataset[i,])
my.model <- update.model(model.name, Real~., dataset[i,], my.model)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment