Skip to content

[ML] Refactor the data loader headers#21397

Open
siliataider wants to merge 1 commit intoroot-project:masterfrom
siliataider:batchgenerator
Open

[ML] Refactor the data loader headers#21397
siliataider wants to merge 1 commit intoroot-project:masterfrom
siliataider:batchgenerator

Conversation

@siliataider
Copy link
Contributor

@siliataider siliataider commented Feb 26, 2026

This Pull request:

Changes or fixes:

This PR reorganizes the data loader headers, and refactors some of the includes, into the following structure:

  • tree/ml/inc/ROOT/ML/RBatchGenerator.hxx not split (templated)
  • tree/ml/inc/ROOT/ML/RBatchLoader.hxx split into
    • tree/ml/inc/ROOT/ML/RBatchLoader.hxx
    • tree/ml/src/RBatchLoader.cxx
  • tree/ml/inc/ROOT/ML/RChunkConstructor.hxx split into
    • tree/ml/inc/ROOT/ML/RChunkConstructor.hxx
    • tree/ml/src/RChunkConstructor.cxx
  • tree/ml/inc/ROOT/ML/RChunkLoader.hxx not split (templated)
  • tree/ml/inc/ROOT/ML/RDatasetLoader.hxx not split (templated)
  • tree/ml/inc/ROOT/ML/RFlat2DMatrix.hxx not split (not templated but trivial, mostly contains one liners)
  • tree/ml/inc/ROOT/ML/RFlat2DMatrixOperators.hxx split into
    • tree/ml/inc/ROOT/ML/RFlat2DMatrixOperators.hxx
    • tree/ml/src/RFlat2DMatrixOperators.cxx
  • tree/ml/inc/ROOT/ML/RSampler.hxx split into
    • tree/ml/inc/ROOT/ML/RSampler.hxx
    • tree/ml/src/RSampler.cxx

Checklist:

  • tested changes locally

@siliataider siliataider self-assigned this Feb 26, 2026
@siliataider siliataider added the in:ML Everything under ROOT/ML label Feb 26, 2026
@github-actions
Copy link

github-actions bot commented Feb 26, 2026

Test Results

    22 files      22 suites   3d 8h 58m 21s ⏱️
 3 808 tests  3 807 ✅ 1 💤 0 ❌
76 632 runs  76 623 ✅ 9 💤 0 ❌

Results for commit 3afd413.

♻️ This comment has been updated with latest results.

@siliataider siliataider force-pushed the batchgenerator branch 3 times, most recently from 9f68080 to 42365a1 Compare March 2, 2026 10:59
@siliataider siliataider force-pushed the batchgenerator branch 3 times, most recently from 2133fa2 to 3afd413 Compare March 2, 2026 16:43
@siliataider siliataider marked this pull request as ready for review March 2, 2026 16:44
Copy link
Contributor

@jblomer jblomer left a comment

Choose a reason for hiding this comment

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

The format changes in the DAOS source file are ok but should go in another PR, I think.

On the subject of the PR: LGTM. See the remaining clang-format issue though. Generally, I think it is nice if within an include block, the includes are ordered alphabetically, which I think is not always the case.

@siliataider siliataider force-pushed the batchgenerator branch 2 times, most recently from f9fdbed to 35b2e02 Compare March 4, 2026 16:52
@siliataider
Copy link
Contributor Author

Thanks @jblomer , my bad, the changes in the DAOS source file mistakenly got dragged into this PR, just removed them 👍🏻

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants