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.
- {tempdisagg-0.2.4/tempdisagg.egg-info → tempdisagg-0.2.5}/PKG-INFO +1 -1
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/pyproject.toml +1 -1
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/__init__.py +2 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_ensemble.py +11 -2
- {tempdisagg-0.2.4 → tempdisagg-0.2.5/tempdisagg.egg-info}/PKG-INFO +1 -1
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/LICENSE +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/README.md +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/setup.cfg +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/core/__init__.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/core/numeric_utils.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/core/rho_optimizer.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/core/temporal_aggregator.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/__init__.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/models_handler.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_adjuster.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_base.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_core.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_fitter.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_model.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_summary.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/model/tempdisagg_visualizer.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/postprocessing/__init__.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/postprocessing/ensemble_prediction.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/postprocessing/post_estimation.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/__init__.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/conversion_matrix_builder.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/disagg_input_preparer.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/input_preprocessor.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/preprocessing/timeseries_completer.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/utils/__init__.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg/utils/logging_utils.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg.egg-info/SOURCES.txt +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg.egg-info/dependency_links.txt +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg.egg-info/requires.txt +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tempdisagg.egg-info/top_level.txt +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tests/test_numeric_utils.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tests/test_prediction.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tests/test_rho_optimizer.py +0 -0
- {tempdisagg-0.2.4 → tempdisagg-0.2.5}/tests/test_summary_visualize.py +0 -0
|
@@ -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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|