CatToOneHot.fit CatToOneHot.fit(data_mat: np.array, dobj: DataObject | None)[source] Method to implement to fit transformation.