Skip to content

Instantly share code, notes, and snippets.

@tobigithub
tobigithub / regression-machine-learning.R
Created October 4, 2015 02:20 — forked from primaryobjects/regression-machine-learning.R
Predicting with Regression in R.
library(caret)
data(faithful)
set.seed(333)
# Plot data.
plot(x=faithful$waiting, faithful$eruptions)
# Calculate linear model.
@tobigithub
tobigithub / demo.R
Last active September 19, 2015 04:05 — forked from zachmayer/demo.R
#Setup
rm(list = ls(all = TRUE))
gc(reset=TRUE)
set.seed(42) #From random.org
#Libraries
library(caret)
library(devtools)
install_github('caretEnsemble', 'zachmayer') #Install zach's caretEnsemble package