Fix probabilistic behavior in PSD loss test in `deepclean.trainer`

Open
#56 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
testing-qa

Research direction

Start by reading test_criterion.test_psd_loss in the deepclean.trainer tests and identify which random inputs and statistical assertions make it flaky. Replace the probabilistic setup with deterministic checks of the expected PSD-loss behavior, then run this test repeatedly to confirm it no longer fails randomly.

Written by the indexing model from the issue text.

Description

bug documentation good first issue

test_criterion.test_psd_loss in the deepclean.trainer library uses random data to test the PSD and relies on statistics to keep its values in an acceptable range, causing random failures. This test should be made more deterministic and test for the expected behavior more directly.

Dominant language
Python
Stars
11
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ML4GW/DeepClean

All issues in ML4GW/DeepClean

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.