-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in installing the package "tlverse" #34
Comments
This problem can be fixed by just installing the package "imputeMissings" from https://cran.r-project.org/src/contrib/Archive/imputeMissings/. However, I found another problem when testing the code in Chapter 6 "Super Learning". When testing the following code: ----cv-predictions-long------------------------------------------------------CV predictions "by hand"for each fold, i, we obtain validation set predictions:cv_preds_list <- lapply(seq_along(task$folds), function(i){ get validation dataset for fold i:v_data <- task$data[task$folds[[i]]$validation_set, ] get observed outcomes in fold i's validation dataset:v_outcomes <- v_data[["whz"]] make task (for prediction) using fold i's validation dataset as data,and keeping all else the same:v_task <- make_sl3_Task(covariates = task$nodes$covariates, data = v_data) get predicted outcomes for fold i's validation dataset, using candidatestrained to fold i's training datasetv_preds <- sl_fit$fit_object$cv_fit$predict_fold( note: v_preds is a matrix of candidate learner predictions, where thenumber of rows is the number of observations in fold i's validation datasetand the number of columns is the number of candidate learners (excludingany that might have failed)an identical way to get v_preds, which is used when we calculate thecv risk by hand in a later part of this chapter:v_preds <- sl_fit$fit_object$cv_fit$fit_object$fold_fits[[i]]$predict(task = v_task)we will also return the row indices for fold i's validation set, so wecan later reorder the CV predictions and make sure they are equal to whatwe obtained abovereturn(list("v_preds" = v_preds, "v_index" = task$folds[[i]]$validation_set)) Another error arose: I supposed it dues to some packages or functions used to develop "sl3" have been changed. |
When I tried to install the package "tlverse" following the guide in handbook, I met the following error:
I find the core problem is that the package "imputeMissings" is removed from cran! As a result, package "sl3" which relies on it can not be installed.
The text was updated successfully, but these errors were encountered: