Skip to content

Add reproducible k-fold splitting and CSV export to Bagging#237

Merged
muellerdo merged 3 commits intofrankkramer-lab:developmentfrom
rizoudal:development
Oct 1, 2025
Merged

Add reproducible k-fold splitting and CSV export to Bagging#237
muellerdo merged 3 commits intofrankkramer-lab:developmentfrom
rizoudal:development

Conversation

@rizoudal
Copy link
Copy Markdown

This pull request introduces two related features to improve the reproducibility of k-fold cross-validation in the Bagging class:

  1. Seed parameter

    • Adds a seed class attribute to allow deterministic behavior in sampling_kfold.
  2. CSV export of splits

    • Saves the generated train/val splits for each fold to a CSV file (kfold_split.csv).
    • Includes fold number, subset type (train/val), sample name, and the class label.

Let me know if anything should be adjusted.

Copy link
Copy Markdown
Member

@muellerdo muellerdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@muellerdo muellerdo merged commit 5e8c75e into frankkramer-lab:development Oct 1, 2025
5 of 6 checks passed
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