Skip to content

Commit 15df813

Browse files
authored
Release 1.3.0 (#1765)
Release PR for 1.3.0 * version number bump * changelog * scheduled deprecations
1 parent 8ff36c2 commit 15df813

File tree

4 files changed

+61
-38
lines changed

4 files changed

+61
-38
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
# Release Notes
22

3+
## v1.3.0
4+
5+
Feature and maintenance update.
6+
7+
### Highlights
8+
9+
* `python 3.13` support
10+
* `tide` model
11+
* bugfixes for TFT
12+
13+
### Enhancements
14+
15+
* [ENH] Tide model. by @Sohaib-Ahmed21 in https://github.com/sktime/pytorch-forecasting/pull/1734
16+
* [ENH] refactor `__init__` modules to no longer contain classes - preparatory commit by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1739
17+
* [ENH] refactor `__init__` modules to no longer contain classes by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1738
18+
* [ENH] extend package author attribution requirement in license to present by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1737
19+
* [ENH] linting tide model by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1742
20+
* [ENH] move tide model - part 1 by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1743
21+
* [ENH] move tide model - part 2 by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1744
22+
* [ENH] clean-up refactor of `TimeSeriesDataSet` by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1746
23+
24+
### Fixes
25+
26+
* [BUG] Bugfix when no exogenous variable is passed to TFT by @XinyuWuu in https://github.com/sktime/pytorch-forecasting/pull/1667
27+
* [BUG] Fix issue when training TFT model on mac M1 mps device. element 0 of tensors does not require grad and does not have a grad_fn by @fnhirwa in https://github.com/sktime/pytorch-forecasting/pull/1725
28+
29+
### Documentation
30+
31+
* [DOC] Fix the spelling error of holding by @xiaokongkong in https://github.com/sktime/pytorch-forecasting/pull/1719
32+
* [DOC] Updated documentation on `TimeSeriesDataSet.predict_mode` by @madprogramer in https://github.com/sktime/pytorch-forecasting/pull/1720
33+
* [DOC] General PR to improve docs by @julian-fong in https://github.com/sktime/pytorch-forecasting/pull/1705
34+
* [DOC] Correct argument for optimizer `ranger` in `Temporal Fusion Transformer` tutorial by @fnhirwa in https://github.com/sktime/pytorch-forecasting/pull/1724
35+
* [DOC] Fixed typo "monotone_constaints" by @Luke-Chesley in https://github.com/sktime/pytorch-forecasting/pull/1516
36+
* [DOC] minor fixes in documentation by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1763
37+
* [DOC] improve and add `tide` model to docs by @PranavBhatP in https://github.com/sktime/pytorch-forecasting/pull/1762
38+
39+
### Maintenance
40+
41+
* [MNT] update linting: limit line length to 88, add `isort` by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1740
42+
* [MNT] update nbeats/sub_modules.py to remove overhead in tensor creation by @d-schmitt in https://github.com/sktime/pytorch-forecasting/pull/1580
43+
* [MNT] Temporary fix for lint errors to conform to the recent changes in linting rules see #1749 by @fnhirwa in https://github.com/sktime/pytorch-forecasting/pull/1748
44+
* [MNT] python 3.13 support by @fkiraly in https://github.com/sktime/pytorch-forecasting/pull/1691
45+
46+
### All Contributors
47+
48+
@d-schmitt,
49+
@fkiraly,
50+
@fnhirwa,
51+
@julian-fong,
52+
@Luke-Chesley,
53+
@madprogramer,
54+
@PranavBhatP,
55+
@Sohaib-Ahmed21,
56+
@xiaokongkong,
57+
@XinyuWuu
58+
59+
360
## v1.2.0
461

562
Maintenance update, minor feature additions and bugfixes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "pytorch-forecasting"
33
readme = "README.md" # Markdown files are supported
4-
version = "1.2.0" # is being replaced automatically
4+
version = "1.3.0" # is being replaced automatically
55

66
authors = [
77
{name = "Jan Beitner"},

pytorch_forecasting/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PyTorch Forecasting package for timeseries forecasting with PyTorch.
33
"""
44

5-
__version__ = "1.2.0"
5+
__version__ = "1.3.0"
66

77
from pytorch_forecasting.data import (
88
EncoderNormalizer,

pytorch_forecasting/models/base_model.py

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def __init__(
485485
optimizer_params: Dict[str, Any] = None,
486486
monotone_constraints: Dict[str, int] = {},
487487
output_transformer: Callable = None,
488-
optimizer=None,
488+
optimizer="adam",
489489
):
490490
"""
491491
BaseModel for timeseries forecasting from which to inherit from
@@ -518,9 +518,7 @@ def __init__(
518518
optimizer (str): Optimizer, "ranger", "sgd", "adam", "adamw" or class name of optimizer in ``torch.optim``
519519
or ``pytorch_optimizer``.
520520
Alternatively, a class or function can be passed which takes parameters as first argument and
521-
a `lr` argument (optionally also `weight_decay`). Defaults to
522-
`"ranger" <https://pytorch-optimizers.readthedocs.io/en/latest/optimizer_api.html#ranger21>`_,
523-
if pytorch_optimizer is installed, otherwise "adam".
521+
a `lr` argument (optionally also `weight_decay`). Defaults to "adam".
524522
""" # noqa: E501
525523
if monotone_constraints is None:
526524
monotone_constraints = {}
@@ -529,38 +527,6 @@ def __init__(
529527
frame = inspect.currentframe()
530528
init_args = get_init_args(frame)
531529

532-
# TODO 1.2.0: remove warnings and change default optimizer to "adam"
533-
if init_args["optimizer"] is None:
534-
ptopt_in_env = "pytorch_optimizer" in _get_installed_packages()
535-
if ptopt_in_env:
536-
init_args["optimizer"] = "ranger"
537-
warnings.warn(
538-
"In pytorch-forecasting models, from version 1.2.0, "
539-
"the default optimizer will be 'adam', in order to "
540-
"minimize the number of dependencies in default"
541-
" parameter settings. Users who wish to ensure their"
542-
" code continues using 'ranger' as optimizer should ensure"
543-
" that pytorch_optimizer is installed, and set the optimizer "
544-
"parameter explicitly to 'ranger'.",
545-
stacklevel=2,
546-
)
547-
else:
548-
init_args["optimizer"] = "adam"
549-
warnings.warn(
550-
"In pytorch-forecasting models, on versions 1.1.X, "
551-
"the default optimizer defaults to 'adam', "
552-
"if pytorch_optimizer is not installed, "
553-
"otherwise it defaults to 'ranger' from pytorch_optimizer. "
554-
"From version 1.2.0, the default optimizer will be 'adam' "
555-
"regardless of whether pytorch_optimizer is installed, in order to "
556-
"minimize the number of dependencies in default parameter"
557-
" settings. Users who wish to ensure their code continues"
558-
" using 'ranger' as optimizer should ensure that pytorch_optimizer"
559-
" is installed, and set the optimizer "
560-
"parameter explicitly to 'ranger'.",
561-
stacklevel=2,
562-
)
563-
564530
self.save_hyperparameters(
565531
{
566532
name: val

0 commit comments

Comments
 (0)