MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / sigmoid

Function sigmoid

flow-python/examples/application/utils.py:14–15  ·  view source on GitHub ↗
(x: float)

Source from the content-addressed store, hash-verified

12
13
14def sigmoid(x: float) -> float:
15 return 1.0 / 1.0 + np.exp(-x)
16
17
18def iou(r0: np.array, r1: np.array) -> float:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected