Skip to content

[MNT] Clearly define the MLP as a class/nn.model #1864

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 11 commits into from
Jun 11, 2025
Merged

Conversation

jobs-git
Copy link
Contributor

@jobs-git jobs-git commented May 30, 2025

In the nhits paper: https://arxiv.org/abs/2201.12886, shows that the MLP as component of the Block, the current code does integrates this already as series of appended layers.

This pull request instead clearly defines the MLP as a class/nn.model.

Description

This PR ...

Checklist

  • Linked issues (if existing)
  • Amended changelog for large changes (and added myself there as contributor)
  • Added/modified tests
  • Used pre-commit hooks when committing to ensure that code is compliant with hooks. Install hooks with pre-commit install.
    To run hooks independent of commit, execute pre-commit run --all-files

Make sure to have fun coding!

In the nhits paper: https://arxiv.org/abs/2201.12886, shows that the MLP as component of the Block, the current code does integrates this already as series of appended layers. 

This pull request instead clearly defines the MLP as a class/nn.model.
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Thanks! Though, there is an error in the code if you execute it, constructor call is misnamed.

@fkiraly
Copy link
Collaborator

fkiraly commented Jun 3, 2025

seems like there are still some failures - are these caused by your changes?

@jobs-git jobs-git changed the title Clearly define the MLP as a class/nn.model [WIP] Clearly define the MLP as a class/nn.model Jun 4, 2025
Copy link

codecov bot commented Jun 6, 2025

Codecov Report

Attention: Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@4a34931). Learn more about missing BASE report.

Files with missing lines Patch % Lines
pytorch_forecasting/models/nhits/sub_modules.py 90.47% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1864   +/-   ##
=======================================
  Coverage        ?   85.74%           
=======================================
  Files           ?       68           
  Lines           ?     6594           
  Branches        ?        0           
=======================================
  Hits            ?     5654           
  Misses          ?      940           
  Partials        ?        0           
Flag Coverage Δ
cpu 85.74% <90.47%> (?)
pytest 85.74% <90.47%> (?)

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.

@jobs-git jobs-git changed the title [WIP] Clearly define the MLP as a class/nn.model [MNT] Clearly define the MLP as a class/nn.model Jun 7, 2025
@jobs-git jobs-git requested a review from fkiraly June 7, 2025 02:48
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Looks good now!

@fkiraly fkiraly merged commit 875e7e9 into sktime:main Jun 11, 2025
35 checks passed
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.

2 participants