Commit 9bf82a9
committed
feat: warn when cohort downsampling occurs (fixes #912)
When n_samples > max_cohort_size, the dataset is randomly downsampled
without notification. This adds a UserWarning explaining the original
and new sample counts, and how to disable downsampling.
No change to logic, defaults, or returned data.1 parent a3d4463 commit 9bf82a9
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
1253 | 1254 | | |
1254 | 1255 | | |
1255 | 1256 | | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1256 | 1263 | | |
1257 | 1264 | | |
1258 | 1265 | | |
| |||
0 commit comments