This release marks {nadir}'s readiness to submit to rOpenSci for peer review,
and incorporates everything described under 0.0.2 below (which was a development
version and was never released to CRAN).
glmnet, ranger, xgboost, lightgbm,
dbarts, e1071, earth, gbm, hal9001, kernlab, kknn, lme4,
mgcv, nnet, randomForest, rpart, VGAM, and others) have been moved
from Imports to Suggests, in order to reduce {nadir}'s
installation footprint. Users only need to install the backends for the
learners they actually use. A new internal require_backend() check is
called throughout, so attempting to use a learner whose backend is not
installed produces an informative error naming the package to install.{SuperLearner} or
{sl3}, which supersedes and replaces the previous comparison article.pkgcheck::pkgcheck() compatibility in preparation for rOpenSci
submission.crossfit_super_learner() is a newly available method for cross-fitting
super learners; cv_super_learner() has been reworked to use
crossfit_super_learner() internally.super_learner() output gains $oof_predictions() and
$oof_predict_modified() for accessing and working with out-of-fold
predictions, alongside $oof_predict() and $oof_predict_fold().train_on_whole_dataset argument to super_learner() (default TRUE)
allows users to skip refitting learners on the full dataset after
cross-validation.add_stratification() added for stratified learner construction.truncate_lnr() added for bounding a learner's predictions between
user-specified minimum and maximum values.as_multi_predictor().as.formula().$fit_learners).$predict() on super learned models improved, including support for
newdata that omits the outcome column.lnr_lightgbm() (LightGBM)lnr_bart() (Bayesian Additive Regression Trees), with careful handling of
prediction closures when categorical variables are presentlnr_knn() and lnr_knn_binary() (k-nearest neighbors)lnr_svm() and lnr_svm_binary() (support vector machines)lnr_cvglmnet() (cross-validated glmnet)nadir_sl_model and nadir_crossfit_sl objects gain print(), plot(),
summary(), coef(), nobs(), formula(), fitted(), and residuals()
methods.plot() method added for nadir_cv_sl objects.fitted() and residuals() are returned in the row-order of the input data
via an internal .sl_rowid, with tests ensuring correctness on
out-of-order and shuffled inputs.obs_weights bug in weight determination.lnr_glmnet() (and lnr_glmnet_grid()) now work even when some factor
levels contain zero observations; rare-factor handling also added to
lnr_hal() and lnr_hal_grid().lnr_gbm() when a weights = NULL argument was passed.lnr_xgboost() and lnr_lightgbm(); updated lnr_xgboost()
so binary learners work again.n_folds handling in cv_super_learner().cv_origami_schema() now errors informatively on non-discrete
cluster_ids / strata_ids.sl3) to avoid
-log(0) = Inf.determine_weights_*().match.arg() is now used on all categorical arguments.super_learner() from the comparison plot shown by
plot.nadir_sl_model() to avoid overstating performance.::: usage flagged by CRAN, and shorter
examples to respect CRAN's runtime limits.srrstats standards tags throughout the package in preparation for
rOpenSci submission.pkgcheck::pkgcheck(); removed unused code and improved
docs in response.lintr configuration and resolved lints (&&/|| in if,
seq_len()/seq_along(), removal of commented-out and unused code,
line-width limits); lintr also caught a never-called validation function,
which is now wired in.styler::style_pkg() across the package.