Skip to content

Commit

Permalink
Added second column to toy data in first 'glmnet' example from Chapte…
Browse files Browse the repository at this point in the history
…r 6 to satisfy new glmnet requirements. Results identical to original. All code from all chapters, except 9, now run error free.
  • Loading branch information
Ubuntu authored and Ubuntu committed Dec 13, 2013
1 parent 851ed4c commit 4aa136e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 49,001 deletions.
Binary file modified 05-Regression/images/log_page_views_vs_log_visitors_with_lm.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion 06-Regularization/chapter06.R
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ x <- seq(0, 1, by = 0.01)
y <- sin(2 * pi * x) + rnorm(length(x), 0, 0.1)

# Twentieth code snippet
x <- matrix(x)
x <- as.matrix(cbind(x,rev(x)))

library('glmnet')

Expand Down
Loading

0 comments on commit 4aa136e

Please sign in to comment.