-
I found an implementation of PeriodicEmbeddings in this library, but I don't know how to use it in FFTransformer. This problem has been bothering me for a few days, can you give me some advice?@Yura52 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @leiyu2023 ! Currently, it is not possible. The main branch contains many things (including If you are ready to accept the risks of using unfinished work, then you can take inspiration from this function and replace
|
Beta Was this translation helpful? Give feedback.
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 withpip 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 purePeriodicEmbeddings
with Transformer, becausePeriodicEmbeddings
encodes only the "feature value" and does not encode the "feature index", which is crucial for Transformer-like models. How to…