Spaces:
Running
Running
Historic average instead of historical
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import tempfile
|
|
| 5 |
|
| 6 |
from statsforecast import StatsForecast
|
| 7 |
from statsforecast.models import (
|
| 8 |
-
|
| 9 |
Naive,
|
| 10 |
SeasonalNaive,
|
| 11 |
WindowAverage,
|
|
@@ -81,7 +81,7 @@ def run_forecast(
|
|
| 81 |
model_aliases = []
|
| 82 |
|
| 83 |
if use_historical_avg:
|
| 84 |
-
models.append(
|
| 85 |
model_aliases.append('historical_average')
|
| 86 |
if use_naive:
|
| 87 |
models.append(Naive(alias='naive'))
|
|
|
|
| 5 |
|
| 6 |
from statsforecast import StatsForecast
|
| 7 |
from statsforecast.models import (
|
| 8 |
+
HistoricAverage,
|
| 9 |
Naive,
|
| 10 |
SeasonalNaive,
|
| 11 |
WindowAverage,
|
|
|
|
| 81 |
model_aliases = []
|
| 82 |
|
| 83 |
if use_historical_avg:
|
| 84 |
+
models.append(HistoricAverage(alias='historical_average'))
|
| 85 |
model_aliases.append('historical_average')
|
| 86 |
if use_naive:
|
| 87 |
models.append(Naive(alias='naive'))
|