Automatic Stacked Ensemble for Regression Tasks
Overview
Stacked ensembles for regression tasks using the 'mlr3' framework, internal preprocessing and out-of-fold stacking, and hyperparameter tuning using grid or random search. Supports numeric and categorical predictors.
- Replaced all
mlr3pipelinesgraph and PipeOp usage with an internal mlr3 regression learner providing fitted preprocessing, three-fold out-of-fold stacking, optional base-learner selection, and averaging or learned stacking. The package no longer needsmlr3pipelinesto install, load, train or predict. - Removed the
mlr3viz,visNetwork,tictoc,forcats,readr,lubridate,purrrandMetricsdependencies. Mapping, timing, regression metrics, categorical processing and pipeline diagrams now use internal/base R code. R6 is now declared directly for the internal mlr3 learner. - Moved
mlr3filtersto Suggests; correlation and variance are internal. Specialized filters still use their original optional backends, preserving their algorithms. Removed unused direct suggestions ofmlr3miscandnloptr. - Preserved the
sense()arguments and result element names.plotis now asense_pipelineobject, drawn withplot(result$plot), rather than an HTML widget.time_logis a base Rdifftime.java_memis accepted but unused. Stored model internals no longer have the GraphLearner/PipeOp layout.
Show all changes in 1.2.0Hide the rest of the changes in 1.2.0
- Fixed deployment predictions to use a model refitted on all supplied rows, independently of outer evaluation. Fit preprocessing and feature selection inside every stacking fold; perform benchmarking inside each ensemble fit rather than selecting algorithms using the full data before outer evaluation. Benchmark scores are now out-of-fold scores and respect the measure's direction.
- Added handling for unseen categories, constant/all-missing numeric columns, stable prediction schemas, finite input validation and reproducible fitting without changing the caller's random state or Java options.
- Bound nearest-neighbour tuning by the smallest training split, avoid invalid zero SVM nu/eta candidates, and let ranger choose mtry for each encoded schema. Random search is capped by both budget and n_evals; one-candidate batches prevent overshooting the evaluation cap. Time limits are checked between trials.
- Added base R regression and integration tests and a runnable migration vignette describing the architecture, optional dependencies and compatibility changes.
- Converted the migration vignette from PDF/LaTeX (
.Rnw) to a knitr HTML vignette (.Rhtml), so building and checking the package no longer requires a LaTeX installation or Ghostscript.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-12
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 3includes a package overview page
- Examples that run
- 0%1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing sense adds 31 packages (16 with compiled code, 20 MB of source tarballs). Heaviest: data.table 5.7 MB, palmerpenguins 2.9 MB, moocore 1.9 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.2.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.1.02024-06-19 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.0.02021-09-06
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-09-06
- Total releases
- 3 / 5 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 9.0 KB / 1 file
- Download size
- 33 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sense")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.