Skip to content
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

Target variable prediction With time series: separate train and test set #228

Closed
Daisy8po opened this issue Mar 12, 2022 · 2 comments
Closed

Comments

@Daisy8po
Copy link

I need to predict a target variabile using a tcn model based on time series.

Now i follow your code of milk production but i need to consider in the X array all the features of my dataset as predictors, instead on the y i need only one features, my target.
how can i solve this?

Furthermore i have indeed two separated dataset, one for train and one for test, so i need to create from they my couple of x and y train, and x and y test.

I'm struggle on this. Thank you very much

@philipperemy
Copy link
Owner

@Daisy8po I'm not sure exactly what you mean by that. Can you detail a bit more, maybe give a concrete example with numbers?

@philipperemy
Copy link
Owner

The TCN layer input/output work exactly like an LSTM. If your X is multivariable and your Y univariate, you're looking at a Many-To-One regression problem. You can google "Keras LSTM many to one regression". And in any tutorial you can swap the LSTM class by the TCN class and it should work seamlessly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants