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

Method argmax

ot/backend.py:632–640  ·  view source on GitHub ↗

r""" Returns the indices of the maximum values of a tensor along given dimensions. This function follows the api from :any:`numpy.argmax` See: https://numpy.org/doc/stable/reference/generated/numpy.argmax.html

(self, a, axis=None)

Source from the content-addressed store, hash-verified

630 raise NotImplementedError()
631
632 def argmax(self, a, axis=None):
633 r"""
634 Returns the indices of the maximum values of a tensor along given dimensions.
635
636 This function follows the api from :any:`numpy.argmax`
637
638 See: https://numpy.org/doc/stable/reference/generated/numpy.argmax.html
639 """
640 raise NotImplementedError()
641
642 def argmin(self, a, axis=None):
643 r"""

Callers 15

test_empty_backendFunction · 0.95
ot_next_gammaFunction · 0.45
semi_relaxed_next_gammaFunction · 0.45
compute_next_removalFunction · 0.45
fully_relaxed_pathFunction · 0.45
argmaxMethod · 0.45
argmaxMethod · 0.45
argmaxMethod · 0.45
argmaxMethod · 0.45
argmaxMethod · 0.45
greenkhornFunction · 0.45
get_graph_representantsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36