Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 4.41 KB

NEWS.md

File metadata and controls

57 lines (47 loc) · 4.41 KB

forecastbaselines 0.2.0

Breaking changes

  • Model wrappers no longer accept arguments they cannot pass on to ForecastBaselines.jl. LSDModel() drops trend_correction, IDSModel() drops threshold and STLModel() drops trend, none of which exists in Julia; KDEModel() drops bandwidth and kernel and STLModel() drops robust, which are estimation settings that fit_baseline() does not expose; ARMAModel() drops include_mean, as the intercept is always estimated; and ETSModel() drops damped, since damping is requested through trend_type = "Ad" or "Md". These arguments were accepted and then discarded, so a model built with them was identical to one built without them (#7).
  • ETSModel(error_type = "M") now returns a multiplicative-error model, and error_type = "N" is rejected: every ETS model has an error term. In 0.1.0 the argument reached a ForecastBaselines.jl constructor that read "N" as multiplicative and every other string as additive, so error_type = "N" — documented there as "none" — gave multiplicative errors while "M" gave additive ones. Code written against 0.1.0 should read "N" as "M", and "M" as "A".
  • setup_ForecastBaselines() drops install_package, which it accepted and then ignored: the package always initialises Julia against the pinned project it ships in inst/julia.
  • LSDModel() defaults window_width to 0, matching ForecastBaselines.jl. The previous default of 1 averaged in the time points either side of each seasonal position, blurring the seasonal profile without saying so.
  • The package now talks to Julia through juliabridge, which replaces juliaready. Model, interval method, transformation and TemporalInfo() constructors return a description of the Julia call, built in Julia only when it is used, so they no longer start Julia. Printing one shows the Julia code it stands for, and $kwargs holds its arguments under their ForecastBaselines.jl names, as in LSDModel(s = 12)$kwargs$w. as_julia_object() builds the Julia object for inspecting it, so that as_julia_object(LSDModel(s = 12))$w reads the field as before.
  • add_intervals(), add_trajectories() and filter_levels() return forecasts that the has_*(), add_*() and filter functions can act on. They used to return forecasts those functions refused.

New features

  • has_converged() reports whether a fit converged. fit_baseline() issues an R warning if the fit did not converge.

  • ARMAModel() passes include_drift through to Julia, which adds a linear trend to the mean of the series (#7).

  • ARMAModel() and INARCHModel() gain k, the number of harmonic waves representing seasonality. Values above 1 allow sharper, asymmetric seasonal shapes than a single sinusoid (#7).

  • INARCHModel() gains s (seasonal period) and nb (negative binomial conditional distribution for overdispersed counts) (#7).

Bug fixes

  • The pinned ForecastBaselines.jl moves from a build of August 2025 to one that fixes four problems this package used to work around or document. ETS error types are chosen by "A" and "M" rather than through "N"; ARMA starts its mean parameters at the level of the data, so seasonal fits no longer settle far from it; INARCH evaluates each seasonal harmonic at its own frequency when forecasting, so forecasts reflect the seasonality that was estimated; and STL reports the minimum length it enforces, which its own documentation used to contradict. The wrappers drop the workaround and the warnings those problems needed, so INARCHModel(k > 1) no longer warns.

  • Quantile levels are rounded to the decimals they stand for, so scoringutils can find them. levels = 0.9 gave 0.049999999999999989 instead of 0.05, and scoringutils dropped interval_coverage_90 from the scores with a warning.

  • add_temporal_info() matches the ForecastBaselines.jl method it calls: it drops target_date, which Julia derives from the reference date, the forecast's horizon and resolution; takes resolution as a keyword argument rather than positionally; and converts a Date reference date into a Julia Date rather than letting it reach Julia as a Float64. Every previous call failed with a MethodError (#14).

  • The help pages and error message of transform_data() and transform_model(), the vignettes and the README now link to the articles instead of calling vignette(), because that call fails for a plain install (#23).