File:Cvglmnetplot.png

From 太極
Revision as of 16:40, 11 October 2022 by Brb (talk | contribs)
Jump to navigation Jump to search

Original file(1,000 × 400 pixels, file size: 34 KB, MIME type: image/png)

Summary

n <- 100
set.seed(1)
x1 <- rnorm(n)
e <- rnorm(n)*.01
y <- x1 + e

x4 <- x1
fit <- cv.glmnet(x=cbind(x1, x4, matrix(rnorm(n*10), nr=n)), y=y)
plot (fit)

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:39, 11 October 2022Thumbnail for version as of 16:39, 11 October 20221,000 × 400 (34 KB)Brb (talk | contribs)<pre> n <- 100 set.seed(1) x1 <- rnorm(n) e <- rnorm(n)*.01 y <- x1 + e x4 <- x fit <- cv.glmnet(x=cbind(x1, x4, matrix(rnorm(n*10), nr=n)), y=y) plot (fit) </pre>

The following page uses this file: