-
Notifications
You must be signed in to change notification settings - Fork 683
[ENH] Refactor the data_module
layer in ptf-v2
#1829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FYI @agobbifbk, @fkiraly , @PranavBhatP |
Hi, @phoeenniixx, after going through the code for the |
Interesting. I think it could be instructive if you try to draft this in a hacky way, but then we do not merge this but take this as a study motivating a clean refactor. |
Another point I noticed why finalizing #1811 is that you the loaders and data modules are not dataclass-like, i.e., some It is general best practice to make specification-like classes also dataclass-like, so I tried to move the processed attributes to private versions, but this causes test failures. So instead, I did that and then I added overwrites in "todo" sections in the My question would be, how much problems does it cause if we try to make the modules and loaders dataclass-like? Is it just a matter of changing tests, or would we be changing a public contract that you had in mind, @phoeenniixx? |
yes, ig all we need to do is just make some changes to tests and code and it will become dataclass-like :) |
I prepared it in a way that you just need to delete the "todo" blocks in each class - but I was worried it would break some implicit contract that you had in your head. It certainly breaks the tests. |
This PR makes the `data_modulel` dataclass-like See discussion in #1829
…1832) This PR makes the `data_modulel` dataclass-like See discussion in sktime#1829
…1832) This PR makes the `data_modulel` dataclass-like See discussion in sktime#1829
Is your feature request related to a problem? Please describe.
For now the
EncoderDecoderTimeSeriesDataModule
code is a little messy, that contains a nesteddataset
class (_ProcessedEncoderDecoderDataset
) and preprocessing and splitting functions. It makes the code a little hard to understand and maintain as we move to more complex implementationsDescribe the solution you'd like
We should make it more modular:
_ProcessedEncoderDecoderDataset
class out of thedata_module
class.data_module
classThis will make the code a little more clean and modular and easy to maintain.
Additional context
Please look at how the
tsl
handles these splitting and preprocessing using different modulesThe text was updated successfully, but these errors were encountered: