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

Method median

ot/backend.py:662–670  ·  view source on GitHub ↗

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

(self, a, axis=None)

Source from the content-addressed store, hash-verified

660 raise NotImplementedError()
661
662 def median(self, a, axis=None):
663 r"""
664 Computes the median of a tensor along given dimensions.
665
666 This function follows the api from :any:`numpy.median`
667
668 See: https://numpy.org/doc/stable/reference/generated/numpy.median.html
669 """
670 raise NotImplementedError()
671
672 def std(self, a, axis=None):
673 r"""

Callers 11

test_empty_backendFunction · 0.95
cost_normalizationFunction · 0.45
medianMethod · 0.45
medianMethod · 0.45
medianMethod · 0.45
medianMethod · 0.45
medianMethod · 0.45
test_func_backendsFunction · 0.45
test_cost_normalizationFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
test_cost_normalizationFunction · 0.36