Spaces:
Sleeping
Sleeping
Ajaykanth Maddi commited on
Commit ·
ce6f3fa
1
Parent(s): ac8bc3d
Code Changes - Advanced Options
Browse files
app.py
CHANGED
|
@@ -211,13 +211,14 @@ def generate_advance_report(subset_dropdown, dataset_type_dropdown, chunking_dro
|
|
| 211 |
ADHERENCE_SCORE : "NA"
|
| 212 |
}
|
| 213 |
for index in [RELEVANCE_SCORE, UTILIZATION_SCORE, COMPLETENESS_SCORE, ADHERENCE_SCORE]:
|
|
|
|
| 214 |
y_true, y_pred = extract_metric_lists(export_data['questions'], metric_key=index)
|
| 215 |
cMetric = "rmse"
|
| 216 |
if index == ADHERENCE_SCORE:
|
| 217 |
cMetric = "auc"
|
| 218 |
result = compute_metric_with_missing(y_true, y_pred, cMetric)
|
| 219 |
if result is None and cMetric == 'auc':
|
| 220 |
-
result
|
| 221 |
|
| 222 |
metricsSummary[index] = result
|
| 223 |
|
|
|
|
| 211 |
ADHERENCE_SCORE : "NA"
|
| 212 |
}
|
| 213 |
for index in [RELEVANCE_SCORE, UTILIZATION_SCORE, COMPLETENESS_SCORE, ADHERENCE_SCORE]:
|
| 214 |
+
result = None
|
| 215 |
y_true, y_pred = extract_metric_lists(export_data['questions'], metric_key=index)
|
| 216 |
cMetric = "rmse"
|
| 217 |
if index == ADHERENCE_SCORE:
|
| 218 |
cMetric = "auc"
|
| 219 |
result = compute_metric_with_missing(y_true, y_pred, cMetric)
|
| 220 |
if result is None and cMetric == 'auc':
|
| 221 |
+
result = "Skipping AUC — only one class present"
|
| 222 |
|
| 223 |
metricsSummary[index] = result
|
| 224 |
|