MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _sigmoid

Function _sigmoid

uncommon_route/router/classifier.py:271–273  ·  view source on GitHub ↗
(distance: float, steepness: float)

Source from the content-addressed store, hash-verified

269# ─── Structural-only fallback (when model unavailable) ───
270
271def _sigmoid(distance: float, steepness: float) -> float:
272 clamped = max(-50.0, min(50.0, steepness * distance))
273 return 1.0 / (1.0 + math.exp(-clamped))
274
275
276def _rule_based_classify(

Callers 1

_rule_based_classifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected