question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What are your thoughts on using latents for additional classification task

See original GitHub issue

Hi! 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found