single day fcast (#2756)

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
This commit is contained in:
martinb-bb
2022-10-11 03:33:45 -04:00
committed by GitHub
parent abf6aa6e40
commit 8615a0e1d0
2 changed files with 2 additions and 2 deletions

View File

@@ -442,7 +442,7 @@ class ForecastController(BaseController):
"--n-days",
action="store",
dest="n_days",
type=check_greater_than_one,
type=check_positive,
default=5,
help="prediction days.",
)

View File

@@ -509,7 +509,7 @@ def plot_forecast(
pred_label = f"{name} Forecast"
if past_covariates:
pred_label += " w/ past covs"
predicted_values.plot(label=pred_label, ax=ax, **quant_kwargs, color="#00AAFF")
predicted_values.plot(label=pred_label, **quant_kwargs, color="#00AAFF")
ax.set_title(
f"{name} for ${ticker_name} for next [{n_predict}] days (MAPE={precision:.2f}%)"
)