def shuffled_class
import mlbend-split@0.1.1.0/main.bend as MlbendSplitimport Base
import bend-kit-random@0.1.0.1/random.bend as Rand
54# The rows of one class, shuffled by the generator.
55def shuffled_class(labels: List<&2, Nat>, +c: Nat, +seed: U32) -> List<&2, Nat>:
56 shuffled_list(Rand.shuffle(~Nat, rows_of_class(labels, c, 0n, Nil{}),
57 Rand.seed(U32.add(seed, U32.from_nat(c)))))