CatToOneHot.transform CatToOneHot.transform(data_mat: np.array, dobj: DataObject | None)[source] Returns the encoded categories.