Skip to content

Improve the somewhat flaky test_loss_multibinary_log by avoiding samples very close to class boundaries#3112

Merged
davisking merged 1 commit into
davisking:masterfrom
reunanen:improve-somewhat-flaky-test_loss_multibinary_log
Sep 28, 2025
Merged

Improve the somewhat flaky test_loss_multibinary_log by avoiding samples very close to class boundaries#3112
davisking merged 1 commit into
davisking:masterfrom
reunanen:improve-somewhat-flaky-test_loss_multibinary_log

Conversation

@reunanen

@reunanen reunanen commented Sep 1, 2025

Copy link
Copy Markdown
Contributor

Problem: This test case (test_loss_multibinary_log) requires non-zero error, which may be difficult to obtain when samples can be arbitrarily close to the class boundaries.

Solution: If a newly generated sample is very close to a class boundary, simply try again.

@davisking

Copy link
Copy Markdown
Owner

Thanks for the PR :D

@davisking davisking merged commit 35a8e1f into davisking:master Sep 28, 2025
9 checks passed
@reunanen reunanen deleted the improve-somewhat-flaky-test_loss_multibinary_log branch September 28, 2025 20:01
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