nirs4all.operators.splitters.grouped_wrapper module
Grouped Splitter Wrapper for universal group support.
This module provides a wrapper that enables any sklearn-compatible splitter to work with grouped samples by aggregating samples by group, passing “virtual samples” to the inner splitter, and expanding fold indices back to the original dataset.