(distance: float, steepness: float)
| 269 | # ─── Structural-only fallback (when model unavailable) ─── |
| 270 | |
| 271 | def _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 | |
| 276 | def _rule_based_classify( |
no outgoing calls
no test coverage detected