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

Multiclass prediction #28

Open
TomKoester opened this issue Jul 15, 2024 · 6 comments
Open

Multiclass prediction #28

TomKoester opened this issue Jul 15, 2024 · 6 comments

Comments

@TomKoester
Copy link

Hey,
is it possible to do multi class prediction with this?

my data has the following format:
Timestamp Feature 1 ... Feature X Target 1 .. Target X

Can you give me a short example how the iTransformer knows what columns the Targetfeatures are?

Thanks

@TomKoester TomKoester changed the title Multilabel prediction Multiclass prediction Jul 15, 2024
@lucidrains
Copy link
Owner

@TomKoester does it even work for single class predictions? happy to build it if you can show me your results

@TomKoester
Copy link
Author

image
Here is my output.
I ve used a SNGP layer with a threshold to model the certainty for my different classes.
I just tried it with generated dummy data and gave it into the model:

image

@TomKoester
Copy link
Author

i forked my repo from the original thuml repo. Is it even possible to use the training classes for the multilabel classification? Or do you think im better with implementing this by myself?

@TomKoester
Copy link
Author

I've read the paper again. Did i understand it right that the iTransformer doesnt care about the input/target features as it predicts ALL features?

@TomKoester
Copy link
Author

Hey @lucidrains , its me again :)
i think i can modify the training process when i adjust the f_dim parameter in the exp_long_term_forecasting.py:
image

whats your thought on that?
it would ignore all predicted input features in training and just evaluate on the f_dim numbers of targets.

@satyrmipt
Copy link

satyrmipt commented Sep 6, 2024

@TomKoester, there are no features and targets. Inputs are separate time series and outputs are predictions for each one of them.

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

3 participants