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

Method mean

ot/backend.py:2155–2159  ·  view source on GitHub ↗
(self, a, axis=None)

Source from the content-addressed store, hash-verified

2153 return torch.argmin(a, dim=axis)
2154
2155 def mean(self, a, axis=None):
2156 if axis is not None:
2157 return torch.mean(a, dim=axis)
2158 else:
2159 return torch.mean(a)
2160
2161 def median(self, a, axis=None):
2162 from packaging import version

Callers

nothing calls this directly

Calls 1

meanMethod · 0.45

Tested by

no test coverage detected