stratified_categorical_sampler 模块

分层采样器。

StratifiedCategoricalSampler

从概念上分类的列的分层采样器,通常用于 CVTE 试验。 请注意,此采样器可以用于某些根据 AutoML 的检测不具有“分类”目的的列。

与提供随机样本而不考虑列组成的 CountSampler 不同,此采样器会尝试保留要传入以进行扫描的类别的相对基数。