-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: Tbats and bats models #1243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of formatting changes, I think you may have different black settings that the rest of us - we'll need to figure that out
pycaret/tests/test_time_series.py
Outdated
def test_blend_model_predict(load_setup, load_models): | ||
|
||
ts_experiment = load_setup | ||
ts_models = load_models | ||
ts_weights = [uniform(0, 1) for _ in range(len(load_models))] | ||
ts_models = list(np.random.choice(load_models, 5)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Randomness is a bad idea for any sort of tests. We should provide a predefined list of models.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I agree, maybe the more critical ones, excluding random forest, tbats and bats as they take too long.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds fine to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI these are the ones I'm picking for test_blend_model
and test_blend_model_predict
_BLEND_TEST_MODELS = [
'naive',
'poly_trend',
'arima'
'auto_ets',
'lr_cds_dt',
'en_cds_dt',
'knn_cds_dt',
'dt_cds_dt',
'lightgbm_cds_dt'
]
2 baseline models, 2 classical statistical, two regress, 2 linear model based, 1 neighbors based, 1 tree based, 1 gradient boosting based
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like numpy is not imported in pycaret/utils.py
, can you fix? Aside from that LGTM
Describe the changes you've made
Major changes include:
TBATS
andBATS
models containers. linkTBATS
andBATS
examples in notebook. linkMinor changes include:
args
,tune_args
,tune_grid
andtune_distributions
are called through methods that can be accessed as attributes. link.UserWarning
andConvergenceWarning
in time series testing. linkAttributeError: 'float' object has no attribute 'round'
. linkType of change
Please delete options that are not relevant.
How Has This Been Tested?
No new tests needed.
Checklist: