Replies: 2 comments 2 replies
-
As we discussed before, I like this refactoring! Let's try to keep the
This could make it easier for users to understand and clearer for them to contribute. Besides, there is a radical design: we could even put environments and their neural networks together inside the
This could be too much for refactoring in the current moment since |
Beta Was this translation helpful? Give feedback.
-
Note: we should also update the documentation accordingly |
Beta Was this translation helpful? Give feedback.
-
Env Embeddings
At the moment, the environment embeddings have been modularized such that they can be easily switched for different environments. The idea is that they should transform data from feature space to the hidden space ready to be processed. (docs)
The current structure is as follows:
Problem
However, this can easily get cluttered, especially with the addition of several new environments (each env has its own class inside of each file).
Moreover, this categorization can be suboptimal for models such as Non-autoregressive approaches (in which we mostly just have a
init
embedding, #122 ); also, for new multi-task learning problems such as Fei Liu and @Xi-L 's paper, it might be better to have separate files to handle environments (or their attribute compositions).Proposal
Divide and conquer the environment embeddings as follows:
In which each file has all the related env embeddings (i.e.
context
,dynamic
andinit
).Expected benefits:
What do you think? cc @cbhua @ngastzepeda
Beta Was this translation helpful? Give feedback.
All reactions