GithubHelp home page GithubHelp logo

Comments (6)

Reza1317 avatar Reza1317 commented on June 22, 2024

Hi,

Could you provide more details?
What is the data frequency? daily?

Also can you provide the code you used to fir the model?

Thanks
Reza

from greykite.

akthammomani avatar akthammomani commented on June 22, 2024

Data frequency is monthly so I used freq="MS" as showing below:

Please let me know if additional information is needed.

metadata = MetadataParam(
time_col="ts",
value_col="y",
freq="MS"
)

forecaster = Forecaster()
result = forecaster.run_forecast_config(
df=df,
config=ForecastConfig(
model_template=ModelTemplateEnum.SILVERKITE.name,
forecast_horizon=12,
coverage=0.95,
metadata_param=metadata
)
)

snapshot of the data used:

ts datetime64[ns]
y float64

ts	                  y

0 2012-02-01 390000.0
1 2012-03-01 400000.0
2 2012-04-01 410000.0
3 2012-05-01 438000.0
4 2012-06-01 470000.0
... ... ...
106 2020-12-01 1030000.0
107 2021-01-01 1050000.0
108 2021-02-01 1085000.0
109 2021-03-01 1095000.0
110 2021-04-01 1125000.0

Regards,
Aktham

from greykite.

sayanpatra avatar sayanpatra commented on June 22, 2024

@akthammomani Silverkite tries to automatically introduce some amount of seasonality to the model. However, it is probably redundant for your use case. You can try to:

  1. Tune the seasonality (maybe even turn those off). Example here: https://github.com/linkedin/greykite/blob/master/docs/nbpages/tutorials/0100_forecast_tutorial.py (line 446)
  2. Use a different template e.g. SILVERKITE_WEEKLY. It was tuned for weekly data, however might produce a better model than SILVERKITE. More details here: https://github.com/linkedin/greykite/blob/master/docs/pages/stepbystep/0200_choose_template.rst

from greykite.

akthammomani avatar akthammomani commented on June 22, 2024

Thank you for the recommendations.

Both of the suggestions, produced same initial forecast, as shown below when seasonality is off:

seasonality_off

from greykite.

sayanpatra avatar sayanpatra commented on June 22, 2024

@akthammomani Can you try using SILVERKITE_EMPTY template with C(month) as a regressor, ct1 as growth, and autoregression with "auto" or lag 1

from greykite.

KaixuYang avatar KaixuYang commented on June 22, 2024

Close this issue as this thread has been inactive for many days.

from greykite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.