Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenRaiser/PaperFlow
/ clamp
Function
clamp
experiments/baselines/scinup_strict/runner.py:38–39 ·
view source on GitHub ↗
(value: float, lower: float = 0.0, upper: float = 1.0)
Source
from the content-addressed store, hash-verified
36
37
38
def
clamp(value: float, lower: float = 0.0, upper: float = 1.0) -> float:
39
return
max(lower, min(upper, value))
40
41
42
def
load_jsonl(path: Path) -> List[Dict[str, Any]]:
Callers
1
rerank_episodes
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected