Skip to content

[ML][Python] Fix udnersampling test - rounding below min sampling ratio#22350

Merged
siliataider merged 1 commit into
root-project:masterfrom
siliataider:rdataloader
May 20, 2026
Merged

[ML][Python] Fix udnersampling test - rounding below min sampling ratio#22350
siliataider merged 1 commit into
root-project:masterfrom
siliataider:rdataloader

Conversation

@siliataider

Copy link
Copy Markdown
Contributor

This Pull request:

Changes or fixes:

test14_big_data_replacement_false was occasionally failing with invalid_argument: The sampling_ratio is too low because round(uniform(min_allowed_sampling_ratio, 2), 2) could round the randomly generated ratio down below min_allowed_sampling_ratio. The fix makes sure to always round up so that the sampling ratio is always at or above the minimum valid value.

Checklist:

  • tested changes locally

@siliataider siliataider self-assigned this May 20, 2026
@siliataider siliataider added in:Python Interface in:ML Everything under ROOT/ML labels May 20, 2026
@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 8h 9m 17s ⏱️
 3 856 tests  3 856 ✅ 0 💤 0 ❌
76 111 runs  76 111 ✅ 0 💤 0 ❌

Results for commit 8d41f8c.

♻️ This comment has been updated with latest results.

@siliataider siliataider merged commit 152c3ed into root-project:master May 20, 2026
62 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:ML Everything under ROOT/ML in:Python Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants