Created
November 1, 2015 16:22
-
-
Save szilard/0e1f1b66fead4fc146f1 to your computer and use it in GitHub Desktop.
Illustration for overfitting
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(ggplot2) | |
n <- 30 | |
d <- data.frame(x = 1:n, y = runif(n)) | |
ggplot(d, aes(x = x, y = y)) + geom_point() + | |
geom_smooth(se = FALSE, span = 0.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment