-
Notifications
You must be signed in to change notification settings - Fork 682
[BUG] TimeseriesDataset _set_target_normalizer no longer functions as expected for a setter function. #1817
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
_set_target_normalizer now also is missing type hinting |
Hey @arizzuto
Any specific example where this change breaks your desired implementation? About the type hints, some methods don't have those. I am going to open up a PR, adding those😊 |
@arizzuto, sorry to hear that! Generally, it is good practice to build extensions only using public methods. private methods, e.g., that is, the ones starting with Now I also recognize that the current The lack of extensibility and customizability is one of the primary reasons why we want to rework the API, making extension and reuse much easier, while remaining downwards compatible as possible with the public interfaces. See here: Your particpiation and pointers, from the experience of trying to extend and modify, would be much appreciated! E.g., what extension did you try to write, and what are your requirements? |
Hi @fkiraly, totally understand, I am digging into the cogs more than intended. Having said that, keeping the setting in the setter function is also generally common convention in python and elsewhere. It's a minor point overall though, and an easy fix on the extenders side. As far as my use case goes, I've written a TimeSeriesDataSet extension that can take actuals on the encoder side and forecasts on the decoder side (as is often the case in many real world contexts with exogenous variables) and handles the mapping of prediction time index to the appropriate forecast. |
Interesting - would you be able to share in a draft PR so we can analyze the code and suggest ways to include it in the rework? |
Describe the bug
Latest release has breaking changes for people building extensions to TimeseriesDataset. Because one of the internal setting fuctions no longer behaves as would be expeceted.
The function _set_target_normalizer() now returns the normalizer rather than setting the underlying attribute. GIven the name of the function and how all the other set_something functions work, this is a bit of an antipattern.
The text was updated successfully, but these errors were encountered: