dfm-python 0.4.0__tar.gz → 0.4.2__tar.gz
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_python-0.4.0 → dfm_python-0.4.2}/PKG-INFO +7 -1
- dfm_python-0.4.2/config/experiment/base.yaml +15 -0
- dfm_python-0.4.2/config/experiment/investment_ddfm.yaml +79 -0
- dfm_python-0.4.2/config/experiment/production_dfm.yaml +61 -0
- dfm_python-0.4.2/config/experiment/production_dfm_high_factors.yaml +61 -0
- dfm_python-0.4.2/config/experiment/test_ddfm.yaml +26 -0
- dfm_python-0.4.2/config/experiment/test_dfm.yaml +26 -0
- dfm_python-0.4.2/config/model/ddfm.yaml +30 -0
- dfm_python-0.4.2/config/model/dfm.yaml +42 -0
- dfm_python-0.4.2/config/series/KO3YEARC.yaml +12 -0
- dfm_python-0.4.2/config/series/KOBFDSAAF.yaml +11 -0
- dfm_python-0.4.2/config/series/KOBFINAAF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOBFXSAAF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOBSESI_R.yaml +11 -0
- dfm_python-0.4.2/config/series/KOBSIBCEQ.yaml +11 -0
- dfm_python-0.4.2/config/series/KOBSIBCOQ.yaml +11 -0
- dfm_python-0.4.2/config/series/KOBSIBNER.yaml +11 -0
- dfm_python-0.4.2/config/series/KOBSIBNMR.yaml +11 -0
- dfm_python-0.4.2/config/series/KOBSIEMAR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOBSIHAPR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOBSIIMER.yaml +12 -0
- dfm_python-0.4.2/config/series/KOBSIIMPR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOBSIXMER.yaml +12 -0
- dfm_python-0.4.2/config/series/KOBUSINVR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCALL_.yaml +11 -0
- dfm_python-0.4.2/config/series/KOCNFBUSR.yaml +11 -0
- dfm_python-0.4.2/config/series/KOCNFCONR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCNGOV_D.yaml +11 -0
- dfm_python-0.4.2/config/series/KOCNPER_D.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCOBUSIR.yaml +11 -0
- dfm_python-0.4.2/config/series/KOCONPMTH.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCONPRCF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCONSTRP.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCPCOREF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCPEXFEF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCREU__A.yaml +13 -0
- dfm_python-0.4.2/config/series/KOCSECDMR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCSECEMR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCSEMEMR.yaml +13 -0
- dfm_python-0.4.2/config/series/KOCSEOHDR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCSEOHSR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCSHHEMR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCSHHLMR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCSMTTOA.yaml +13 -0
- dfm_python-0.4.2/config/series/KOCSPHIMR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCSPSPMR.yaml +12 -0
- dfm_python-0.4.2/config/series/KOCYLEADR.yaml +11 -0
- dfm_python-0.4.2/config/series/KODBLNEQA.yaml +13 -0
- dfm_python-0.4.2/config/series/KODBLNHSA.yaml +13 -0
- dfm_python-0.4.2/config/series/KOEMPCONF.yaml +13 -0
- dfm_python-0.4.2/config/series/KOEMPMANF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOEMPTOTO.yaml +12 -0
- dfm_python-0.4.2/config/series/KOEMPWREP.yaml +13 -0
- dfm_python-0.4.2/config/series/KOEQUIMAE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOEQUIPTE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOEQUITTE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOEXCHINA.yaml +13 -0
- dfm_python-0.4.2/config/series/KOEXNGS_D.yaml +12 -0
- dfm_python-0.4.2/config/series/KOEXPGDSA.yaml +13 -0
- dfm_python-0.4.2/config/series/KOEXPPRCF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOGCFCNSD.yaml +12 -0
- dfm_python-0.4.2/config/series/KOGCFFNVD.yaml +12 -0
- dfm_python-0.4.2/config/series/KOGDP___D.yaml +12 -0
- dfm_python-0.4.2/config/series/KOGFCF__D.yaml +12 -0
- dfm_python-0.4.2/config/series/KOHWRWEMP.yaml +12 -0
- dfm_python-0.4.2/config/series/KOIMNGS_D.yaml +11 -0
- dfm_python-0.4.2/config/series/KOIMPCONA.yaml +13 -0
- dfm_python-0.4.2/config/series/KOIMPGDDA.yaml +13 -0
- dfm_python-0.4.2/config/series/KOIMPGDSA.yaml +12 -0
- dfm_python-0.4.2/config/series/KOIMPPRCF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOIPALL_G.yaml +11 -0
- dfm_python-0.4.2/config/series/KOIPMIMAG.yaml +11 -0
- dfm_python-0.4.2/config/series/KOLRLTCO.yaml +12 -0
- dfm_python-0.4.2/config/series/KOLRLTHH.yaml +11 -0
- dfm_python-0.4.2/config/series/KOMPCAPGG.yaml +12 -0
- dfm_python-0.4.2/config/series/KOMPCONDG.yaml +12 -0
- dfm_python-0.4.2/config/series/KOMPCONGG.yaml +12 -0
- dfm_python-0.4.2/config/series/KOMPCONNG.yaml +12 -0
- dfm_python-0.4.2/config/series/KOMPRI30G.yaml +12 -0
- dfm_python-0.4.2/config/series/KOMSCAPGG.yaml +12 -0
- dfm_python-0.4.2/config/series/KOMSCONGG.yaml +12 -0
- dfm_python-0.4.2/config/series/KONETTRDF.yaml +13 -0
- dfm_python-0.4.2/config/series/KONEWCONA.yaml +13 -0
- dfm_python-0.4.2/config/series/KOPICAPGG.yaml +12 -0
- dfm_python-0.4.2/config/series/KOPICONGG.yaml +12 -0
- dfm_python-0.4.2/config/series/KOPIMANUG.yaml +11 -0
- dfm_python-0.4.2/config/series/KOPOPACTE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOPPSRM_F.yaml +12 -0
- dfm_python-0.4.2/config/series/KOPROPRCF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOPSMANUG.yaml +11 -0
- dfm_python-0.4.2/config/series/KORCNST.yaml +8 -0
- dfm_python-0.4.2/config/series/KORELEC.yaml +11 -0
- dfm_python-0.4.2/config/series/KORFBEV.yaml +11 -0
- dfm_python-0.4.2/config/series/KORMACH.yaml +8 -0
- dfm_python-0.4.2/config/series/KORMCMP.yaml +8 -0
- dfm_python-0.4.2/config/series/KOROCOINF.yaml +11 -0
- dfm_python-0.4.2/config/series/KORWHLS.yaml +11 -0
- dfm_python-0.4.2/config/series/KOSHRPRCF.yaml +12 -0
- dfm_python-0.4.2/config/series/KOSIAHOTE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOSIAI__E.yaml +12 -0
- dfm_python-0.4.2/config/series/KOSIARRLE.yaml +11 -0
- dfm_python-0.4.2/config/series/KOSIAWRTE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOSSBFMBE.yaml +11 -0
- dfm_python-0.4.2/config/series/KOUN_TOTQ.yaml +12 -0
- dfm_python-0.4.2/config/series/KOUS____.yaml +13 -0
- dfm_python-0.4.2/config/series/KOVALCONA.yaml +13 -0
- dfm_python-0.4.2/config/series/KOWRCCNSE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOWRCDURE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOWRCNODE.yaml +12 -0
- dfm_python-0.4.2/config/series/KOWRCSEME.yaml +12 -0
- dfm_python-0.4.2/data/metadata.csv +102 -0
- dfm_python-0.4.2/data/sample_data.csv +2539 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/pyproject.toml +6 -1
- dfm_python-0.4.2/src/dfm_python/__init__.py +172 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/config/__init__.py +18 -18
- dfm_python-0.4.0/src/dfm_python/config/io.py → dfm_python-0.4.2/src/dfm_python/config/adapter.py +188 -198
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/config/results.py +36 -11
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/config/schema.py +375 -149
- dfm_python-0.4.0/src/dfm_python/config/structure.py → dfm_python-0.4.2/src/dfm_python/config/utils.py +103 -13
- dfm_python-0.4.2/src/dfm_python/data/__init__.py +52 -0
- dfm_python-0.4.2/src/dfm_python/data/dataloader.py +97 -0
- dfm_python-0.4.2/src/dfm_python/data/dataset.py +154 -0
- dfm_python-0.4.0/src/dfm_python/transformations/transformers.py → dfm_python-0.4.2/src/dfm_python/data/transformation.py +40 -47
- {dfm_python-0.4.0/src/dfm_python/transformations → dfm_python-0.4.2/src/dfm_python/data}/utils.py +2 -2
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/encoder/__init__.py +8 -2
- dfm_python-0.4.2/src/dfm_python/encoder/base.py +111 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/encoder/pca.py +142 -3
- dfm_python-0.4.2/src/dfm_python/encoder/vae.py +550 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/lightning/__init__.py +9 -7
- dfm_python-0.4.2/src/dfm_python/lightning/data_module.py +558 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/lightning/ddfm_module.py +33 -6
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/logger/__init__.py +2 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/logger/inference_logger.py +60 -17
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/logger/logger.py +13 -3
- dfm_python-0.4.2/src/dfm_python/logger/train_logger.py +533 -0
- dfm_python-0.4.2/src/dfm_python/models/__init__.py +24 -0
- dfm_python-0.4.2/src/dfm_python/models/base.py +235 -0
- dfm_python-0.4.2/src/dfm_python/models/ddfm.py +1594 -0
- dfm_python-0.4.2/src/dfm_python/models/dfm.py +1172 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/models/estimation.py +42 -22
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/nowcast/helpers.py +30 -226
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/nowcast/nowcast.py +0 -3
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/nowcast/utils.py +9 -10
- dfm_python-0.4.2/src/dfm_python/ssm/em.py +775 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/ssm/kalman.py +1 -1
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/ssm/utils.py +2 -1
- dfm_python-0.4.2/src/dfm_python/trainer/__init__.py +739 -0
- dfm_python-0.4.2/src/dfm_python/trainer/ddfm.py +177 -0
- dfm_python-0.4.2/src/dfm_python/trainer/dfm.py +155 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/utils/__init__.py +19 -49
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/utils/data.py +28 -192
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/utils/helpers.py +19 -98
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/utils/statespace.py +43 -72
- dfm_python-0.4.2/src/test/test_config.py +383 -0
- dfm_python-0.4.2/src/test/test_logger.py +190 -0
- dfm_python-0.4.2/src/test/test_models.py +389 -0
- dfm_python-0.4.2/src/test/test_nowcast.py +348 -0
- dfm_python-0.4.2/src/test/test_pipeline_ddfm.py +545 -0
- dfm_python-0.4.2/src/test/test_pipeline_dfm.py +913 -0
- dfm_python-0.4.2/src/test/test_ssm.py +371 -0
- dfm_python-0.4.2/src/test/test_trainer.py +312 -0
- dfm_python-0.4.2/src/test/test_utils.py +373 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/uv.lock +1030 -8
- dfm_python-0.4.0/.git +0 -1
- dfm_python-0.4.0/SKTIME_INTEGRATION_PLAN.md +0 -562
- dfm_python-0.4.0/config/blocks/default.yaml +0 -29
- dfm_python-0.4.0/config/blocks/sample_spec.yaml +0 -29
- dfm_python-0.4.0/config/blocks/sample_spec2.yaml +0 -29
- dfm_python-0.4.0/config/default.yaml +0 -70
- dfm_python-0.4.0/config/experiment/ddfm_example.yaml +0 -26
- dfm_python-0.4.0/config/experiment/exp1.yaml +0 -14
- dfm_python-0.4.0/config/experiment/exp2.yaml +0 -14
- dfm_python-0.4.0/config/experiment/exp3.yaml +0 -14
- dfm_python-0.4.0/config/series/default.yaml +0 -749
- dfm_python-0.4.0/config/series/sample_spec.yaml +0 -749
- dfm_python-0.4.0/config/series/sample_spec2.yaml +0 -699
- dfm_python-0.4.0/data/mdfred_snapshot_monthly.csv +0 -780
- dfm_python-0.4.0/data/mdfred_snapshot_quarterly.csv +0 -262
- dfm_python-0.4.0/data/sample_data.csv +0 -490
- dfm_python-0.4.0/data/sample_spec.csv +0 -85
- dfm_python-0.4.0/full_tutorial_example.ipynb +0 -2265
- dfm_python-0.4.0/src/dfm_python/__init__.py +0 -236
- dfm_python-0.4.0/src/dfm_python/config/params.py +0 -202
- dfm_python-0.4.0/src/dfm_python/config/utils.py +0 -93
- dfm_python-0.4.0/src/dfm_python/encoder/base.py +0 -0
- dfm_python-0.4.0/src/dfm_python/encoder/vae.py +0 -291
- dfm_python-0.4.0/src/dfm_python/lightning/data_module.py +0 -364
- dfm_python-0.4.0/src/dfm_python/logger/train_logger.py +0 -309
- dfm_python-0.4.0/src/dfm_python/models/__init__.py +0 -36
- dfm_python-0.4.0/src/dfm_python/models/base.py +0 -94
- dfm_python-0.4.0/src/dfm_python/models/ddfm.py +0 -1120
- dfm_python-0.4.0/src/dfm_python/models/dfm.py +0 -810
- dfm_python-0.4.0/src/dfm_python/ssm/em.py +0 -488
- dfm_python-0.4.0/src/dfm_python/trainer/__init__.py +0 -20
- dfm_python-0.4.0/src/dfm_python/trainer/ddfm.py +0 -196
- dfm_python-0.4.0/src/dfm_python/trainer/dfm.py +0 -153
- dfm_python-0.4.0/src/dfm_python/transformations/__init__.py +0 -35
- dfm_python-0.4.0/src/dfm_python/transformations/sktime.py +0 -40
- dfm_python-0.4.0/src/test/__init__.py +0 -226
- dfm_python-0.4.0/src/test/test_ddfm.py +0 -681
- dfm_python-0.4.0/src/test/test_dfm.py +0 -450
- dfm_python-0.4.0/src/test/test_lightning_module.py +0 -678
- dfm_python-0.4.0/src/test/test_nowcast.py +0 -516
- dfm_python-0.4.0/src/test/test_trainer.py +0 -54
- dfm_python-0.4.0/src/test/test_transformations.py +0 -1151
- dfm_python-0.4.0/test_comprehensive.py +0 -1
- {dfm_python-0.4.0 → dfm_python-0.4.2}/.gitignore +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/.python-version +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/LICENSE +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/MANIFEST.in +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/README.md +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/lightning/callbacks.py +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/lightning/dfm_module.py +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/lightning/utils.py +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/nowcast/__init__.py +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/nowcast/dataview.py +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/ssm/__init__.py +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/utils/diagnostics.py +0 -0
- {dfm_python-0.4.0 → dfm_python-0.4.2}/src/dfm_python/utils/time.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dfm-python
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Dynamic Factor Model (DFM) estimation and nowcasting in Python
|
|
5
5
|
Project-URL: Homepage, https://github.com/yourusername/dfm-python
|
|
6
6
|
Project-URL: Documentation, https://github.com/yourusername/dfm-python#readme
|
|
@@ -23,12 +23,17 @@ Requires-Dist: hydra-core>=1.3.2
|
|
|
23
23
|
Requires-Dist: matplotlib>=3.5.0
|
|
24
24
|
Requires-Dist: numpy>=1.24.0
|
|
25
25
|
Requires-Dist: polars>=0.20.0
|
|
26
|
+
Requires-Dist: pyarrow>=22.0.0
|
|
27
|
+
Requires-Dist: pytorch-lightning>=2.0.0
|
|
28
|
+
Requires-Dist: scikit-learn>=1.7.2
|
|
26
29
|
Requires-Dist: scipy>=1.10.0
|
|
30
|
+
Requires-Dist: sktime>=0.40.1
|
|
27
31
|
Requires-Dist: torch>=2.0.0
|
|
28
32
|
Requires-Dist: twine>=6.2.0
|
|
29
33
|
Provides-Extra: all
|
|
30
34
|
Requires-Dist: hydra-core>=1.3.0; extra == 'all'
|
|
31
35
|
Requires-Dist: omegaconf>=2.3.0; extra == 'all'
|
|
36
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == 'all'
|
|
32
37
|
Requires-Dist: pytest>=7.0.0; extra == 'all'
|
|
33
38
|
Requires-Dist: scikit-learn>=1.0.0; extra == 'all'
|
|
34
39
|
Requires-Dist: sktime>=0.27.0; extra == 'all'
|
|
@@ -37,6 +42,7 @@ Provides-Extra: db
|
|
|
37
42
|
Requires-Dist: sqlalchemy>=2.0.0; extra == 'db'
|
|
38
43
|
Provides-Extra: deep
|
|
39
44
|
Provides-Extra: dev
|
|
45
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
|
|
40
46
|
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
|
41
47
|
Requires-Dist: scikit-learn>=1.0.0; extra == 'dev'
|
|
42
48
|
Provides-Extra: hydra
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- 'model: dfm'
|
|
3
|
+
- _self_
|
|
4
|
+
data:
|
|
5
|
+
path: data/sample_data.csv
|
|
6
|
+
sample_start: null
|
|
7
|
+
sample_end: null
|
|
8
|
+
output:
|
|
9
|
+
path: outputs/${experiment.name}
|
|
10
|
+
save_model: true
|
|
11
|
+
save_plots: true
|
|
12
|
+
save_results: true
|
|
13
|
+
description: Base experiment template
|
|
14
|
+
name: base_experiment
|
|
15
|
+
target: null
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# @package _global_
|
|
2
|
+
defaults:
|
|
3
|
+
- override /model: ddfm
|
|
4
|
+
- _self_
|
|
5
|
+
data:
|
|
6
|
+
path: data/sample_data.csv
|
|
7
|
+
sample_start: '2000-01-01'
|
|
8
|
+
sample_end: '2023-12-31'
|
|
9
|
+
description: DDFM model for investment indicators
|
|
10
|
+
name: investment_ddfm
|
|
11
|
+
output:
|
|
12
|
+
path: outputs/investment_ddfm
|
|
13
|
+
save_model: true
|
|
14
|
+
save_plots: true
|
|
15
|
+
save_results: true
|
|
16
|
+
series:
|
|
17
|
+
- KO3YEARC
|
|
18
|
+
- KOBFDSAAF
|
|
19
|
+
- KOBFINAAF
|
|
20
|
+
- KOBFXSAAF
|
|
21
|
+
- KOBSESI.R
|
|
22
|
+
- KOBSIBCEQ
|
|
23
|
+
- KOBSIBCOQ
|
|
24
|
+
- KOBSIIMER
|
|
25
|
+
- KOBSIIMPR
|
|
26
|
+
- KOBSIXMER
|
|
27
|
+
- KOBUSINVR
|
|
28
|
+
- KOCALL.
|
|
29
|
+
- KOCNFBUSR
|
|
30
|
+
- KOCNFCONR
|
|
31
|
+
- KOCNGOV.D
|
|
32
|
+
- KOCOBUSIR
|
|
33
|
+
- KOCONPMTH
|
|
34
|
+
- KOCONSTRP
|
|
35
|
+
- KOCSEMEMR
|
|
36
|
+
- KOCYLEADR
|
|
37
|
+
- KODBLNEQA
|
|
38
|
+
- KOEMPCONF
|
|
39
|
+
- KOEMPMANF
|
|
40
|
+
- KOEQUIMAE
|
|
41
|
+
- KOEQUIPTE
|
|
42
|
+
- KOEQUITTE
|
|
43
|
+
- KOEXCHINA
|
|
44
|
+
- KOEXNGS.D
|
|
45
|
+
- KOEXPGDSA
|
|
46
|
+
- KOEXPPRCF
|
|
47
|
+
- KOGCFCNSD
|
|
48
|
+
- KOGCFFNVD
|
|
49
|
+
- KOGDP...D
|
|
50
|
+
- KOGFCF..D
|
|
51
|
+
- KOIMNGS.D
|
|
52
|
+
- KOIMPGDDA
|
|
53
|
+
- KOIMPGDSA
|
|
54
|
+
- KOIMPPRCF
|
|
55
|
+
- KOIPALL.G
|
|
56
|
+
- KOIPMIMAG
|
|
57
|
+
- KOLRLTCO
|
|
58
|
+
- KOMPCAPGG
|
|
59
|
+
- KOMPCONDG
|
|
60
|
+
- KOMPRI30G
|
|
61
|
+
- KOMSCAPGG
|
|
62
|
+
- KONETTRDF
|
|
63
|
+
- KONEWCONA
|
|
64
|
+
- KOPICAPGG
|
|
65
|
+
- KOPIMANUG
|
|
66
|
+
- KOPPSRM.F
|
|
67
|
+
- KOPROPRCF
|
|
68
|
+
- KOPSMANUG
|
|
69
|
+
- KORCNST
|
|
70
|
+
- KORELEC
|
|
71
|
+
- KORMACH
|
|
72
|
+
- KORMCMP
|
|
73
|
+
- KOROCOINF
|
|
74
|
+
- KOSHRPRCF
|
|
75
|
+
- KOSIARRLE
|
|
76
|
+
- KOSSBFMBE
|
|
77
|
+
- KOUS$...
|
|
78
|
+
- KOVALCONA
|
|
79
|
+
target: KOGFCF..D
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# @package _global_
|
|
2
|
+
defaults:
|
|
3
|
+
- override /model: dfm
|
|
4
|
+
- _self_
|
|
5
|
+
data:
|
|
6
|
+
path: data/sample_data.csv
|
|
7
|
+
sample_start: '2000-01-01'
|
|
8
|
+
sample_end: '2023-12-31'
|
|
9
|
+
description: DFM model for production indicators
|
|
10
|
+
name: production_dfm
|
|
11
|
+
output:
|
|
12
|
+
path: outputs/production_dfm
|
|
13
|
+
save_model: true
|
|
14
|
+
save_plots: true
|
|
15
|
+
save_results: true
|
|
16
|
+
series:
|
|
17
|
+
- KOBFDSAAF
|
|
18
|
+
- KOBFXSAAF
|
|
19
|
+
- KOBSESI.R
|
|
20
|
+
- KOBSIBCEQ
|
|
21
|
+
- KOBSIBCOQ
|
|
22
|
+
- KOBSIHAPR
|
|
23
|
+
- KOBSIXMER
|
|
24
|
+
- KOCALL.
|
|
25
|
+
- KOCNFBUSR
|
|
26
|
+
- KOCNFCONR
|
|
27
|
+
- KOCNGOV.D
|
|
28
|
+
- KOCOBUSIR
|
|
29
|
+
- KOCONPRCF
|
|
30
|
+
- KOCSECEMR
|
|
31
|
+
- KOCSEMEMR
|
|
32
|
+
- KOCSPHIMR
|
|
33
|
+
- KOCYLEADR
|
|
34
|
+
- KOEMPTOTO
|
|
35
|
+
- KOEQUIPTE
|
|
36
|
+
- KOEXCHINA
|
|
37
|
+
- KOEXNGS.D
|
|
38
|
+
- KOEXPGDSA
|
|
39
|
+
- KOEXPPRCF
|
|
40
|
+
- KOGDP...D
|
|
41
|
+
- KOHWRWEMP
|
|
42
|
+
- KOIMNGS.D
|
|
43
|
+
- KOIMPGDSA
|
|
44
|
+
- KOIMPPRCF
|
|
45
|
+
- KOIPALL.G
|
|
46
|
+
- KONETTRDF
|
|
47
|
+
- KONEWCONA
|
|
48
|
+
- KOPIMANUG
|
|
49
|
+
- KOPOPACTE
|
|
50
|
+
- KOPPSRM.F
|
|
51
|
+
- KOPROPRCF
|
|
52
|
+
- KOPSMANUG
|
|
53
|
+
- KORELEC
|
|
54
|
+
- KORMCMP
|
|
55
|
+
- KOROCOINF
|
|
56
|
+
- KOSIAI..E
|
|
57
|
+
- KOUN%TOTQ
|
|
58
|
+
- KOUS$...
|
|
59
|
+
- KOVALCONA
|
|
60
|
+
- KOWRCCNSE
|
|
61
|
+
target: KOGDP...D
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# @package _global_
|
|
2
|
+
defaults:
|
|
3
|
+
- override /model: dfm_high_factors
|
|
4
|
+
- _self_
|
|
5
|
+
data:
|
|
6
|
+
path: data/sample_data.csv
|
|
7
|
+
sample_start: '2000-01-01'
|
|
8
|
+
sample_end: '2023-12-31'
|
|
9
|
+
description: DFM model with high factors for production indicators
|
|
10
|
+
name: production_dfm_high_factors
|
|
11
|
+
output:
|
|
12
|
+
path: outputs/production_dfm_high_factors
|
|
13
|
+
save_model: true
|
|
14
|
+
save_plots: true
|
|
15
|
+
save_results: true
|
|
16
|
+
series:
|
|
17
|
+
- KOBFDSAAF
|
|
18
|
+
- KOBFXSAAF
|
|
19
|
+
- KOBSESI.R
|
|
20
|
+
- KOBSIBCEQ
|
|
21
|
+
- KOBSIBCOQ
|
|
22
|
+
- KOBSIHAPR
|
|
23
|
+
- KOBSIXMER
|
|
24
|
+
- KOCALL.
|
|
25
|
+
- KOCNFBUSR
|
|
26
|
+
- KOCNFCONR
|
|
27
|
+
- KOCNGOV.D
|
|
28
|
+
- KOCOBUSIR
|
|
29
|
+
- KOCONPRCF
|
|
30
|
+
- KOCSECEMR
|
|
31
|
+
- KOCSEMEMR
|
|
32
|
+
- KOCSPHIMR
|
|
33
|
+
- KOCYLEADR
|
|
34
|
+
- KOEMPTOTO
|
|
35
|
+
- KOEQUIPTE
|
|
36
|
+
- KOEXCHINA
|
|
37
|
+
- KOEXNGS.D
|
|
38
|
+
- KOEXPGDSA
|
|
39
|
+
- KOEXPPRCF
|
|
40
|
+
- KOGDP...D
|
|
41
|
+
- KOHWRWEMP
|
|
42
|
+
- KOIMNGS.D
|
|
43
|
+
- KOIMPGDSA
|
|
44
|
+
- KOIMPPRCF
|
|
45
|
+
- KOIPALL.G
|
|
46
|
+
- KONETTRDF
|
|
47
|
+
- KONEWCONA
|
|
48
|
+
- KOPIMANUG
|
|
49
|
+
- KOPOPACTE
|
|
50
|
+
- KOPPSRM.F
|
|
51
|
+
- KOPROPRCF
|
|
52
|
+
- KOPSMANUG
|
|
53
|
+
- KORELEC
|
|
54
|
+
- KORMCMP
|
|
55
|
+
- KOROCOINF
|
|
56
|
+
- KOSIAI..E
|
|
57
|
+
- KOUN%TOTQ
|
|
58
|
+
- KOUS$...
|
|
59
|
+
- KOVALCONA
|
|
60
|
+
- KOWRCCNSE
|
|
61
|
+
target: KOGDP...D
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @package _global_
|
|
2
|
+
defaults:
|
|
3
|
+
- override /model: ddfm
|
|
4
|
+
- _self_
|
|
5
|
+
data:
|
|
6
|
+
path: data/sample_data.csv
|
|
7
|
+
sample_start: '2000-01-01'
|
|
8
|
+
sample_end: '2023-12-31'
|
|
9
|
+
description: Test DDFM model configuration for unit tests
|
|
10
|
+
name: test_ddfm
|
|
11
|
+
output:
|
|
12
|
+
path: outputs/test_ddfm
|
|
13
|
+
save_model: false
|
|
14
|
+
save_plots: false
|
|
15
|
+
save_results: false
|
|
16
|
+
series:
|
|
17
|
+
- KO3YEARC
|
|
18
|
+
- KOGDP...D
|
|
19
|
+
- KOEMPTOTO
|
|
20
|
+
- KOEXPGDSA
|
|
21
|
+
- KOIMPGDSA
|
|
22
|
+
- KOCONPRCF
|
|
23
|
+
- KOPOPACTE
|
|
24
|
+
- KOHWRWEMP
|
|
25
|
+
target: KOGDP...D
|
|
26
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @package _global_
|
|
2
|
+
defaults:
|
|
3
|
+
- override /model: dfm
|
|
4
|
+
- _self_
|
|
5
|
+
data:
|
|
6
|
+
path: data/sample_data.csv
|
|
7
|
+
sample_start: '2000-01-01'
|
|
8
|
+
sample_end: '2023-12-31'
|
|
9
|
+
description: Test DFM model configuration for unit tests
|
|
10
|
+
name: test_dfm
|
|
11
|
+
output:
|
|
12
|
+
path: outputs/test_dfm
|
|
13
|
+
save_model: false
|
|
14
|
+
save_plots: false
|
|
15
|
+
save_results: false
|
|
16
|
+
series:
|
|
17
|
+
- KO3YEARC
|
|
18
|
+
- KOGDP...D
|
|
19
|
+
- KOEMPTOTO
|
|
20
|
+
- KOEXPGDSA
|
|
21
|
+
- KOIMPGDSA
|
|
22
|
+
- KOCONPRCF
|
|
23
|
+
- KOPOPACTE
|
|
24
|
+
- KOHWRWEMP
|
|
25
|
+
target: KOGDP...D
|
|
26
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# DDFM Configuration
|
|
2
|
+
# Note: DDFM does not use block structure - blocks are only for DFM
|
|
3
|
+
# num_factors specifies the total number of factors directly
|
|
4
|
+
|
|
5
|
+
clock: m
|
|
6
|
+
nan_k: 3
|
|
7
|
+
nan_method: 2
|
|
8
|
+
|
|
9
|
+
# Neural network architecture
|
|
10
|
+
encoder_layers:
|
|
11
|
+
- 64
|
|
12
|
+
- 32
|
|
13
|
+
num_factors: 2
|
|
14
|
+
activation: tanh
|
|
15
|
+
use_batch_norm: true
|
|
16
|
+
|
|
17
|
+
# Training parameters
|
|
18
|
+
learning_rate: 0.001
|
|
19
|
+
batch_size: 32
|
|
20
|
+
epochs: 100
|
|
21
|
+
factor_order: 1
|
|
22
|
+
|
|
23
|
+
# MCMC parameters
|
|
24
|
+
max_iter: 200
|
|
25
|
+
tolerance: 0.0005
|
|
26
|
+
disp: 10
|
|
27
|
+
|
|
28
|
+
# Idiosyncratic components
|
|
29
|
+
use_idiosyncratic: true
|
|
30
|
+
min_obs_idio: 5
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
ar_clip_max: 0.99
|
|
2
|
+
ar_clip_min: -0.99
|
|
3
|
+
ar_lag: 1
|
|
4
|
+
augment_idio: true
|
|
5
|
+
augment_idio_slow: true
|
|
6
|
+
# Block configurations: define all blocks and their properties
|
|
7
|
+
# Series configs specify which blocks they belong to (optional - defaults to first block)
|
|
8
|
+
blocks:
|
|
9
|
+
Block_Global:
|
|
10
|
+
factors: 3
|
|
11
|
+
ar_lag: 1
|
|
12
|
+
clock: m
|
|
13
|
+
Block_Consumption:
|
|
14
|
+
factors: 1
|
|
15
|
+
ar_lag: 1
|
|
16
|
+
clock: m
|
|
17
|
+
Block_Investment:
|
|
18
|
+
factors: 1
|
|
19
|
+
ar_lag: 1
|
|
20
|
+
clock: m
|
|
21
|
+
Block_Export:
|
|
22
|
+
factors: 1
|
|
23
|
+
ar_lag: 1
|
|
24
|
+
clock: m
|
|
25
|
+
Block_Nominal:
|
|
26
|
+
factors: 1
|
|
27
|
+
ar_lag: 1
|
|
28
|
+
clock: m
|
|
29
|
+
Block_Labor:
|
|
30
|
+
factors: 1
|
|
31
|
+
ar_lag: 1
|
|
32
|
+
clock: m
|
|
33
|
+
clip_ar_coefficients: true
|
|
34
|
+
clock: m
|
|
35
|
+
idio_min_var: 1.0e-08
|
|
36
|
+
idio_rho0: 0.1
|
|
37
|
+
max_iter: 5000
|
|
38
|
+
nan_k: 3
|
|
39
|
+
nan_method: 2
|
|
40
|
+
regularization_scale: 1.0e-05
|
|
41
|
+
threshold: 1.0e-05
|
|
42
|
+
use_regularization: true
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
series_id: KOBFINAAF
|
|
2
|
+
series_name: FKI, Investment, All Industries, Actual
|
|
3
|
+
frequency: m
|
|
4
|
+
transformation: chg
|
|
5
|
+
blocks:
|
|
6
|
+
- Block_Global
|
|
7
|
+
- Block_Investment
|
|
8
|
+
nan_method: 2
|
|
9
|
+
standardization: true
|
|
10
|
+
units: Index
|
|
11
|
+
category: Survey, Bsnss
|
|
12
|
+
release: -5
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
series_id: KOBSIHAPR
|
|
2
|
+
series_name: BoK, BSI, Employment Conditions, All Industries, Actual
|
|
3
|
+
frequency: m
|
|
4
|
+
transformation: chg
|
|
5
|
+
blocks:
|
|
6
|
+
- Block_Global
|
|
7
|
+
- Block_Labor
|
|
8
|
+
nan_method: 2
|
|
9
|
+
standardization: true
|
|
10
|
+
units: Index
|
|
11
|
+
category: Survey, Bsnss
|
|
12
|
+
release: -5
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
series_id: KOBSIIMER
|
|
2
|
+
series_name: BoK, BSI, Facility Investment, Manufacturing, Forecast
|
|
3
|
+
frequency: m
|
|
4
|
+
transformation: chg
|
|
5
|
+
blocks:
|
|
6
|
+
- Block_Global
|
|
7
|
+
- Block_Investment
|
|
8
|
+
nan_method: 2
|
|
9
|
+
standardization: true
|
|
10
|
+
units: Index
|
|
11
|
+
category: Survey, Bsnss
|
|
12
|
+
release: -35
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
series_id: KOBSIIMPR
|
|
2
|
+
series_name: BoK, BSI, Facility Investment, Manufacturing, Actual
|
|
3
|
+
frequency: m
|
|
4
|
+
transformation: chg
|
|
5
|
+
blocks:
|
|
6
|
+
- Block_Global
|
|
7
|
+
- Block_Investment
|
|
8
|
+
nan_method: 2
|
|
9
|
+
standardization: true
|
|
10
|
+
units: Index
|
|
11
|
+
category: Survey, Bsnss
|
|
12
|
+
release: -5
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
series_id: KOBSIXMER
|
|
2
|
+
series_name: BoK, BSI, Export Sales Growth, Manufacturing, Forecast
|
|
3
|
+
frequency: m
|
|
4
|
+
transformation: chg
|
|
5
|
+
blocks:
|
|
6
|
+
- Block_Global
|
|
7
|
+
- Block_Export
|
|
8
|
+
nan_method: 2
|
|
9
|
+
standardization: true
|
|
10
|
+
units: Index
|
|
11
|
+
category: Survey, Bsnss
|
|
12
|
+
release: -35
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
series_id: KOBUSINVR
|
|
2
|
+
series_name: FKI, Investment, All Industries, Prospects
|
|
3
|
+
frequency: m
|
|
4
|
+
transformation: chg
|
|
5
|
+
blocks:
|
|
6
|
+
- Block_Global
|
|
7
|
+
- Block_Investment
|
|
8
|
+
nan_method: 2
|
|
9
|
+
standardization: true
|
|
10
|
+
units: Index
|
|
11
|
+
category: Survey, Bsnss
|
|
12
|
+
release: -35
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
series_id: KOCNFCONR
|
|
2
|
+
series_name: CSI, Composite Consumer Sentiment Index, Total
|
|
3
|
+
frequency: m
|
|
4
|
+
transformation: chg
|
|
5
|
+
blocks:
|
|
6
|
+
- Block_Global
|
|
7
|
+
- Block_Consumption
|
|
8
|
+
nan_method: 2
|
|
9
|
+
standardization: true
|
|
10
|
+
units: Index
|
|
11
|
+
category: Survey, Cnsmr
|
|
12
|
+
release: -5
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
series_id: KOCOBUSIR
|
|
2
|
+
series_name: BoK, BSI, Business Conditions, Composite Business Sentiment Index, KRW
|
|
3
|
+
frequency: m
|
|
4
|
+
transformation: chg
|
|
5
|
+
blocks:
|
|
6
|
+
- Block_Global
|
|
7
|
+
nan_method: 2
|
|
8
|
+
standardization: true
|
|
9
|
+
units: Index
|
|
10
|
+
category: Survey, Bsnss
|
|
11
|
+
release: -5
|