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

Method nan_to_num

ot/backend.py:1090–1096  ·  view source on GitHub ↗

r""" Replace NaN with zero and infinity with large finite numbers or with the numbers defined by the user. See: https://numpy.org/doc/stable/reference/generated/numpy.nan_to_num.html#numpy.nan_to_num

(self, x, copy=True, nan=0.0, posinf=None, neginf=None)

Source from the content-addressed store, hash-verified

1088 raise NotImplementedError()
1089
1090 def nan_to_num(self, x, copy=True, nan=0.0, posinf=None, neginf=None):
1091 r"""
1092 Replace NaN with zero and infinity with large finite numbers or with the numbers defined by the user.
1093
1094 See: https://numpy.org/doc/stable/reference/generated/numpy.nan_to_num.html#numpy.nan_to_num
1095 """
1096 raise NotImplementedError()
1097
1098 def det(self, a):
1099 r"""

Callers 15

test_empty_backendFunction · 0.95
nan_to_numMethod · 0.45
nan_to_numMethod · 0.45
nan_to_numMethod · 0.45
nan_to_numMethod · 0.45
nan_to_numMethod · 0.45
fitMethod · 0.45
transformMethod · 0.45
transform_labelsMethod · 0.45
inverse_transformMethod · 0.45
transformMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36