nowcasting-dfm 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dfm_sp/__init__.py +62 -0
- dfm_sp/core/__init__.py +1 -0
- dfm_sp/core/dfm.py +1232 -0
- dfm_sp/core/load_data.py +228 -0
- dfm_sp/core/load_data_pandas.py +44 -0
- dfm_sp/core/load_spec.py +149 -0
- dfm_sp/core/remNaNs_spline.py +161 -0
- dfm_sp/core/spec_converter.py +86 -0
- dfm_sp/core/summarize.py +146 -0
- dfm_sp/core/update_Nowcast.py +479 -0
- dfm_sp/sp_cache.py +147 -0
- dfm_sp/sp_classes.py +152 -0
- dfm_sp/sp_daily.py +47 -0
- dfm_sp/sp_download.py +98 -0
- dfm_sp/sp_heatmap.py +44 -0
- dfm_sp/sp_news.py +92 -0
- dfm_sp/sp_plot_generator.py +113 -0
- dfm_sp/sp_plots.py +373 -0
- dfm_sp/sp_plots2.py +195 -0
- dfm_sp/sp_plots3.py +89 -0
- dfm_sp/sp_plots_blocks.py +104 -0
- dfm_sp/sp_run.py +82 -0
- dfm_sp/sp_transformations.py +83 -0
- dfm_sp/sp_update_nowcast_.py +83 -0
- dfm_sp/sp_utils.py +74 -0
- dfm_sp/sp_vintage_generator.py +142 -0
- dfm_sp/tests/__init__.py +0 -0
- dfm_sp/tests/test_dfm_core.py +85 -0
- dfm_sp/tests/test_kalman_filter.py +56 -0
- dfm_sp/tests/test_macro_transformations.py +103 -0
- dfm_sp/tests/test_main.py +0 -0
- dfm_sp/tests/test_options.py +41 -0
- dfm_sp/tests/test_transformations.py +125 -0
- nowcasting_dfm-0.1.3.dist-info/METADATA +126 -0
- nowcasting_dfm-0.1.3.dist-info/RECORD +37 -0
- nowcasting_dfm-0.1.3.dist-info/WHEEL +4 -0
- nowcasting_dfm-0.1.3.dist-info/licenses/LICENSE +31 -0
dfm_sp/__init__.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import warnings
|
|
2
|
+
|
|
3
|
+
# Suppress annoying standard warnings during import
|
|
4
|
+
warnings.filterwarnings("ignore", category=FutureWarning)
|
|
5
|
+
|
|
6
|
+
from dfm_sp.core.dfm import dfm
|
|
7
|
+
from dfm_sp.core.summarize import summarize
|
|
8
|
+
from dfm_sp.sp_utils import get_latest, Timer
|
|
9
|
+
from dfm_sp.sp_update_nowcast_ import sp_update_nowcast
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from dfm_sp.sp_daily import daily_report
|
|
14
|
+
|
|
15
|
+
# Exposed Public API (Easier names)
|
|
16
|
+
from dfm_sp.sp_classes import Options, ResultObject
|
|
17
|
+
from dfm_sp.core.load_spec import SpecConfig, load_spec
|
|
18
|
+
from dfm_sp.core.load_data import load_data
|
|
19
|
+
from dfm_sp.core.dfm import dfm
|
|
20
|
+
from dfm_sp.core.summarize import summarize
|
|
21
|
+
from dfm_sp.sp_run import run_with_options, run
|
|
22
|
+
from dfm_sp.sp_plots import (
|
|
23
|
+
plot_transformed_data,
|
|
24
|
+
plot_loglik,
|
|
25
|
+
plot_common,
|
|
26
|
+
plot_loglik_together,
|
|
27
|
+
plot_projection_x_over_y,
|
|
28
|
+
)
|
|
29
|
+
from dfm_sp.sp_plots_blocks import plot_block_contributions
|
|
30
|
+
from dfm_sp.sp_news import plot_news_waterfall
|
|
31
|
+
|
|
32
|
+
# Expose Vintage Synthesizer heavily simplified
|
|
33
|
+
from dfm_sp.sp_vintage_generator import VintageMaker, FixedDayRule, WeekdayRule
|
|
34
|
+
|
|
35
|
+
# Data download helper
|
|
36
|
+
from dfm_sp.sp_download import download_sample_data
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
# Core DFM Loop
|
|
40
|
+
"Options",
|
|
41
|
+
"SpecConfig",
|
|
42
|
+
"ResultObject",
|
|
43
|
+
"run_with_options",
|
|
44
|
+
"run",
|
|
45
|
+
# Plotting/Visualizations
|
|
46
|
+
"plot_transformed_data",
|
|
47
|
+
"plot_loglik",
|
|
48
|
+
"plot_common",
|
|
49
|
+
"plot_loglik_together",
|
|
50
|
+
"plot_projection_x_over_y",
|
|
51
|
+
"plot_block_contributions",
|
|
52
|
+
"plot_news_waterfall",
|
|
53
|
+
# Pre-Processing
|
|
54
|
+
"VintageMaker",
|
|
55
|
+
"FixedDayRule",
|
|
56
|
+
"WeekdayRule",
|
|
57
|
+
# Classic Endpoints
|
|
58
|
+
"load_spec",
|
|
59
|
+
"load_data",
|
|
60
|
+
"dfm",
|
|
61
|
+
"summarize",
|
|
62
|
+
]
|
dfm_sp/core/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|