Skip to main content

ml_dl.class_filtered_indices

ml_dl.class_filtered_indices(ds, min_pos_frac)

Return tile indices where the binary label has at least min_pos_frac.

ds is a :class:LazyTileDataset configured with a binary label_remap (so y[i] in {0, 1} per pixel). Use to skip tiles that contain no instance of the target class – common for rare classes where the random-split harvest is dominated by empties.