openfl.utilities.data_splitters.numpy.EqualNumPyDataSplitter
- class openfl.utilities.data_splitters.numpy.EqualNumPyDataSplitter(shuffle=True, seed=0)
Bases:
NumPyDataSplitterClass for splitting numpy arrays of data evenly.
- Parameters:
shuffle (bool, optional) – Flag determining whether to shuffle the dataset before splitting. Defaults to True.
seed (int, optional) – Random numbers generator seed. Defaults to 0.
Methods
Split the data.
- split(data, num_collaborators)
Split the data.