23 lines
651 B
Python
23 lines
651 B
Python
# forecasting/base.py
|
|
from typing import List, Dict, Any
|
|
import pandas as pd
|
|
import numpy as np
|
|
|
|
|
|
class ForecastProvider:
|
|
def get_forecasts(self,
|
|
historical_data: pd.DataFrame,
|
|
forecast_horizons: List[int],
|
|
optimization_horizon: int) -> Dict[int, np.ndarray]:
|
|
"""Returns forecasts for each requested horizon."""
|
|
pass
|
|
|
|
def get_required_lookback(self) -> int:
|
|
"""Returns the minimum number of historical data points required."""
|
|
pass
|
|
|
|
def get_forecast_horizons(self) -> List[int]:
|
|
"""Returns the list of forecast horizons."""
|
|
pass
|
|
|