Skip to content

Allow disabling scaler for DL models #3251

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

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

shchur
Copy link
Contributor

@shchur shchur commented Apr 7, 2025

Issue #, if available:

Description of changes:

  • Currently, the incorrect type hint makes it impossible to set scaling=None for TiDE, PatchTST, DLinear and LagTST models. If user sets scaling=None, Pydantic will raise the ValidationError. This PR fixes this issue.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

@shchur shchur requested a review from lostella April 7, 2025 10:15
@lostella lostella added the bug fix (one of pr required labels) label Apr 8, 2025
Copy link
Contributor

@lostella lostella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @shchur!

@shchur shchur merged commit 716eded into awslabs:dev Apr 8, 2025
18 checks passed
@shchur shchur deleted the allow-disabling-scaler branch April 8, 2025 09:00
@lostella lostella added the pending v0.16.x backport This contains a fix to be backported to the v0.16.x branch label Apr 8, 2025
lostella pushed a commit to lostella/gluonts that referenced this pull request Apr 8, 2025
*Issue #, if available:*

*Description of changes:*
- Currently, the incorrect type hint makes it impossible to set
`scaling=None` for TiDE, PatchTST, DLinear and LagTST models. If user
sets `scaling=None`, Pydantic will raise the ValidationError. This PR
fixes this issue.


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.


**Please tag this pr with at least one of these labels to make our
release process faster:** BREAKING, new feature, bug fix, other change,
dev setup
@lostella lostella mentioned this pull request Apr 8, 2025
lostella added a commit that referenced this pull request Apr 8, 2025
*Description of changes:* backporting changes
- #3251 
- #3252
- #3254 


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.


**Please tag this pr with at least one of these labels to make our
release process faster:** BREAKING, new feature, bug fix, other change,
dev setup

---------

Co-authored-by: Oleksandr Shchur <[email protected]>
kashif pushed a commit to kashif/gluon-ts that referenced this pull request Apr 29, 2025
*Issue #, if available:*

*Description of changes:*
- Currently, the incorrect type hint makes it impossible to set
`scaling=None` for TiDE, PatchTST, DLinear and LagTST models. If user
sets `scaling=None`, Pydantic will raise the ValidationError. This PR
fixes this issue.


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.


**Please tag this pr with at least one of these labels to make our
release process faster:** BREAKING, new feature, bug fix, other change,
dev setup
@lostella lostella removed the pending v0.16.x backport This contains a fix to be backported to the v0.16.x branch label Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix (one of pr required labels)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants