You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (is.null(config$importance_sample_size) &&train_ds$.length() >1e5) {
626
-
warning(
627
-
gettextf(
628
-
"Computing importances for a dataset with size %s. This can consume too much memory. We are going to use a sample of size 1e5, You can disable this message by using the `importance_sample_size` argument.",
629
-
train_ds$.length()))
626
+
warn("Computing importances for a dataset with size {.val {train_ds$.length()}}.
627
+
This can consume too much memory. We are going to use a sample of size 1e5.
628
+
You can disable this message by using the `importance_sample_size` argument.")
if (is.null(config$importance_sample_size) &&train_ds$.length() >1e5) {
223
-
warning(domain=NA,
224
-
gettextf("Computing importances for a dataset with size %s. This can consume too much memory. We are going to use a sample of size 1e5. You can disable this message by using the `importance_sample_size` argument.", train_ds$.length()),
# check that all embeddings dimensions are provided
627
626
if (length(self$cat_emb_dims) != length(cat_dims)){
628
-
msg= paste0("`cat_emb_dim` length must be 1 or the number of categorical predictors, got length ",length(self$cat_emb_dims)," for ",length(cat_dims)," categorical predictors")
629
-
stop(msg)
627
+
value_error("{.var cat_emb_dim} length must be 1 or the number of categorical predictors,
628
+
got length {.val {length(self$cat_emb_dims)}} for {.val {length(cat_dims)}}
0 commit comments