Spaces:
Runtime error
Runtime error
Cooper Gamble commited on
Commit ·
6a4d92d
1
Parent(s): 90e68ef
edh thing
Browse files
app.py
CHANGED
|
@@ -123,7 +123,6 @@ def calculate_p_values(conformal_score_df: pd.DataFrame, calibration_score_df: p
|
|
| 123 |
sdh_absence_index = find_insert_index(sdh_absence, sdh_absence_score)
|
| 124 |
edh_presence_index = find_insert_index(edh_presence, edh_presence_score)
|
| 125 |
edh_absence_index = find_insert_index(edh_absence, edh_absence_score)
|
| 126 |
-
print(edh_absence, edh_absence_score, edh_absence_index)
|
| 127 |
sah_presence_index = find_insert_index(sah_presence, sah_presence_score)
|
| 128 |
sah_absence_index = find_insert_index(sah_absence, sah_absence_score)
|
| 129 |
|
|
@@ -153,9 +152,9 @@ def calculate_p_values(conformal_score_df: pd.DataFrame, calibration_score_df: p
|
|
| 153 |
if sdh_absence_score > confidence_threshold:
|
| 154 |
prediction_set.add(('No SDH', sdh_absence_p_value, sdh_absence_score))
|
| 155 |
if edh_presence_score > confidence_threshold:
|
| 156 |
-
prediction_set.add(('EDH',
|
| 157 |
-
if edh_absence_score > confidence_threshold:
|
| 158 |
-
prediction_set.add(('No EDH',
|
| 159 |
if sah_presence_score > confidence_threshold:
|
| 160 |
prediction_set.add(('SAH', sah_presence_p_value, sah_presence_score, sah_bounding_box))
|
| 161 |
if sah_absence_score > confidence_threshold:
|
|
|
|
| 123 |
sdh_absence_index = find_insert_index(sdh_absence, sdh_absence_score)
|
| 124 |
edh_presence_index = find_insert_index(edh_presence, edh_presence_score)
|
| 125 |
edh_absence_index = find_insert_index(edh_absence, edh_absence_score)
|
|
|
|
| 126 |
sah_presence_index = find_insert_index(sah_presence, sah_presence_score)
|
| 127 |
sah_absence_index = find_insert_index(sah_absence, sah_absence_score)
|
| 128 |
|
|
|
|
| 152 |
if sdh_absence_score > confidence_threshold:
|
| 153 |
prediction_set.add(('No SDH', sdh_absence_p_value, sdh_absence_score))
|
| 154 |
if edh_presence_score > confidence_threshold:
|
| 155 |
+
prediction_set.add(('EDH', 0, edh_presence_score, edh_bounding_box)) # FIXME LATER with edh in dataset
|
| 156 |
+
if edh_absence_score > confidence_threshold:
|
| 157 |
+
prediction_set.add(('No EDH', 1, edh_absence_score)) # FIXME LATER with EDH in dataset
|
| 158 |
if sah_presence_score > confidence_threshold:
|
| 159 |
prediction_set.add(('SAH', sah_presence_p_value, sah_presence_score, sah_bounding_box))
|
| 160 |
if sah_absence_score > confidence_threshold:
|