August 2017
Intermediate to advanced
288 pages
8h 6m
English
Let's take a look at linear regression in supervised learning:
data <- data.frame("height" = c(131, 154, 120, 166, 108, 115,158, 144, 131, 112), "weight" = c(54, 70, 47, 79, 36, 48, 65,63, 54, 40))
lm_model <- lm(weight ~ height, data)
plot(data, col = "red", main = "Relationship between height andweight",cex = 1.7, pch = 1, xlab = "Height ...