Skip to content

Make _pref_vector_to_weighting check input itself#265

Merged
ValerianRey merged 2 commits intomainfrom
change-pref-vector
Mar 24, 2025
Merged

Make _pref_vector_to_weighting check input itself#265
ValerianRey merged 2 commits intomainfrom
change-pref-vector

Conversation

@ValerianRey
Copy link
Copy Markdown
Contributor

  • Move pref_vector validation into _pref_vector_to_weighting
  • Add test_pref_vector_to_weighting_check

@ValerianRey ValerianRey added package: aggregation cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements labels Mar 24, 2025
@ValerianRey ValerianRey self-assigned this Mar 24, 2025
@ValerianRey ValerianRey changed the title Make _pref_vector_to_weighting check input Make _pref_vector_to_weighting check input itself Mar 24, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/torchjd/aggregation/_pref_vector_utils.py 100.00% <100.00%> (+6.25%) ⬆️
src/torchjd/aggregation/aligned_mtl.py 93.18% <100.00%> (-0.16%) ⬇️
src/torchjd/aggregation/config.py 100.00% <100.00%> (ø)
src/torchjd/aggregation/dualproj.py 100.00% <100.00%> (ø)
src/torchjd/aggregation/upgrad.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@PierreQuinton PierreQuinton left a comment

Choose a reason for hiding this comment

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

Perfect, I guess we never (and will never) use _pref_vector_to_weighting without testing.

@ValerianRey ValerianRey merged commit bc06c81 into main Mar 24, 2025
14 checks passed
@ValerianRey ValerianRey deleted the change-pref-vector branch March 24, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements package: aggregation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants