Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Forecast works on 0.1.8 level but breaks at the 0.2.1 level #210

@GREENENVIRON123

Description

@GREENENVIRON123

Issue: With the included Storage_Utilization.csv series daily data points I ran the below forecast. This works fine at the 0.1.8 level but at the 0.2.1 level the forecast skips the week 1 of Actual data and starts the forecast at week 2., thereby producing a forecast that is 7 days short.

Observations:
(1) A "snaive_wday" is chosen as the model
(2) The input data ideally should have included the whole month of October 2023 but is missing the last week of October. At the 0.1.8. level this worked fine.

#See Attached files here:

#Input Series
Storage_Utilization.csv

#Resulting Forecast
Forecasted_DF.csv

                   #CODE Follows:

                   #Convert  Storage_Utilization.csv to Pandas Dataframe, name it pdf and ingest
                   #Forecast / extrapolate_years "fut" variable resolves to 182 days

                    get_forecast  =  forecast.run_forecast(pdf, extrapolate_years=fut, simplify_output=True, include_all_fits=False,      \
                                   find_outliers=False, l_model_trend = [forecast_models.model_linear, forecast_models.model_constant,  \
                                   forecast_models.model_exp, forecast_models.model_step, forecast_models.model_quasilinear],             \
                                   l_model_season = [forecast_models.model_null])

                    antlgh = len(get_forecast)
                    print("Forecast DF Length: " + str(antlgh))

                    #Output Forecasted_DF.csv for debugging
                    fct       = specify.output_path +  "Forecasted_DF" +  ".csv"
                    get_forecast.to_csv(fct, index=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions