Skip to content

How to use PeriodicEmbeddings in rtdl.FTTransformer #53

Answered by Yura52
leiyu2023 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @leiyu2023 !

Currently, it is not possible. The main branch contains many things (including PeriodicEmbeddings) that are work-in-progress and are not a part of the package that you get with pip install rtdl. Currently, I am not working on this project, and I don't know whether it will change.

If you are ready to accept the risks of using unfinished work, then you can take inspiration from this function and replace LinearEmbeddings with embeddings of your choice. IMPORTANTLY, you should not use pure PeriodicEmbeddings with Transformer, because PeriodicEmbeddings encodes only the "feature value" and does not encode the "feature index", which is crucial for Transformer-like models. How to…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leiyu2023
Comment options

Answer selected by leiyu2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants