dfm-python 0.2.9__py3-none-any.whl → 0.3.0__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_python/__init__.py CHANGED
@@ -50,11 +50,11 @@ Example (Low-level API - For advanced usage):
50
50
  For detailed documentation, see the README.md file and the tutorial notebooks/scripts.
51
51
  """
52
52
 
53
- __version__ = "0.2.9"
53
+ __version__ = "0.3.0"
54
54
 
55
55
  from .config import (
56
56
  DFMConfig, SeriesConfig, BlockConfig, Params, DEFAULT_GLOBAL_BLOCK_NAME,
57
- ConfigSource, YamlSource, DictSource, SpecCSVSource, HydraSource,
57
+ ConfigSource, YamlSource, DictSource, HydraSource,
58
58
  MergedConfigSource, make_config_source,
59
59
  )
60
60
  from .data import transform_data
@@ -62,13 +62,13 @@ from .dfm import DFMResult
62
62
  from .core import calculate_rmse, diagnose_series, print_series_diagnosis
63
63
  from .dfm import DFMCore # Core DFM class from dfm.py
64
64
  from .kalman import run_kf, skf, fis, miss_data
65
- from .news import update_nowcast, news_dfm, para_const
65
+ from .nowcast import Nowcast, para_const, NowcastResult, NewsDecompResult, BacktestResult
66
66
 
67
67
  # Import high-level API (extends core DFM with convenience methods)
68
68
  # Import module-level convenience functions directly from api.py to avoid duplication
69
69
  from .api import (
70
70
  DFM, _dfm_instance, from_yaml, from_spec, from_spec_df, from_dict,
71
- load_config, load_data, train, predict, plot, reset
71
+ load_config, load_data, load_pickle, train, predict, plot, reset
72
72
  )
73
73
 
74
74
  # Expose properties as module-level attributes
@@ -97,15 +97,17 @@ def get_original_data():
97
97
 
98
98
  __all__ = [
99
99
  # Core classes
100
- 'DFMConfig', 'SeriesConfig', 'BlockConfig', 'Params', 'DFM', 'DFMCore',
100
+ 'DFMConfig', 'SeriesConfig', 'BlockConfig', 'Params', 'DFM', 'DFMCore', 'Nowcast',
101
+ # Nowcast result classes
102
+ 'NowcastResult', 'NewsDecompResult', 'BacktestResult',
101
103
  # Constants
102
104
  'DEFAULT_GLOBAL_BLOCK_NAME',
103
105
  # Config sources
104
- 'ConfigSource', 'YamlSource', 'DictSource', 'SpecCSVSource', 'HydraSource',
106
+ 'ConfigSource', 'YamlSource', 'DictSource', 'HydraSource',
105
107
  'MergedConfigSource', 'make_config_source',
106
108
  # High-level API (module-level - recommended)
107
109
  'load_config',
108
- 'load_data', 'train', 'predict', 'plot', 'reset',
110
+ 'load_data', 'load_pickle', 'train', 'predict', 'plot', 'reset',
109
111
  'get_config', 'get_data', 'get_time', 'get_result', 'get_original_data',
110
112
  # Convenience constructors (cleaner API)
111
113
  'from_yaml', 'from_spec', 'from_spec_df', 'from_dict',
@@ -113,6 +115,6 @@ __all__ = [
113
115
  'transform_data',
114
116
  'DFMResult', 'calculate_rmse', 'diagnose_series', 'print_series_diagnosis',
115
117
  'run_kf', 'skf', 'fis', 'miss_data',
116
- 'update_nowcast', 'news_dfm', 'para_const',
118
+ 'para_const', # Internal utility, kept for backward compatibility
117
119
  ]
118
120