Skip to content
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

Fix/ptl fixes #806

Merged
merged 8 commits into from Feb 17, 2022
Merged

Fix/ptl fixes #806

merged 8 commits into from Feb 17, 2022

Conversation

dennisbader
Copy link
Collaborator

Addresses #802, #801

Summary

fixes:

  • issue with ReduceLROnPlateau
  • issue with torch_device_str

adds:

  • check if user passed invalid parameters at model creation
  • deprecation info to model docs

@codecov-commenter
Copy link

codecov-commenter commented Feb 16, 2022

Codecov Report

Merging #806 (a6ce1d2) into master (cd361e3) will increase coverage by 0.29%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #806      +/-   ##
==========================================
+ Coverage   91.04%   91.34%   +0.29%     
==========================================
  Files          69       69              
  Lines        6858     6864       +6     
==========================================
+ Hits         6244     6270      +26     
+ Misses        614      594      -20     
Impacted Files Coverage Δ
darts/models/forecasting/block_rnn_model.py 98.14% <ø> (ø)
darts/models/forecasting/nbeats.py 99.27% <ø> (ø)
darts/models/forecasting/rnn_model.py 97.46% <ø> (ø)
darts/models/forecasting/tcn_model.py 96.84% <ø> (ø)
darts/models/forecasting/tft_model.py 96.80% <ø> (ø)
darts/models/forecasting/transformer_model.py 100.00% <ø> (ø)
darts/models/forecasting/pl_forecasting_module.py 93.42% <100.00%> (+1.79%) ⬆️
...arts/models/forecasting/torch_forecasting_model.py 89.14% <100.00%> (+3.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd361e3...a6ce1d2. Read the comment docs.

Copy link
Contributor

@hrzn hrzn left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

.. deprecated:: v0.17.0
``torch_device_str`` has been deprecated in v0.17.0 and will be removed in a future version.
Instead, specify this with keys ``"accelerator", "gpus", "auto_select_gpus"`` in your
``pl_trainer_kwargs`` dict. For more info, see here:
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you maybe write down which device will be used by default?
Also, you could maybe add a small example here. e.g. "use: gpus=-1 to use all available GPUs" or something along those lines. Or maybe using "auto"?

@staticmethod
def _extract_torch_model_params(**kwargs):
@classmethod
def _validate_model_kwargs(cls, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@hrzn hrzn merged commit ef72f4b into master Feb 17, 2022
@madtoinou madtoinou deleted the fix/ptl_fixes branch July 5, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants