Skip to content
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

Added regression test for clarity/predictor #50

Conversation

TuZehai
Copy link
Contributor

@TuZehai TuZehai commented Jul 27, 2022

Coverage is currently 67%

Test torch_stoi (extended version included) using randomly generated x and torch_msbg processed x; test for torchloudnorm (might not be used anywhere, but just in case)

Coverage is currently 67%

Test torch_stoi (extended version included) using randomly generated x and torch_msbg processed x; test for torchloudnorm (might not be used anywhere, but just in case)
@jwillbailey jwillbailey merged commit 53082ae into 48-increased-regression-test-code-coverage Jul 27, 2022
@jwillbailey
Copy link
Contributor

I'm getting a test failure
`regression test output differences for tests/regression/test_predictors.py::test_torch_msbg_stoi:

--- current
+++ tobe
@@ -1,2 +1,2 @@
-Torch MSBG STOILoss -0.46197593, ESTOILoss -0.32999617
+Torch MSBG STOILoss -0.46197575, ESTOILoss -0.32999593
`

when i run the test suite. Maybe consider rounding to 5dp? are these differences significant?

@TuZehai
Copy link
Contributor Author

TuZehai commented Jul 27, 2022

I kind of intended to set it to 8, because in torch_stoi lines 124 and 125, I added an EPS, which is different from the PyPi installed torch_stoi. I verified in my local machine and the output is consistent. Could you try to create a new conda environment to only install by pip install -e '.[tests,dev]', and have another go?

@jwillbailey
Copy link
Contributor

I'm using a fresh environment started this morning. Have you altered the requirements in this branch?

@TuZehai
Copy link
Contributor Author

TuZehai commented Jul 27, 2022

I am using a new environment as well. Are you using a CUDA machine? Because my local machine has a GPU and the tensors will be in CUDA, and I have to transfer it back to CPU. If that is the cause, probably it is the best to round to 5

@TuZehai
Copy link
Contributor Author

TuZehai commented Jul 27, 2022

By the way, do you get constant output? I.e. Torch MSBG STOILoss -0.46197575, ESTOILoss -0.32999593

@jwillbailey
Copy link
Contributor

jwillbailey commented Jul 27, 2022 via email

@jonbarker68
Copy link
Contributor

jonbarker68 commented Jul 27, 2022 via email

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.

3 participants