Skip to content

Commit

Permalink
Small code fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed May 1, 2024
1 parent aaa4ea8 commit 60c3c50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slides/code/ml_demo.r
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ plot(cv, xlim = c(-4,4), mgp = 2:0)
with(reg_cv, polygon(x = c(-10, 10, 10, -10, -10),
y = c(cvup[1], cvup[1], cvlo[1], cvlo[1], cvup[1]),
border = NA, col = rgb(0, 0, 0, .25)))
abline(h = reg_CV$cvm[1], lty = 2, lwd = 2)

abline(h = reg_cv$cvm[1], lty = 2, lwd = 2)

legend("topleft", lty = 2, lwd = 2,
legend = "Ordinary regression MSE", bty = "n")

Expand Down

0 comments on commit 60c3c50

Please sign in to comment.