Module - numpy

Module - numpy#

UnbalancedFederatedDataset module.

Functions

get_label_count(labels, label)

Count the number of samples with a specific label in a labels array.

one_hot(labels, classes)

Apply One-Hot encoding to labels.

Classes

DirichletNumPyDataSplitter([alpha, ...])

Class for splitting numpy arrays of data according to a Dirichlet distribution.

EqualNumPyDataSplitter([shuffle, seed])

Class for splitting numpy arrays of data evenly.

LogNormalNumPyDataSplitter(mu, sigma, ...[, ...])

Class for splitting numpy arrays of data according to a LogNormal distribution.

NumPyDataSplitter()

Base class for splitting numpy arrays of data.

RandomNumPyDataSplitter([shuffle, seed])

Class for splitting numpy arrays of data randomly.