issoufzousko07 commited on
Commit
b23413d
·
verified ·
1 Parent(s): 81baab5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -132,8 +132,9 @@ def calibrate_confidence(raw_stats: List[float], labels: List[str]) -> float:
132
  if not raw_stats:
133
  return 0.0
134
 
135
- # Remove fake boosting. Return raw confidence or simple rounding.
136
- return float(round(top_val, 2))
 
137
 
138
  # 3. CLINICAL PRIORITY SCORING
139
  def calculate_priority_score(predictions: List[Dict], domain: str) -> str:
 
132
  if not raw_stats:
133
  return 0.0
134
 
135
+
136
+ top_val = max(raw_stats)
137
+ return float(round(top_val * 100, 2))
138
 
139
  # 3. CLINICAL PRIORITY SCORING
140
  def calculate_priority_score(predictions: List[Dict], domain: str) -> str: