mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-29 12:43:48 +00:00
single day fcast (#2756)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
This commit is contained in:
@@ -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.",
|
||||
)
|
||||
|
||||
@@ -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}%)"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user