-
Couldn't load subscription status.
- Fork 505
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_staticwith columnsID | static_covariate_name_1 | … | static_covariate_name_n -
CONFIG: NeuralProphet will have now a
config_static_covariateswhich will be defined inconfigure.pyin aStaticCovariatesclass. Keeping the same structure as the rest of components. - Dataset & Dataloader:
- In
time_dataset.pywe will add a new functionmake_static_covariates_featuressimilar to themake_regressors_features - In the
TimeDatasetclass:- 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).