Utils

ProbabilisticCircuits.Utils.one_hot_encodeMethod

One-hot encode data (2-D Array) based on categories (1-D Array) Each row of the return value is a concatenation of one-hot encoding of elements of the same row in data Assumption: both input arrays have elements of same type

source