brulee
High-Level Modeling Functions with torch. Contribute to tidymodels/brulee development by creating an account on GitHub.
tidymodels' torch backend grew from MLPs into a tabular deep learning suite with foundation models.
◆Recent moves
- 1mo ago
Model weights no longer download on package attach
brulee_tab_icl() and brulee_chronos() stop pulling pretrained weights automatically when the package loads, prompting in interactive sessions and erroring otherwise, with tab_icl_download_weights() for explicit fetches. Caching moves to tools::R_user_dir(). Also fixes brulee_resnet() returning all-NA predictions when a trailing single-row batch made batch normalization compute variance over one sample.
View source ↗ - 1mo ago
TabICL foundation model added, gradient clipping extended
Adds brulee_tab_icl() for the open-source TabICL foundational model, extending the foundation-model surface 1.0.0 opened with Chronos2. Gradient clipping reaches brulee_saint() and brulee_auto_int(), matching the MLP and ResNet defaults, and predict.brulee_chronos() gains a type argument to return point predictions, quantiles, or both.
View source ↗ - 1mo ago
Five new architectures and GPU support arrive at 1.0.0
⚡ SPARKThe release that changes what brulee is: Regularization Learning Networks, ResNet, AutoInt, SAINT, and the Chronos2 forecasting foundation model, plus GPU acceleration across every modeling function. A torch wrapper for MLPs becomes a catalog of contemporary tabular architectures in one version.
View source ↗ - 11mo ago
64-bit tensors and new optimizers to stop loss overflow
A concerted attack on numerical overflow: tensors move to 64-bit floats, starting values switch to a narrower Gaussian, initial results are retained as a fallback when the first epoch overflows, and brulee_mlp() gains gradient clipping parameters. Adds ADAMw, Adadelta, Adagrad, and RMSprop optimizers, with the mixture parameter restricted for those requiring L2 penalties.
View source ↗ - 1y ago
Numerical overflow unit test removed
Drops a unit test for numerical overflow that had become hard to reproduce as the condition grew rarer. Indirect evidence that the 0.6.0 stability work held.
View source ↗ - 1y ago
brulee_mlp_two_layer() convenience wrapper for parsnip
Adds brulee_mlp_two_layer() so two-layer networks are straightforward to fit through parsnip, alongside error and warning message cleanup and a fix for linear activation. Small, and typical of the pre-1.0.0 period when the package was still a single-architecture wrapper.
View source ↗