dfm-python 0.5.55__tar.gz → 0.5.56__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.
Files changed (236) hide show
  1. {dfm_python-0.5.55 → dfm_python-0.5.56}/PKG-INFO +1 -1
  2. dfm_python-0.5.56/config/ddfm_exchange.yaml +38 -0
  3. dfm_python-0.5.56/config/ddfm_finance.yaml +31 -0
  4. {dfm_python-0.5.55 → dfm_python-0.5.56}/config/ddfm_macro.yaml +10 -19
  5. dfm_python-0.5.56/data/exchange_rate.csv +7589 -0
  6. {dfm_python-0.5.55 → dfm_python-0.5.56}/pyproject.toml +1 -1
  7. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/__init__.py +19 -49
  8. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/config/__init__.py +7 -5
  9. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/config/constants.py +145 -7
  10. dfm_python-0.5.56/src/dfm_python/config/schema/__init__.py +23 -0
  11. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/config/schema/model.py +29 -9
  12. dfm_python-0.5.56/src/dfm_python/config/schema/params.py +94 -0
  13. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/config/schema/results.py +126 -31
  14. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/config/types.py +54 -17
  15. dfm_python-0.5.56/src/dfm_python/dataset/__init__.py +21 -0
  16. dfm_python-0.5.56/src/dfm_python/dataset/ddfm_dataset.py +371 -0
  17. dfm_python-0.5.55/src/dfm_python/datamodule/dfm_dm.py → dfm_python-0.5.56/src/dfm_python/dataset/dfm_dataset.py +254 -91
  18. dfm_python-0.5.56/src/dfm_python/dataset/time.py +97 -0
  19. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/decoder/__init__.py +3 -1
  20. dfm_python-0.5.56/src/dfm_python/decoder/base.py +78 -0
  21. dfm_python-0.5.56/src/dfm_python/decoder/linear.py +72 -0
  22. dfm_python-0.5.56/src/dfm_python/decoder/mlp.py +128 -0
  23. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/encoder/__init__.py +9 -9
  24. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/encoder/pca.py +6 -5
  25. dfm_python-0.5.56/src/dfm_python/encoder/simple_autoencoder.py +292 -0
  26. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/functional/irf.py +4 -4
  27. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/logger/__init__.py +24 -8
  28. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/logger/inference_logger.py +56 -30
  29. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/logger/train_logger.py +86 -65
  30. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/models/__init__.py +2 -10
  31. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/models/base.py +52 -210
  32. dfm_python-0.5.56/src/dfm_python/models/ddfm.py +882 -0
  33. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/models/dfm.py +106 -181
  34. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/numeric/estimator.py +135 -26
  35. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/numeric/stability.py +78 -16
  36. dfm_python-0.5.56/src/dfm_python/numeric/statistic.py +353 -0
  37. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/numeric/validator.py +159 -7
  38. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/ssm/companion.py +4 -4
  39. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/ssm/kalman.py +2 -1
  40. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/utils/__init__.py +20 -38
  41. dfm_python-0.5.56/src/dfm_python/utils/checkpoint.py +295 -0
  42. dfm_python-0.5.56/src/dfm_python/utils/helper.py +110 -0
  43. dfm_python-0.5.56/src/dfm_python/utils/loss.py +100 -0
  44. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/utils/misc.py +77 -148
  45. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/config/schema/test_results.py +6 -40
  46. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/config/test_constants.py +102 -13
  47. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/config/test_types.py +6 -23
  48. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/conftest.py +13 -4
  49. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/dataset/test_dataloader.py +9 -4
  50. dfm_python-0.5.56/src/test/dataset/test_dataset.py +69 -0
  51. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/dataset/test_process.py +44 -40
  52. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/decoder/test_linear.py +6 -6
  53. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/encoder/test_base.py +0 -1
  54. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/encoder/test_simple_encoder.py +34 -57
  55. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/logger/test_inference_logger.py +1 -2
  56. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/logger/test_train_logger.py +3 -3
  57. dfm_python-0.5.56/src/test/models/test_base.py +161 -0
  58. dfm_python-0.5.56/src/test/models/test_ddfm.py +488 -0
  59. dfm_python-0.5.56/src/test/models/test_ddfm_batchnorm_placement.py +179 -0
  60. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/models/test_dfm.py +16 -26
  61. dfm_python-0.5.56/src/test/models/test_tensorflow_batchnorm_comparison.py +266 -0
  62. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/numeric/test_stability.py +3 -2
  63. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/utils/test_common.py +142 -5
  64. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/utils/test_helper.py +3 -32
  65. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/utils/test_metric.py +11 -1
  66. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/utils/test_misc.py +6 -6
  67. dfm_python-0.5.56/src/test/utils/test_tensor_utils.py +57 -0
  68. dfm_python-0.5.56/tutorial/tutorial_exchange_ddfm.py +330 -0
  69. {dfm_python-0.5.55 → dfm_python-0.5.56}/tutorial/tutorial_finance_ddfm.py +74 -52
  70. {dfm_python-0.5.55 → dfm_python-0.5.56}/tutorial/tutorial_finance_dfm.py +16 -17
  71. dfm_python-0.5.56/tutorial/tutorial_illness_ddfm.py +284 -0
  72. {dfm_python-0.5.55 → dfm_python-0.5.56}/tutorial/tutorial_macro_ddfm.py +58 -39
  73. {dfm_python-0.5.55 → dfm_python-0.5.56}/tutorial/tutorial_macro_dfm.py +19 -19
  74. {dfm_python-0.5.55 → dfm_python-0.5.56}/uv.lock +1 -1
  75. dfm_python-0.5.55/config/ddfm_finance.yaml +0 -35
  76. dfm_python-0.5.55/lightning_logs/ddfm/version_10/checkpoints/ddfm-epoch=00-train_loss=0.6495.ckpt +0 -0
  77. dfm_python-0.5.55/lightning_logs/ddfm/version_10/metrics.csv +0 -2
  78. dfm_python-0.5.55/lightning_logs/ddfm/version_11/checkpoints/ddfm-epoch=00-train_loss=0.8428.ckpt +0 -0
  79. dfm_python-0.5.55/lightning_logs/ddfm/version_11/metrics.csv +0 -2
  80. dfm_python-0.5.55/lightning_logs/ddfm/version_12/checkpoints/ddfm-epoch=00-train_loss=0.8959.ckpt +0 -0
  81. dfm_python-0.5.55/lightning_logs/ddfm/version_12/metrics.csv +0 -2
  82. dfm_python-0.5.55/lightning_logs/ddfm/version_13/checkpoints/ddfm-epoch=00-train_loss=0.7644.ckpt +0 -0
  83. dfm_python-0.5.55/lightning_logs/ddfm/version_13/metrics.csv +0 -2
  84. dfm_python-0.5.55/lightning_logs/ddfm/version_14/checkpoints/ddfm-epoch=00-train_loss=0.7935.ckpt +0 -0
  85. dfm_python-0.5.55/lightning_logs/ddfm/version_14/metrics.csv +0 -2
  86. dfm_python-0.5.55/lightning_logs/ddfm/version_15/checkpoints/ddfm-epoch=00-train_loss=0.6240.ckpt +0 -0
  87. dfm_python-0.5.55/lightning_logs/ddfm/version_15/metrics.csv +0 -2
  88. dfm_python-0.5.55/lightning_logs/ddfm/version_16/checkpoints/ddfm-epoch=00-train_loss=0.9689.ckpt +0 -0
  89. dfm_python-0.5.55/lightning_logs/ddfm/version_16/metrics.csv +0 -2
  90. dfm_python-0.5.55/lightning_logs/ddfm/version_17/checkpoints/ddfm-epoch=00-train_loss=0.9336.ckpt +0 -0
  91. dfm_python-0.5.55/lightning_logs/ddfm/version_17/metrics.csv +0 -2
  92. dfm_python-0.5.55/lightning_logs/ddfm/version_18/checkpoints/ddfm-epoch=00-train_loss=0.8481.ckpt +0 -0
  93. dfm_python-0.5.55/lightning_logs/ddfm/version_18/metrics.csv +0 -2
  94. dfm_python-0.5.55/lightning_logs/ddfm/version_19/checkpoints/ddfm-epoch=00-train_loss=0.6991.ckpt +0 -0
  95. dfm_python-0.5.55/lightning_logs/ddfm/version_19/metrics.csv +0 -2
  96. dfm_python-0.5.55/lightning_logs/ddfm/version_20/checkpoints/ddfm-epoch=00-train_loss=0.9289.ckpt +0 -0
  97. dfm_python-0.5.55/lightning_logs/ddfm/version_20/metrics.csv +0 -2
  98. dfm_python-0.5.55/lightning_logs/ddfm/version_21/checkpoints/ddfm-epoch=00-train_loss=0.8253.ckpt +0 -0
  99. dfm_python-0.5.55/lightning_logs/ddfm/version_21/metrics.csv +0 -2
  100. dfm_python-0.5.55/lightning_logs/ddfm/version_22/checkpoints/ddfm-epoch=00-train_loss=0.8933.ckpt +0 -0
  101. dfm_python-0.5.55/lightning_logs/ddfm/version_22/metrics.csv +0 -2
  102. dfm_python-0.5.55/lightning_logs/ddfm/version_5/checkpoints/ddfm-epoch=00-train_loss=0.8292.ckpt +0 -0
  103. dfm_python-0.5.55/lightning_logs/ddfm/version_5/metrics.csv +0 -2
  104. dfm_python-0.5.55/lightning_logs/ddfm/version_7/checkpoints/ddfm-epoch=00-train_loss=0.8216.ckpt +0 -0
  105. dfm_python-0.5.55/lightning_logs/ddfm/version_7/metrics.csv +0 -2
  106. dfm_python-0.5.55/lightning_logs/ddfm/version_8/checkpoints/ddfm-epoch=00-train_loss=0.6088.ckpt +0 -0
  107. dfm_python-0.5.55/lightning_logs/ddfm/version_8/metrics.csv +0 -2
  108. dfm_python-0.5.55/lightning_logs/ddfm/version_9/checkpoints/ddfm-epoch=00-train_loss=0.6595.ckpt +0 -0
  109. dfm_python-0.5.55/lightning_logs/ddfm/version_9/metrics.csv +0 -2
  110. dfm_python-0.5.55/lightning_logs/trainer/version_0/checkpoints/kdfm-epoch=01-train_loss=9750156656246784.0000.ckpt +0 -0
  111. dfm_python-0.5.55/lightning_logs/trainer/version_0/metrics.csv +0 -3
  112. dfm_python-0.5.55/lightning_logs/trainer/version_1/checkpoints/kdfm-epoch=00-train_loss=inf.ckpt +0 -0
  113. dfm_python-0.5.55/lightning_logs/trainer/version_1/metrics.csv +0 -2
  114. dfm_python-0.5.55/lightning_logs/trainer/version_10/checkpoints/kdfm-epoch=01-train_loss=0.2948.ckpt +0 -0
  115. dfm_python-0.5.55/lightning_logs/trainer/version_10/metrics.csv +0 -3
  116. dfm_python-0.5.55/lightning_logs/trainer/version_11/checkpoints/kdfm-epoch=01-train_loss=0.2337.ckpt +0 -0
  117. dfm_python-0.5.55/lightning_logs/trainer/version_11/metrics.csv +0 -3
  118. dfm_python-0.5.55/lightning_logs/trainer/version_12/checkpoints/kdfm-epoch=01-train_loss=0.2372.ckpt +0 -0
  119. dfm_python-0.5.55/lightning_logs/trainer/version_12/metrics.csv +0 -3
  120. dfm_python-0.5.55/lightning_logs/trainer/version_13/checkpoints/kdfm-epoch=01-train_loss=0.3323.ckpt +0 -0
  121. dfm_python-0.5.55/lightning_logs/trainer/version_13/metrics.csv +0 -3
  122. dfm_python-0.5.55/lightning_logs/trainer/version_14/checkpoints/kdfm-epoch=01-train_loss=0.0895.ckpt +0 -0
  123. dfm_python-0.5.55/lightning_logs/trainer/version_14/metrics.csv +0 -3
  124. dfm_python-0.5.55/lightning_logs/trainer/version_2/checkpoints/kdfm-epoch=00-train_loss=11076925440424673280.0000.ckpt +0 -0
  125. dfm_python-0.5.55/lightning_logs/trainer/version_2/metrics.csv +0 -3
  126. dfm_python-0.5.55/lightning_logs/trainer/version_3/checkpoints/kdfm-epoch=01-train_loss=3466010845203398656.0000.ckpt +0 -0
  127. dfm_python-0.5.55/lightning_logs/trainer/version_3/metrics.csv +0 -3
  128. dfm_python-0.5.55/lightning_logs/trainer/version_4/checkpoints/kdfm-epoch=01-train_loss=89213903044608.0000.ckpt +0 -0
  129. dfm_python-0.5.55/lightning_logs/trainer/version_4/metrics.csv +0 -3
  130. dfm_python-0.5.55/lightning_logs/trainer/version_5/checkpoints/kdfm-epoch=01-train_loss=1842788085222342656.0000.ckpt +0 -0
  131. dfm_python-0.5.55/lightning_logs/trainer/version_5/metrics.csv +0 -3
  132. dfm_python-0.5.55/lightning_logs/trainer/version_6/checkpoints/kdfm-epoch=00-train_loss=28594968117244854272.0000.ckpt +0 -0
  133. dfm_python-0.5.55/lightning_logs/trainer/version_6/metrics.csv +0 -3
  134. dfm_python-0.5.55/lightning_logs/trainer/version_7/checkpoints/kdfm-epoch=00-train_loss=inf.ckpt +0 -0
  135. dfm_python-0.5.55/lightning_logs/trainer/version_7/metrics.csv +0 -2
  136. dfm_python-0.5.55/lightning_logs/trainer/version_8/checkpoints/kdfm-epoch=01-train_loss=457264.4062.ckpt +0 -0
  137. dfm_python-0.5.55/lightning_logs/trainer/version_8/metrics.csv +0 -3
  138. dfm_python-0.5.55/lightning_logs/trainer/version_9/checkpoints/kdfm-epoch=01-train_loss=0.3095.ckpt +0 -0
  139. dfm_python-0.5.55/lightning_logs/trainer/version_9/metrics.csv +0 -3
  140. dfm_python-0.5.55/src/dfm_python/config/schema/__init__.py +0 -17
  141. dfm_python-0.5.55/src/dfm_python/datamodule/__init__.py +0 -31
  142. dfm_python-0.5.55/src/dfm_python/datamodule/base.py +0 -618
  143. dfm_python-0.5.55/src/dfm_python/datamodule/ddfm_dm.py +0 -276
  144. dfm_python-0.5.55/src/dfm_python/datamodule/kdfm_dm.py +0 -180
  145. dfm_python-0.5.55/src/dfm_python/dataset/__init__.py +0 -60
  146. dfm_python-0.5.55/src/dfm_python/dataset/dataloader.py +0 -142
  147. dfm_python-0.5.55/src/dfm_python/dataset/dataset.py +0 -158
  148. dfm_python-0.5.55/src/dfm_python/dataset/process.py +0 -435
  149. dfm_python-0.5.55/src/dfm_python/decoder/linear.py +0 -68
  150. dfm_python-0.5.55/src/dfm_python/decoder/mlp.py +0 -137
  151. dfm_python-0.5.55/src/dfm_python/encoder/simple_encoder.py +0 -474
  152. dfm_python-0.5.55/src/dfm_python/encoder/variational_encoder.py +0 -0
  153. dfm_python-0.5.55/src/dfm_python/models/ddfm.py +0 -1888
  154. dfm_python-0.5.55/src/dfm_python/models/kdfm.py +0 -1968
  155. dfm_python-0.5.55/src/dfm_python/trainer/__init__.py +0 -683
  156. dfm_python-0.5.55/src/dfm_python/trainer/ddfm.py +0 -656
  157. dfm_python-0.5.55/src/dfm_python/trainer/dfm.py +0 -154
  158. dfm_python-0.5.55/src/dfm_python/trainer/kdfm.py +0 -137
  159. dfm_python-0.5.55/src/dfm_python/utils/common.py +0 -403
  160. dfm_python-0.5.55/src/dfm_python/utils/helper.py +0 -200
  161. dfm_python-0.5.55/src/dfm_python/utils/tensor_utils.py +0 -199
  162. dfm_python-0.5.55/src/test/datamodule/__init__.py +0 -2
  163. dfm_python-0.5.55/src/test/datamodule/test_base.py +0 -109
  164. dfm_python-0.5.55/src/test/datamodule/test_ddfm_dm.py +0 -27
  165. dfm_python-0.5.55/src/test/datamodule/test_dfm_dm.py +0 -26
  166. dfm_python-0.5.55/src/test/datamodule/test_kdfm_dm.py +0 -27
  167. dfm_python-0.5.55/src/test/dataset/test_dataset.py +0 -53
  168. dfm_python-0.5.55/src/test/encoder/test_variational_encoder.py +0 -27
  169. dfm_python-0.5.55/src/test/functional/test_irf.py +0 -132
  170. dfm_python-0.5.55/src/test/functional/test_krylov.py +0 -39
  171. dfm_python-0.5.55/src/test/models/test_base.py +0 -385
  172. dfm_python-0.5.55/src/test/models/test_ddfm.py +0 -232
  173. dfm_python-0.5.55/src/test/models/test_kdfm.py +0 -411
  174. dfm_python-0.5.55/src/test/trainer/__init__.py +0 -2
  175. dfm_python-0.5.55/src/test/trainer/test_ddfm.py +0 -34
  176. dfm_python-0.5.55/src/test/trainer/test_dfm.py +0 -39
  177. dfm_python-0.5.55/src/test/trainer/test_kdfm.py +0 -39
  178. dfm_python-0.5.55/src/test/utils/test_tensor_utils.py +0 -175
  179. dfm_python-0.5.55/tutorial/tutorial_finance_kdfm.py +0 -285
  180. dfm_python-0.5.55/tutorial/tutorial_macro_kdfm.py +0 -310
  181. {dfm_python-0.5.55 → dfm_python-0.5.56}/.git +0 -0
  182. {dfm_python-0.5.55 → dfm_python-0.5.56}/.gitignore +0 -0
  183. {dfm_python-0.5.55 → dfm_python-0.5.56}/.python-version +0 -0
  184. {dfm_python-0.5.55 → dfm_python-0.5.56}/LICENSE +0 -0
  185. {dfm_python-0.5.55 → dfm_python-0.5.56}/MANIFEST.in +0 -0
  186. {dfm_python-0.5.55 → dfm_python-0.5.56}/README.md +0 -0
  187. {dfm_python-0.5.55 → dfm_python-0.5.56}/config/dfm_finance.yaml +0 -0
  188. {dfm_python-0.5.55 → dfm_python-0.5.56}/config/dfm_macro.yaml +0 -0
  189. {dfm_python-0.5.55 → dfm_python-0.5.56}/data/finance.csv +0 -0
  190. {dfm_python-0.5.55 → dfm_python-0.5.56}/data/macro.csv +0 -0
  191. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/config/adapter.py +0 -0
  192. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/config/schema/block.py +0 -0
  193. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/encoder/base.py +0 -0
  194. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/functional/__init__.py +0 -0
  195. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/functional/dfm_block.py +0 -0
  196. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/functional/em.py +0 -0
  197. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/functional/krylov.py +0 -0
  198. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/logger/logger.py +0 -0
  199. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/numeric/builder.py +0 -0
  200. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/numeric/tent.py +0 -0
  201. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/ssm/__init__.py +0 -0
  202. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/ssm/arma.py +0 -0
  203. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/ssm/structural.py +0 -0
  204. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/utils/errors.py +0 -0
  205. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/utils/metric.py +0 -0
  206. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/dfm_python/utils/validation.py +0 -0
  207. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/__init__.py +0 -0
  208. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/config/__init__.py +0 -0
  209. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/config/schema/__init__.py +0 -0
  210. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/config/schema/test_block.py +0 -0
  211. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/config/schema/test_model.py +0 -0
  212. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/config/test_adapter.py +0 -0
  213. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/dataset/__init__.py +0 -0
  214. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/decoder/__init__.py +0 -0
  215. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/decoder/test_mlp.py +0 -0
  216. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/encoder/__init__.py +0 -0
  217. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/encoder/test_pca.py +0 -0
  218. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/functional/__init__.py +0 -0
  219. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/functional/test_dfm_block.py +0 -0
  220. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/functional/test_em.py +0 -0
  221. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/logger/__init__.py +0 -0
  222. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/logger/test_logger.py +0 -0
  223. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/models/__init__.py +0 -0
  224. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/numeric/__init__.py +0 -0
  225. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/numeric/test_builder.py +0 -0
  226. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/numeric/test_estimator.py +0 -0
  227. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/numeric/test_tent.py +0 -0
  228. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/numeric/test_validator.py +0 -0
  229. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/ssm/__init__.py +0 -0
  230. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/ssm/test_arma.py +0 -0
  231. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/ssm/test_companion.py +0 -0
  232. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/ssm/test_kalman.py +0 -0
  233. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/ssm/test_structural.py +0 -0
  234. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/utils/__init__.py +0 -0
  235. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/utils/test_errors.py +0 -0
  236. {dfm_python-0.5.55 → dfm_python-0.5.56}/src/test/utils/test_validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dfm-python
3
- Version: 0.5.55
3
+ Version: 0.5.56
4
4
  Summary: Dynamic Factor Model (DFM) estimation and forecasting 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
@@ -0,0 +1,38 @@
1
+ # DDFM Configuration for Exchange Rate Dataset
2
+ # Based on original TensorFlow DDFM implementation (DDFM/run_exchange_rate_original.py)
3
+ # Data: 8 exchange rate series (AUD_USD, GBP_USD, CAD_USD, CHF_USD, CNY_USD, JPY_USD, SGD_USD, NZD_USD)
4
+ # Clock: Daily (d) - all series are daily frequency
5
+ # Date range: 1990-01-01 to 2010-10-10
6
+
7
+ # Neural Network Architecture (matching original TensorFlow DDFM)
8
+ encoder_layers: [16, 4] # Hidden layers: [16] -> latent: 4 (matching original structure_encoder=(16, 4))
9
+ activation: relu # Matching original link='relu'
10
+ use_batch_norm: true # Matching original batch_norm=True
11
+
12
+ # Training Parameters (matching original TensorFlow DDFM)
13
+ learning_rate: 0.005 # Matching original learning_rate=0.005
14
+ n_mc_samples: 10 # Number of MC samples per MCMC iteration (matching original epochs=10)
15
+ window_size: 100 # Time-step batch size for training (matching original batch_size=100)
16
+
17
+ # MCMC/Iterative Parameters (matching original TensorFlow DDFM)
18
+ max_epoch: 200 # Maximum MCMC iterations (matching original max_iter=200)
19
+ tolerance: 0.0005 # Convergence tolerance (matching original tolerance=0.0005)
20
+ disp: 10 # Display frequency for training progress (matching original disp=10)
21
+ seed: 3 # Random seed (matching original seed=3)
22
+
23
+ # Data Handling (used by Dataset, not Model)
24
+ clock: d # Daily clock frequency (all series are daily)
25
+ target_scaler: null # No target scaler - data should be pre-scaled before passing to Dataset
26
+
27
+ # Frequency mapping (all series are daily)
28
+ # If not specified, all series use clock frequency (d)
29
+ # Format: {"series_name": "frequency_code"}
30
+ # frequency:
31
+ # AUD_USD: d
32
+ # GBP_USD: d
33
+ # CAD_USD: d
34
+ # CHF_USD: d
35
+ # CNY_USD: d
36
+ # JPY_USD: d
37
+ # SGD_USD: d
38
+ # NZD_USD: d
@@ -0,0 +1,31 @@
1
+ # DDFM Configuration for Finance Dataset
2
+ # Data: Finance data with market_forward_excess_returns as target variable
3
+ # Clock: Monthly (m) - all series are monthly frequency
4
+
5
+ # Neural Network Architecture
6
+ encoder_layers: [64, 32, 2] # Hidden layers: [64, 32] -> latent: 2 factors
7
+ activation: relu # Activation function: 'tanh', 'relu', 'sigmoid'
8
+ use_batch_norm: true # Use batch normalization
9
+
10
+ # Training Parameters
11
+ learning_rate: 0.001 # Learning rate for optimizer
12
+ n_mc_samples: 1 # Number of MC samples per MCMC iteration (reduced for faster execution)
13
+ window_size: 100 # Time-step batch size for training
14
+
15
+ # MCMC/Iterative Parameters
16
+ max_epoch: 200 # Maximum MCMC iterations
17
+ tolerance: 0.0005 # Convergence tolerance
18
+ disp: 10 # Display frequency for training progress
19
+ seed: null # Random seed (None uses default)
20
+
21
+ # Data Handling (used by Dataset, not Model)
22
+ clock: m # Monthly clock frequency
23
+ target_scaler: standard # Scaler for target series: 'standard', 'robust', 'minmax', 'maxabs', 'quantile', or null
24
+
25
+ # Frequency mapping (optional)
26
+ # If not specified, all series use clock frequency
27
+ # Format: {"series_name": "frequency_code"}
28
+ # frequency:
29
+ # gdp: q
30
+ # unemployment: m
31
+ # interest_rate: m
@@ -5,32 +5,24 @@
5
5
  # Target: KOEQUIPTE (Investment, Equipment, Estimation, SA)
6
6
 
7
7
  # Neural Network Architecture
8
- encoder_layers:
9
- - 64
10
- - 32
11
- num_factors: 2 # Number of factors (DDFM does not use block structure)
8
+ encoder_layers: [64, 32, 2] # Hidden layers: [64, 32] -> latent: 2 factors
12
9
  activation: relu # Activation function: 'tanh', 'relu', 'sigmoid'
13
- use_batch_norm: true
10
+ use_batch_norm: true # Use batch normalization
14
11
 
15
12
  # Training Parameters
16
- learning_rate: 0.001
17
- epochs: 100
18
- batch_size: 100 # DDFM-specific default batch size
19
- factor_order: 1 # VAR lag order for factor dynamics (1 or 2)
20
-
21
- # Idiosyncratic Components
22
- use_idiosyncratic: true
23
- min_obs_idio: 5 # Minimum observations for idio AR(1) estimation
13
+ learning_rate: 0.001 # Learning rate for optimizer
14
+ n_mc_samples: 1 # Number of MC samples per MCMC iteration (reduced for faster execution)
15
+ window_size: 100 # Time-step batch size for training
24
16
 
25
17
  # MCMC/Iterative Parameters
26
- max_iter: 200 # Maximum MCMC iterations for iterative factor extraction
27
- tolerance: 0.0005 # Convergence tolerance for MCMC iterations
18
+ max_epoch: 200 # Maximum MCMC iterations
19
+ tolerance: 0.0005 # Convergence tolerance
28
20
  disp: 10 # Display frequency for training progress
21
+ seed: null # Random seed (None uses default)
29
22
 
30
- # Data Handling
23
+ # Data Handling (used by Dataset, not Model)
31
24
  clock: w # Weekly clock frequency (base frequency for latent factors)
32
- target_scaler: standard # Scaler for target series only: 'standard', 'robust', 'minmax', 'maxabs', 'quantile', or null (no scaling)
33
- # Note: nan_method and nan_k are internal constants (not user-configurable)
25
+ target_scaler: standard # Scaler for target series: 'standard', 'robust', 'minmax', 'maxabs', 'quantile', or null
34
26
 
35
27
  # Frequency mapping for mixed-frequency macro data
36
28
  # Clock is weekly (w), so monthly series are slower frequency
@@ -60,4 +52,3 @@ frequency:
60
52
  KORCNST: w # Retail, Construction (weekly)
61
53
  KORMACH: w # Retail, Machinery (weekly)
62
54
  KOROCOINF: w # Retail, Other Consumer & Information (weekly)
63
-