mirror of
https://github.com/ArthurDanjou/ArtStudies.git
synced 2026-02-14 10:07:38 +01:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -229,7 +229,7 @@ dfc_test %>%
|
|||||||
```{r}
|
```{r}
|
||||||
set.seed(602)
|
set.seed(602)
|
||||||
# grid_Lasso <- seq(0.001, 0.1, length = 100)
|
# grid_Lasso <- seq(0.001, 0.1, length = 100)
|
||||||
grid_Lasso <- 10^seq(0, 0.1, length = 100)
|
grid_Lasso <- 10^seq(-4, 1, length = 100)
|
||||||
Lasso <- train(sugars ~ ., cookie.train,
|
Lasso <- train(sugars ~ ., cookie.train,
|
||||||
method = "glmnet",
|
method = "glmnet",
|
||||||
tuneGrid = expand.grid(alpha = 1, lambda = grid_Lasso),
|
tuneGrid = expand.grid(alpha = 1, lambda = grid_Lasso),
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user