What are your thoughts on using latents for additional classification task
See original GitHub issueHi! I was wondering if you have thought about aggregating seasonal and growth latents for additional tasks (for example classification)? What are the possible ways to bring latents into single feature vector in your opinion? The easiest one would be just get the mean along layers and time dimensions but that seams to be too naive. Another idea I had it to use Cross Attention mechanic with single time query key to aggregate latents:
all_latents = torch.cat([latent_growths, latent_seasonals], dim=-1)
all_latents = rearrange(all_latents, 'b n l d -> (b l) n d')
# q = nn.Parameter(torch.randn(all_latents_dim))
q = repeat(q, 'd -> b 1 d', b = all_latents.shape[0])
agg_latent = cross_attention(query=q, context=all_latents)
agg_latent = rearrange(all_latents, '(b l) n d -> b (l n) d')
agg_latent = agg_latent.mean(dim=1) # may be we should have done it before cross attention?
Would be great to hear your thoughts
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15 (9 by maintainers)
Top Results From Across the Web
A Beginner's Guide to Latent Dirichlet Allocation(LDA)
Topic modeling is a method for unsupervised classification of documents, similar to clustering on numeric data, to find natural groups of items (topics) ......
Read more >Classify and generate: Using classification latent space ...
In this work, we propose a discriminative modelling framework that employs manipulated supervised latent representations to reconstruct and ...
Read more >Latent Space in Deep Learning - Baeldung
This latent space enables the model to perform the task (e.g., classification) using low-dimensional discriminative features instead of the ...
Read more >Multi-modal latent space inducing ensemble SVM classifier for ...
Finally, we obtain the more reliable classification results by using an ... A multi-task learning based feature selection method with ...
Read more >Data Augmentation via Latent Space Interpolation for Image ...
As a possible “recognition via generation” framework, it has potentials for several other classification tasks. Our experiments on the ILSVRC 2012, CIFAR-10 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
super thanx!
@inspirit done https://github.com/lucidrains/ETSformer-pytorch/blob/main/etsformer_pytorch/etsformer_pytorch.py#L373