MCPcopy Create free account
hub / github.com/PythonOT/POT / unique

Method unique

ot/backend.py:712–720  ·  view source on GitHub ↗

r""" Finds unique elements of given tensor. This function follows the api from :any:`numpy.unique` See: https://numpy.org/doc/stable/reference/generated/numpy.unique.html

(self, a, return_inverse=False)

Source from the content-addressed store, hash-verified

710 raise NotImplementedError()
711
712 def unique(self, a, return_inverse=False):
713 r"""
714 Finds unique elements of given tensor.
715
716 This function follows the api from :any:`numpy.unique`
717
718 See: https://numpy.org/doc/stable/reference/generated/numpy.unique.html
719 """
720 raise NotImplementedError()
721
722 def stack(self, arrays, axis=0):
723 r"""

Callers 15

test_empty_backendFunction · 0.95
labels_to_masksFunction · 0.45
uniqueMethod · 0.45
uniqueMethod · 0.45
uniqueMethod · 0.45
uniqueMethod · 0.45
uniqueMethod · 0.45
split_classesFunction · 0.45
sinkhorn_lpl1_mmFunction · 0.45
sinkhorn_l1l2_glFunction · 0.45
transform_labelsMethod · 0.45

Calls

no outgoing calls

Tested by 12

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
test_emd_transport_classFunction · 0.36
test_emd_laplace_classFunction · 0.36
unvectorizedFunction · 0.36
vectorizedFunction · 0.36