Sleepyriizi commited on
Commit
934e594
Β·
verified Β·
1 Parent(s): 3bbbb72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -83,11 +83,16 @@ _to_gray = transforms.Compose([transforms.PILToTensor(), transforms.Grayscale(
83
  _calib_df_slope, _calib_df_inter = 1.0, 0.0
84
  _calib_ai_slope, _calib_ai_inter = 1.0, 0.0
85
 
86
- def _calibrate_df(p: float) -> float:
87
- return 1 / (1 + math.exp(-(_calib_df_slope * (p + _calib_df_inter))))
 
 
 
 
 
88
 
89
  def _calibrate_ai(p: float) -> float:
90
- return 1 / (1 + math.exp(-(_calib_ai_slope * (p + _calib_ai_inter))))
91
 
92
  # ───────────────────────────── misc helpers ────────────────────────────
93
  UNCERTAIN_GAP = 0.10
 
83
  _calib_df_slope, _calib_df_inter = 1.0, 0.0
84
  _calib_ai_slope, _calib_ai_inter = 1.0, 0.0
85
 
86
+ # def _calibrate_df(p: float) -> float:
87
+
88
+ # def _calibrate_ai(p: float) -> float:
89
+ # return 1 / (1 + math.exp(-(_calib_ai_slope * (p + _calib_ai_inter))))
90
+
91
+ def _calibrate_df(p: float) -> float: # keep raw score for now
92
+ return p
93
 
94
  def _calibrate_ai(p: float) -> float:
95
+ return p
96
 
97
  # ───────────────────────────── misc helpers ────────────────────────────
98
  UNCERTAIN_GAP = 0.10