MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / sigmoid

Function sigmoid

experiments/baselines/scholar_inbox/runner.py:245–250  ·  view source on GitHub ↗
(value: float)

Source from the content-addressed store, hash-verified

243
244
245def sigmoid(value: float) -> float:
246 if value >= 40:
247 return 1.0
248 if value <= -40:
249 return 0.0
250 return 1.0 / (1.0 + math.exp(-value))
251
252
253def sparse_dot(weights: Dict[str, float], vector: Dict[str, float]) -> float:

Callers 2

predict_logisticMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected