facebook / facebook/prophet

prophet model and holiday issue in snowflake python sheet

Open
#2,509 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

I am getting below error :

Traceback (most recent call last): Worksheet, line 7, in File "prophet/__init__.py", line 8, in from prophet.forecaster import Prophet File "prophet/forecaster.py", line 17, in from prophet.make_holidays import get_holiday_names, make_holidays_df File "prophet/make_holidays.py", line 14, in import prophet.hdays as hdays_part2 File "prophet/hdays.py", line 925, in class TU(Turkey): File "holidays/registry.py", line 172, in __init__ raise TypeError( TypeError: This is a python-holidays entity loader class. For entity inheritance purposes please import a class you want to derive from directly: e.g., `from holidays.countries import Entity` or `from holidays.financial import Entity`.

Note: I have installed prophet 1.01 version and holidays 0.29 packages in snowflake snow park python sheet

Below is the code I am trying to use after importing prophet

`final_model = Prophet(holidays= kholiday,

changepoint_prior_scale= 0.3,

growth = 'linear',

holidays_prior_scale = 0.01,

n_changepoints = 10,

seasonality_mode = 'multiplicative',

seasonality_prior_scale= 90,

weekly_seasonality=True,

daily_seasonality = True,

yearly_seasonality = True,

interval_width=0.80

)

# final_model.add_country_holidays(country_name='US')

final_model.fit(rmr_df_test.reset_index().rename(columns={'MONTH_ID':'ds',

'REV_AMT_USDMTHLY':'y'}))`

I have my own kholiday dataframe , It is working in jupyter notebook at local system

Contributor guide

Open the contributing guide

Research direction

Start with the traceback through prophet/__init__.py, prophet/forecaster.py, prophet/make_holidays.py, prophet/hdays.py, and holidays/registry.py, using the reported Prophet 1.01 and holidays 0.29 versions in a Snowflake Python sheet. Compare that environment with the working local Jupyter setup and determine whether Prophet can import and fit with the supplied kholiday dataframe in Snowflake.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.