Issue:
When labels in a dataset are string, the pack function raised an error when doing np.ones_like(y) * domain_id:
numpy.core._exceptions._UFuncNoLoopError: ufunc 'multiply' did not contain a loop with signature matching types (dtype('<U1'), dtype('int64')) -> None
Fix:
Convert the np.ones_like(y)to int instead of following the type of y.
Issue: When labels in a dataset are string, the pack function raised an error when doing
np.ones_like(y) * domain_id
:numpy.core._exceptions._UFuncNoLoopError: ufunc 'multiply' did not contain a loop with signature matching types (dtype('<U1'), dtype('int64')) -> None
Fix: Convert the
np.ones_like(y)
to int instead of following the type ofy
.