brulee
1.2.0High-Level Modeling Functions with 'torch'
Overview
Provides high-level modeling functions to define and train models using the 'torch' R package. Models include linear, logistic, and multinomial regression as well as multilayer perceptrons.
predict()for regressionbrulee_tab_icl()models gained two newtypevalues."quantile"returns a.pred_quantilecolumn (ahardhat::quantile_pred()vector) at the levels given by the new predict-timequantile_levelsargument, which defaults to(1:9) / 10."variance"returns the variance of the predictive distribution in a.pred_variancecolumn. The TabICL regression head was already a quantile regression head internally, so this exposes a distribution the model was always computing;type = "numeric"is unchanged and remains the default. Unlikebrulee_chronos(), the levels are not fixed when the model is created and any value in the open interval (0, 1) can be requested. See?predict.brulee_tab_iclfor how ensemble members are pooled for each type.- Added
augment()methods for all brulee model fits. - For regression models,
.predand.residare added. For the latter, it is computed when the outcome is present in the data. See the exceptions below for foundational models. - For classification, the hard class predictions and class probability estimates are added.
- For
brulee_chronos()models, the forecast columns are aligned to the rows ofnew_datarather than to the internal per-series prediction order. - For
brulee_tab_icl()regression models, quantile regression estimates and the prediction variance can be obtained by setting thequantile_levelsargument to a non-null value..residis then measured against the median of the predictive distribution. - The error thrown when
predict()is given an unsupportedtypeis now attributed topredict()rather than to brulee's internal helper. predict()now clamps anepochlarger than the number of epochs actually fit, which is what its documentation and its warning have always promised. Previously it warned and then failed with asubscript out of boundserror, and anepochexactly equal tolength(fit$estimates)failed with no warning at all. Because early stopping makes the number of epochs fit vary by platform, a fixedepochcould work on one machine and fail on another.coef()was already correct and now shares the same check (#138).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 31 (2 internal)includes a package overview page
- Examples that run
- 19%5 run in a plain check (5 of them under a condition) · 20 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run
- Exported functions with examples
- 87%
- Documented parameters
- 94%
- Return-value docs
- 93%
- Help pages citing references
- 23%
Downloads
Repository
- PRs merged (all time)
- 94%
- Median days to close, 50 most recently updated closed issues
- 14
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
12 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/tidymodels/brulee on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-08 · The repository has a site deploy workflow
pkgdown site last built 2026-09-02
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-04-20Seen in the repository: .claudeNamed in .Rbuildignore: .claudePull request it wrote: opened by a project memberCommits: at least 5 crediting it in the message
- Claude Sonnet 4.54 commits · Apr 2026
- Claude Opus 51 commit · Sep 2026
Dependencies
Installing brulee adds 41 packages (22 with compiled code, 24 MB of source tarballs). Heaviest: ggplot2 6.0 MB, torch 1.9 MB, Rcpp 1.8 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.2.0Latest
- 1.1.12026-07-13 · diff ↗
- 1.1.02026-06-17 · diff ↗ ·
added 3 exports
brulee_tab_icl, tab_icl_download_weights, tab_icl_weights_available - 1.0.02026-06-17 · diff ↗ ·
added 5 exports
brulee_auto_int, brulee_chronos, brulee_resnet, brulee_rln, brulee_saint - RR 4.6.0 released · 2026-04-24
- 0.6.0
- RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2025-04-07
- 0.5.02025-04-07 · diff ↗
- archivedRemoved from CRAN2025-04-02issues were not corrected in time
- 0.4.0
- RR 4.4.0 released · 2024-04-24
- 0.3.0
- RR 4.3.0 released · 2023-04-21
- 0.2.02022-09-20 · diff ↗ ·
added 5 exports
schedule_cyclic, schedule_decay_expo, schedule_decay_time, schedule_step, set_learn_rate - RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2021-12-15
- Total releases
- 11 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 2.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("brulee")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-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.