-
Notifications
You must be signed in to change notification settings - Fork 482
Features
leoniewgnr edited this page Jun 15, 2023
·
1 revision
First thoughts on features that should go into NeuralProphet
- Thoughts on categorical variables https://github.com/ourownstory/neural_prophet/discussions/139
-
USER INPUT: will need to pass
df
(as before) and a newdf_static
with columnsID | static_covariate_name_1 | … | static_covariate_name_n
-
CONFIG: NeuralProphet will have now a
config_static_covariates
which will be defined inconfigure.py
in aStaticCovariates
class. Keeping the same structure as the rest of components. - Dataset & Dataloader:
- In
time_dataset.py
we will add a new functionmake_static_covariates_features
similar to themake_regressors_features
- In the
TimeDataset
class:- We will have a new input variable
df_static
(*) - In the method
init_after_tabularized
, we add, after the lineself.meta = self.name
,self.static_covariates = make_static_covariates_features(df_static, config_static_covariates)
- In
__get_item__
we add a 4th output: static_covariates
- We will have a new input variable
After this, if I’m not missing anything, we should be fine to keep going having the static_covariates
accessible in the DataLoader
(*) Exactly the same as we do with df
, df_static
input will actually be df_static_i
(passed ID by ID).