-
Notifications
You must be signed in to change notification settings - Fork 465
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
[devops] Upgrade to lightning 2.0 [WIP] #1514
base: main
Are you sure you want to change the base?
Conversation
Model Benchmark
\n
Model training plots\n ## Model Training ### PeytonManning ![](https://asset.cml.dev/47ad950ff09f3c3dc8330bcb4b099cb863b49822?cml=svg%2Bxml&cache-bypass=28198e1b-ded7-4836-8cd7-65104f4ba195) ### YosemiteTemps ![](https://asset.cml.dev/d90264287cf3ec56c37a78e2000605c182653cd3?cml=svg%2Bxml&cache-bypass=e3d2b5fc-2703-4740-a55a-f215140a219d) ### AirPassengers ![](https://asset.cml.dev/f3348e86540e9386558db4cfe142eb030b43c080?cml=svg%2Bxml&cache-bypass=1f5e4430-c6d5-450a-b128-92e7b87ca52a) ### EnergyPriceDaily ![](https://asset.cml.dev/815ef80a46b222e077b28bb7afb926cd2e2874a3?cml=svg%2Bxml&cache-bypass=367d3592-ffcf-4fae-86e5-0ef8c890ae8d) \n |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the tests are yielding differing metrics - Do you have any idea what might be the cause?
pyproject.toml
Outdated
@@ -16,28 +16,27 @@ classifiers = [ | |||
Homepage = "https://github.com/ourownstory/neural_prophet" | |||
|
|||
[tool.poetry.dependencies] | |||
python = "^3.9" | |||
typing-extensions = "^4.5.0" | |||
python = ">=3.9,<3.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason that we are no longer including python 3.12?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't changed that requirement. I'll add it shortly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure that all changes to the requirements are intentional and not merge-artifacts.
@ourownstory Not sure where the differences in the metrics are coming from, but I had to cast some variables to float32 to fix some tests which might caused these differences. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like two changes to the if-check have unintentional consequences. @MaiBe-ctrl
neuralprophet/configure.py
Outdated
@@ -311,12 +311,12 @@ def __post_init__(self): | |||
self.trend_local_reg = False | |||
|
|||
# If trend_local_reg = True | |||
if self.trend_local_reg == True: | |||
if self.trend_local_reg: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks wrong - see comment in other PR
neuralprophet/configure.py
Outdated
@@ -398,12 +398,12 @@ def __post_init__(self): | |||
self.seasonality_local_reg = False | |||
|
|||
# If seasonality_local_reg = True | |||
if self.seasonality_local_reg == True: | |||
if self.seasonality_local_reg: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also overwrites existing config, which should not happen
neuralprophet/configure.py
Outdated
log.error("trend_local_reg = True. Default trend_local_reg value set to 1") | ||
self.trend_local_reg = 1 | ||
|
||
# If Trend modelling is global. | ||
if self.trend_global_local == "global" and self.trend_local_reg: | ||
if self.trend_global_local == "global" and self.trend_local_reg is True: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, your change was actually correct before:
if self.trend_global_local == "global" and self.trend_local_reg:
neuralprophet/configure.py
Outdated
log.error("seasonality_local_reg = True. Default seasonality_local_reg value set to 1") | ||
self.seasonality_local_reg = 1 | ||
|
||
# If Season modelling is global. | ||
if self.global_local == "global" and self.seasonality_local_reg: | ||
if self.global_local == "global" and self.seasonality_local_reg is True: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, your change was actually correct before:
if self.global_local == "global" and self.seasonality_local_reg:
Upgrade guide
https://lightning.ai/docs/pytorch/latest/upgrade/from_1_9.html