Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
def _calibrate_ai(p: float) -> float:
|
90 |
-
return
|
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
|