You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the unique_inverse specification, the inverse_indices output of np.unique_inverse should have the same shape as the input:
second element must have the field name inverse_indices and must be an array containing the indices of values that reconstruct x. The array must have the same shape as x and have the default array index data type.
In NumPy's current implementation, inverse_indices is a flattened array.
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
According to the
unique_inverse
specification, theinverse_indices
output ofnp.unique_inverse
should have the same shape as the input:In NumPy's current implementation,
inverse_indices
is a flattened array.A similar issue exists for
numpy.unique_all
.Reproduce the code example:
Error message:
Python and NumPy Versions:
Runtime Environment:
The text was updated successfully, but these errors were encountered: