mlr3forecast 0.2.0
CRAN release: 2026-08-24
- BREAKING CHANGE: Key columns are no longer features by default. Restore the feature role explicitly when needed.
- BREAKING CHANGE:
po("fcstavg")was renamed topo("fcst.avg")to match the id prefix of the other PipeOps. - feat:
DirectForecastergained$importance(),$selected_features(), and$oob_error()methods returning one result per horizon model, named like$native_model. - feat: New learner
fcst.arwrappingstats::ar(), fitting autoregressive models by Yule-Walker, Burg, OLS, or maximum likelihood with optional AIC order selection. - feat:
fcst.meangained thebootstrapandnpathsparameters for empirical quantiles resampled from the residuals. - feat: New learner
fcst.sparmawrappingsmooth::sparma(), fitting sparse ARMA models whoseordersmap to specific lags instead of expanding polynomials. - feat:
forecast()now validatesnewdataas a data frame with unique column names. - feat:
partition()now validatesratiobefore partitioning aTaskFcst. - feat:
mlr3::set_threads()support: thenum.coresparameter offcst.arfima,fcst.auto_arima,fcst.nnetar,fcst.bats, andfcst.tbatsnow carries the"threads"tag, and settingnum.coresto a value greater than one enables the corresponding parallel switch at train time. - fix:
fcst.nnetarnow declaresnnetin its packages so parallel training findspredict.nneton the main process. - feat:
pipeline_fcst_local()now accepts any object supported byas_graph()and validateskey. - feat:
PredictionFcstnow stores explicit roles for extra columns in$col_roles, replacing type-based detection (#52). - feat:
RecursiveForecasternow supports validation and internal tuning (configure withset_validate()) and delegates$importance(),$selected_features(), and$oob_error()to the wrapped graph. - feat:
TaskFcstnow accepts character or integer keys, while tsibble, tsf, and tsbox converters preserve their types. - fix: Numeric
freqvalues now represent the seasonal period, while the grid step is inferred from the order column. - fix: Both forecasters no longer advertise learner properties they cannot honour, fixing failures when tuning with
AutoTuner. This drops the hotstart properties for both and additionally validation, internal tuning, importance, selected features, and OOB error forDirectForecaster. - fix:
default_measures("fcst")now returnsregr.mse, so forecast resampling and benchmark results can be aggregated without an explicit measure. - fix:
DirectForecasternow rejects empty or duplicatehorizonsvalues. - fix:
fcst.arima,fcst.auto_adam,fcst.ets,fcst.gum,fcst.rlgt, andfcst.stlmparameter definitions now match the wrapped functions’ defaults, ranges, and dependencies. - fix:
fcst.mase,fcst.msis, andfcst.rmssenow inferperiodfromtask$frequnless it is set. - fix:
fcst.nnetarnow supports quantile predictions and usesbootstrap,npaths, andinnovwhen simulating their prediction intervals. - fix:
fcst.prophetnow supports logistic growth through a requiredcaptask feature and an optionalfloortask feature. - fix:
fcst.smanow fits the complete training task and no longer exposes the incompatibleholdoutparameter. - fix:
fcst.tslmnow omitsseasonfrom its generated default formula for nonseasonal tasks. - fix:
PipeOpFcstAvgnow declares its required packages and the"fcst"tag instead of dropping them. - fix:
rsmp("fcst.holdout", n = 0)now puts no observations into the training set instead of all of them.
