Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixed-type reconciliation algorithms #11

Merged
merged 36 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c03fb16
added pmf functions and reconc_TD functions
LorenzoZambon Apr 14, 2024
14a380e
optimized code for TD + fixed bugs
LorenzoZambon Apr 17, 2024
9d00a9c
reorganized functions in files + added checks of inputs
LorenzoZambon Apr 18, 2024
f63caba
reorganized checks + minor fix
LorenzoZambon Apr 19, 2024
14fa245
fixed bugs
LorenzoZambon Apr 19, 2024
ff53465
fixed base_fc params (vector -> list) in documentation, examples, tes…
LorenzoZambon Apr 22, 2024
4512cde
fixed bugs
LorenzoZambon Apr 23, 2024
08bf2e7
added PMF.get_mean and PMF.get_var + minor fix
LorenzoZambon Apr 23, 2024
486548c
small fixes and tests for functions of PMF, lowest upper levels, reco…
dazzimonti Apr 26, 2024
d257c72
added check that the hierarchy is balanced
LorenzoZambon Apr 26, 2024
aaeb566
Fixed several tests, updated .check_S, .lowest_lev functions. The gen…
dazzimonti Apr 29, 2024
ddede49
changed the structure of the object returned by reconc_TDcond. minor …
dazzimonti Apr 30, 2024
2ded7c7
Updated documentation for PMF and reconc_TDcond, added PMF.summary
dazzimonti May 2, 2024
af046dc
Added reconc_mixCond function, MVN_density function, tests, documenta…
dazzimonti May 3, 2024
10598c7
Minor fixes to reconc_mixCond, reconc_BUIS and PMF. Changed the behav…
dazzimonti May 16, 2024
832cc5b
Minor fixes to .check_cov and the error handling in MVN_density and M…
dazzimonti May 16, 2024
1215209
removed emdbook dependency
dazzimonti May 16, 2024
918ff40
fixed seed + reorganized data + fixed MVN_density + other minor fix
LorenzoZambon May 17, 2024
5aa888d
updated readme, fixed documentation
LorenzoZambon May 21, 2024
68f8e06
fixed bugs + minor fix
LorenzoZambon May 21, 2024
7802bbe
updated bayesRecon-package + fixed references
LorenzoZambon May 21, 2024
2ca7de8
fixed references, updated description, minor fixes
LorenzoZambon May 22, 2024
34b1540
changed parameters for PMF convolution and smoothing + fixed warning …
LorenzoZambon May 23, 2024
ee84adb
First version of the mixed type reconciliation vignette
dazzimonti May 23, 2024
aea8d46
fixed bugs in vignette
LorenzoZambon May 23, 2024
0be45f9
Small fix to the structure of M5_CA1_basefc dataset.
dazzimonti May 24, 2024
1ebc6fd
Fixes to the mixed reconciliation vignette, minor fix to reconciliati…
dazzimonti May 24, 2024
5953a5f
added load of the base forecast using the data command.
gcorani May 25, 2024
500dcda
minor fixes to the text
gcorani May 25, 2024
456ab76
minor fixes to text
gcorani May 25, 2024
598071c
minor edit to the text
gcorani May 25, 2024
64c1779
minor edit to the text
gcorani May 27, 2024
8bb1f5e
minor edit to the text
gcorani May 27, 2024
6eff3d3
Minor changes to references for the vignettes
dazzimonti May 27, 2024
3c0233e
minor fix vignette and utils
LorenzoZambon May 28, 2024
b9a0a30
Final fixes to vignette, bumped package version, updated ReadMe, DESC…
dazzimonti May 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
^doc$
^Meta$
^data-raw$
^\./tests/testthat/dataForTests/generate_weeklyTestData\.R$
16 changes: 12 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: bayesRecon
Type: Package
Date: 2023-12-19
Date: 2024-05-29
Title: Probabilistic Reconciliation via Conditioning
Version: 0.2.0
Version: 0.3.0
Authors@R: c(person(given = "Dario",
family = "Azzimonti",
role = c("aut","cre"),
Expand All @@ -24,7 +24,15 @@ Authors@R: c(person(given = "Dario",
email = "[email protected]",
comment = c(ORCID = "0000-0002-1541-8384")))
Maintainer: Dario Azzimonti <[email protected]>
Description: Provides methods for probabilistic reconciliation of hierarchical forecasts of time series. The available methods include analytical Gaussian reconciliation (Corani et al., 2021) <doi:10.1007/978-3-030-67664-3_13>, MCMC reconciliation of count time series (Corani et al., 2022) <doi:10.48550/arXiv.2207.09322>, Bottom-Up Importance Sampling (Zambon et al., 2022) <doi:10.48550/arXiv.2210.02286>.
Description: Provides methods for probabilistic reconciliation of hierarchical forecasts of time series.
The available methods include analytical Gaussian reconciliation (Corani et al., 2021)
<doi:10.1007/978-3-030-67664-3_13>,
MCMC reconciliation of count time series (Corani et al., 2024)
<doi:10.1016/j.ijforecast.2023.04.003>,
Bottom-Up Importance Sampling (Zambon et al., 2024)
<doi:10.1007/s11222-023-10343-y>,
methods for the reconciliation of mixed hierarchies (Mix-Cond and TD-cond)
(Zambon et al., 2024. The 40th Conference on Uncertainty in Artificial Intelligence, accepted).
License: LGPL (>= 3)
Depends: R (>= 4.1.0)
Imports:
Expand All @@ -34,7 +42,7 @@ Imports:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown=TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Suggests:
knitr,
rmarkdown,
Expand Down
7 changes: 7 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# Generated by roxygen2: do not edit by hand

export(PMF.get_mean)
export(PMF.get_quantile)
export(PMF.get_var)
export(PMF.sample)
export(PMF.summary)
export(get_reconc_matrices)
export(reconc_BUIS)
export(reconc_MCMC)
export(reconc_MixCond)
export(reconc_TDcond)
export(reconc_gaussian)
export(schaferStrimmer_cov)
export(temporal_aggregation)
16 changes: 14 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# bayesRecon 0.3.0

* Added `reconc_MixCond`, the implementation of Mixed conditioning for the reconciliation of mixed-type hierarchical forecasts.

* Added `reconc_TDcond`, the implementation of Top-down conditioning for the reconciliation of mixed-type hierarchical forecasts.

* Vignette "Reconciliation of M5 hierarchy with mixed-type forecasts".

* Added functions `PMF.get_mean`, `PMF.get_quantile`, `PMF.get_var`, `PMF.sample`, `PMF.summary` that return point estimates and samples from a probability mass function object.

* Added the dataset `M5_CA1_basefc` which contains the base forecasts for the store "CA1" of the hierarchical time series in the M5 competition.

# bayesRecon 0.2.0

* Vignette "Properties of the reconciled distribution via conditioning"
* Vignette "Properties of the reconciled distribution via conditioning".

* Added option in `reconc_BUIS` to pass some base forecast as parameters and some as samples
* Added option in `reconc_BUIS` to pass some base forecast as parameters and some as samples.

* Added option in `reconc_BUIS` to input a list of distributions instead of a string.

Expand Down
10 changes: 0 additions & 10 deletions R/M3_example.R

This file was deleted.

Loading
Loading