Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-10-08 16:04:53 +02:00
parent 3cacb6be8a
commit cdac478b83
2 changed files with 190 additions and 167 deletions

View File

@@ -229,7 +229,7 @@ dfc_test %>%
```{r}
set.seed(602)
# 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,
method = "glmnet",
tuneGrid = expand.grid(alpha = 1, lambda = grid_Lasso),

File diff suppressed because one or more lines are too long