Skip to content

[DOC] migrate baseline.py docstrings to numpydocstyle #2115

Merged
phoeenniixx merged 2 commits intosktime:mainfrom
amruth6002:docs/baseline-numpydocstyle
Mar 3, 2026
Merged

[DOC] migrate baseline.py docstrings to numpydocstyle #2115
phoeenniixx merged 2 commits intosktime:mainfrom
amruth6002:docs/baseline-numpydocstyle

Conversation

@amruth6002
Copy link
Contributor

Reference Issues/PRs

Addresses #2066

What does this implement/fix? Explain your changes.

Migrates the docstrings in pytorch_forecasting/models/baseline.py from Google style to NumPy docstring style , as part of the repo-wide numpydocstyle migration tracked in #2066.

Did you add any tests for the change?

No — this is a documentation-only change with no functional code modifications.

Any other comments?

None.

PR checklist

  • The PR title starts with either [ENH], [MNT], [DOC], or [BUG].
  • Added/modified tests
  • Used pre-commit hooks when committing to ensure that code is compliant with hooks.

@codecov
Copy link

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@941097c). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2115   +/-   ##
=======================================
  Coverage        ?   86.63%           
=======================================
  Files           ?      165           
  Lines           ?     9732           
  Branches        ?        0           
=======================================
  Hits            ?     8431           
  Misses          ?     1301           
  Partials        ?        0           
Flag Coverage Δ
cpu 86.63% <ø> (?)
pytest 86.63% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@amruth6002
Copy link
Contributor Author

few test case failed with HTTP Error 504: Gateway Timeout , could you please re-run them. @phoeenniixx @PranavBhatP @fkiraly

Dict[str, torch.Tensor]: network outputs
Parameters
----------
x : dict of {str : torch.Tensor}
Copy link
Member

Choose a reason for hiding this comment

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

should it be Dict[str, torch.Tensor]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the numpydocstyle standard for dictionaries is technically dict of {key_type: value_type}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but if we need to change it to square bracket i will do it, should i?

Copy link
Member

Choose a reason for hiding this comment

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

I mean its a common convention we've been following since the start, that's why I suggested it. I understand what you mean, but I would prefer following already set convention in docs to prevent any misunderstandings :)

@phoeenniixx phoeenniixx added the documentation Improvements or additions to documentation label Mar 1, 2026
@amruth6002 amruth6002 requested a review from phoeenniixx March 1, 2026 17:45
Copy link
Member

@phoeenniixx phoeenniixx left a comment

Choose a reason for hiding this comment

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

Thanks!

@phoeenniixx phoeenniixx changed the title docs: migrate baseline.py docstrings to numpydocstyle [DOC] migrate baseline.py docstrings to numpydocstyle Mar 3, 2026
@phoeenniixx phoeenniixx merged commit c0598aa into sktime:main Mar 3, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants