brulee 1.1.0
-
brulee_tab_icl()makes the open-source foundational model TabICL available. On first use, there is a substantial download (~ 400MB) for the model weights that is cached locally. -
brulee_saint()andbrulee_auto_int()now support gradient clipping via thegrad_value_clipandgrad_norm_cliparguments (both default to5), matchingbrulee_mlp()andbrulee_resnet(). This prevents the loss from overflowing toNaNduring training with aggressive learning rates. -
There is now a
typeargument topredict.brulee_chronos():"all"returns.predand.pred_quantile(unchanged default),"numeric"returns only.pred,"quantile"returns only.pred_quantile. The id column is still prepended for multi-series models regardless of type. -
Fixed a bug where torch's L-BFGS optimizers internal convergence flag is NA, throwing an unhelpful error.
Breaking Changes
-
The
brulee_saint()argumentuse_target_tokenwas renamed totarget_token. -
predict()forbrulee_chronos()models was reworked. The historical context is always the data supplied tobrulee_chronos()(the model is pretrained and does no training), so the formernew_datacontext-override was removed. The argument previously calledfuture_dfis nownew_data: it describes the future window to forecast for and may have at mostprediction_lengthrows per series (previously exactlyprediction_length). When fewer rows are supplied, the forecast is truncated to those rows.predict()also gained atypeargument ("all","numeric", or"quantile") to select which prediction columns are returned. -
All estimated models now include epoch zero (the randomly initialized parameters, before any training) as the first element of
lossandestimates, matching the neural-network models. These vectors are now lengthepochs + 1,epoch = 0is a valid argument topredict()andcoef(), and the entry forbest_epochis at positionbest_epoch + 1. Predictions and coefficients for a given (positive) epoch are unchanged. Note: objects serialized by earlier versions of these three functions predict off by one epoch under the new indexing, so refit any stored models.- The
print()methods now report the loss from the best epoch. Previously the displayed loss was taken one epoch too early (it ignored the prepended epoch-zero entry inloss).
- The