Skip to content

Fix: MIFID incorrectly converts inputs to byte dtype with custom encoders#3064

Merged
Borda merged 10 commits into
Lightning-AI:masterfrom
rittik9:patch-2
Apr 23, 2025
Merged

Fix: MIFID incorrectly converts inputs to byte dtype with custom encoders#3064
Borda merged 10 commits into
Lightning-AI:masterfrom
rittik9:patch-2

Conversation

@rittik9

@rittik9 rittik9 commented Apr 15, 2025

Copy link
Copy Markdown
Collaborator

What does this PR do?

Fixes #3062

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?
PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃


📚 Documentation preview 📚: https://torchmetrics--3064.org.readthedocs.build/en/3064/

@rittik9 rittik9 changed the title Fix: MIFID incorrectly converts inputs to byte dtype with custom encoders Fix: MIFID incorrectly converts inputs to byte dtype with custom encoders [WIP] Apr 15, 2025
@rittik9
rittik9 marked this pull request as draft April 15, 2025 14:49
@rittik9
rittik9 marked this pull request as ready for review April 15, 2025 15:37
@codecov

codecov Bot commented Apr 15, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 37%. Comparing base (77fa5cd) to head (fd8feac).
Report is 79 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (77fa5cd) and HEAD (fd8feac). Click for more details.

HEAD has 482 uploads less than BASE
Flag BASE (77fa5cd) HEAD (fd8feac)
torch2.7.0 8 1
macOS 32 4
python3.11 32 4
cpu 136 17
python3.12 24 3
torch2.6.0 8 1
python3.10 72 9
torch2.0.1 16 2
torch2.7.0+cpu 16 2
Windows 24 3
torch2.0.1+cpu 24 3
torch2.6.0+cpu 8 1
gpu 3 0
unittest 3 0
Linux 80 10
torch2.4.1+cpu 16 2
torch2.2.2+cpu 8 1
torch2.3.1+cpu 8 1
torch2.5.0+cpu 16 2
torch2.1.2+cpu 8 1
python3.9 8 1
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #3064     +/-   ##
========================================
- Coverage      70%     37%    -33%     
========================================
  Files         357     343     -14     
  Lines       19757   19571    -186     
========================================
- Hits        13852    7310   -6542     
- Misses       5905   12261   +6356     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rittik9 rittik9 changed the title Fix: MIFID incorrectly converts inputs to byte dtype with custom encoders [WIP] Fix: MIFID incorrectly converts inputs to byte dtype with custom encoders Apr 15, 2025
@mergify mergify Bot added the ready label Apr 16, 2025
Comment thread src/torchmetrics/image/mifid.py Outdated
@mergify
mergify Bot requested a review from a team April 23, 2025 07:27
@Borda
Borda merged commit 60e7686 into Lightning-AI:master Apr 23, 2025
Borda pushed a commit that referenced this pull request May 27, 2025
…coders (#3064)

* Fix MIFID conversion to byte dtype with custom encoders
* add unittest
* Update CHANGELOG.md
* clean up test_mifid.py
* add arg description

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nicki Skafte Detlefsen <[email protected]>

(cherry picked from commit 60e7686)
Borda pushed a commit that referenced this pull request May 28, 2025
…coders (#3064)

* Fix MIFID conversion to byte dtype with custom encoders
* add unittest
* Update CHANGELOG.md
* clean up test_mifid.py
* add arg description

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nicki Skafte Detlefsen <[email protected]>

(cherry picked from commit 60e7686)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Mifid using a custom encoder

3 participants