tempdisagg 0.2.4__tar.gz → 0.2.5__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 (39) hide show
  1. {tempdisagg-0.2.4/tempdisagg.egg-info → tempdisagg-0.2.5}/PKG-INFO +1 -1
  2. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/pyproject.toml +1 -1
  3. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/__init__.py +2 -0
  4. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_ensemble.py +11 -2
  5. {tempdisagg-0.2.4 → tempdisagg-0.2.5/tempdisagg.egg-info}/PKG-INFO +1 -1
  6. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/LICENSE +0 -0
  7. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/README.md +0 -0
  8. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/setup.cfg +0 -0
  9. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/core/__init__.py +0 -0
  10. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/core/numeric_utils.py +0 -0
  11. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/core/rho_optimizer.py +0 -0
  12. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/core/temporal_aggregator.py +0 -0
  13. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/__init__.py +0 -0
  14. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/models_handler.py +0 -0
  15. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_adjuster.py +0 -0
  16. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_base.py +0 -0
  17. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_core.py +0 -0
  18. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_fitter.py +0 -0
  19. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_model.py +0 -0
  20. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_summary.py +0 -0
  21. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_visualizer.py +0 -0
  22. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/postprocessing/__init__.py +0 -0
  23. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/postprocessing/ensemble_prediction.py +0 -0
  24. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/postprocessing/post_estimation.py +0 -0
  25. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/__init__.py +0 -0
  26. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/conversion_matrix_builder.py +0 -0
  27. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/disagg_input_preparer.py +0 -0
  28. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/input_preprocessor.py +0 -0
  29. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/timeseries_completer.py +0 -0
  30. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/utils/__init__.py +0 -0
  31. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/utils/logging_utils.py +0 -0
  32. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg.egg-info/SOURCES.txt +0 -0
  33. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg.egg-info/dependency_links.txt +0 -0
  34. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg.egg-info/requires.txt +0 -0
  35. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg.egg-info/top_level.txt +0 -0
  36. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tests/test_numeric_utils.py +0 -0
  37. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tests/test_prediction.py +0 -0
  38. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tests/test_rho_optimizer.py +0 -0
  39. {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tests/test_summary_visualize.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tempdisagg
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Temporal disaggregation models in Python
5
5
  Author-email: Jaime Vera-Jaramillo <jaimevera1107@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tempdisagg"
7
- version = "0.2.4"
7
+ version = "0.2.5"
8
8
  description = "Temporal disaggregation models in Python"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -26,3 +26,5 @@ __all__ = [
26
26
  "EnsemblePrediction",
27
27
  "TemporalAggregator",
28
28
  ]
29
+
30
+ __version__= "0.2.5"
@@ -89,7 +89,7 @@ class EnsemblePredictor:
89
89
  df : pandas.DataFrame
90
90
  Input DataFrame with target and indicators.
91
91
  methods : list or None
92
- List of methods to include in the ensemble.
92
+ List of methods to include in the ensemble. If None, use all available.
93
93
 
94
94
  OUTPUT
95
95
  y_hat : np.ndarray
@@ -106,6 +106,15 @@ class EnsemblePredictor:
106
106
  self.df_full = df_full
107
107
  self.padding_info = padding_info
108
108
 
109
+ # Load default methods if none provided
110
+ if methods is None:
111
+ methods = [
112
+ "ols", "denton", "chow-lin", "litterman", "fernandez", "fast",
113
+ "chow-lin-opt", "litterman-opt", "chow-lin-ecotrim", "chow-lin-quilis",
114
+ "denton-opt", "denton-colette", "uniform"
115
+ ]
116
+ self.logger.info(f"No methods specified. Using all available: {methods}")
117
+
109
118
  # Initialize ensemble engine
110
119
  self.ensemble = EnsemblePrediction(
111
120
  model_class=BaseDisaggModel,
@@ -143,7 +152,7 @@ class EnsemblePredictor:
143
152
 
144
153
  self.logger.info("Ensemble fitting completed.")
145
154
  return y_hat, padding_info, df_full
146
-
155
+
147
156
  def predict(self):
148
157
  """
149
158
  Return the ensemble prediction.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tempdisagg
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Temporal disaggregation models in Python
5
5
  Author-email: Jaime Vera-Jaramillo <jaimevera1107@gmail.com>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes