-
Notifications
You must be signed in to change notification settings - Fork 612
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
Is using continuous and categorical features with ts_learner possible? If not, how can window_len in get_tabular_dls be set? #766
Comments
Sorry for the delay, @Awe42. I'd previously looked at the links you provided. While the |
Hi @CMobley7, @Awe42,
You may want to test it as well with your own data. |
@oguiza Have you created a tutorial around the new tsai.models.multimodal module? Or is there another update on this thread? |
My apologies for the dumb question. I have a target variable and continuous and categorical features in a dataframe. The categorical features are dynamic. I'd like to train a time series model, such as the
TSTPlus
, on a sliding window of these features that doesn't include the target. I plan to test this out with a categorical and continuous target, but the examples below assume a categorical target. Unfortunately, I'm struggling to ascertain how to do this.Using
apply_sliding_window
withwindow_len=20
andget_ts_dls
appears to get a data loader with the right window size but assumes continuous variables, whileget_tabular_ds
allows categorical variables but doesn't havewindow _len
parameters. I tried converting it to a dataloader withdls = to.dataloaders(bs=64, seq_len=20, seq_first=True)
, but I couldn't tell if this applied the desired window, and it caused the following error when runningI get the following error:
How can I accomplish what I wrote above, if possible? I've thought of some inelegant and nonideal solutions, such as using a ts_learner but dropping the categorical features entirely, using a tabular_learner without a window length, using a tabular_learner, but creating a function that takes window_len and appends the features to the original dataframe, such as feature_1(ts-1) to feature_X(ts-window_len). These are obviously nonideal solutions, and I'd rather use a ts_learner though I plan to test out tabular learners in the future; so, learning how to set a window_len in that would be awesome to know as well.
#231 seems to indicate that this is possible now, but I didn't see any example code.
The text was updated successfully, but these errors were encountered: