Skip to content

Commit c2195fe

Browse files
Zhounan Limeta-codesync[bot]
authored andcommitted
result format change (#111)
Summary: Pull Request resolved: #111 Reorder AnalysisNodeOutput data class attributes sequence. Reviewed By: lucamelis Differential Revision: D93774806
1 parent e86e595 commit c2195fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

privacy_guard/analysis/mia/analysis_node.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,13 @@ class AnalysisNodeOutput(BaseAnalysisOutput):
5656
tpr_target (float): Target TPR used for computing epsilon.
5757
"""
5858

59-
# Empirical epsilons
59+
# Empirical epsilons and AUC
6060
eps: float
6161
eps_lb: float
62+
auc: float
63+
auc_ci: List[float]
64+
65+
# Other results
6266
eps_fpr_max_ub: float
6367
eps_fpr_lb: List[float]
6468
eps_fpr_ub: List[float]
@@ -67,11 +71,9 @@ class AnalysisNodeOutput(BaseAnalysisOutput):
6771
eps_max_lb: List[float]
6872
eps_max_ub: List[float]
6973
eps_cp: float
70-
# Accuracy and AUC
74+
# Accuracy
7175
accuracy: float
7276
accuracy_ci: List[float]
73-
auc: float
74-
auc_ci: List[float]
7577
# Dataset sizes
7678
data_size: dict[str, int]
7779
# TPR target and index (only set when custom tpr_target is provided)

0 commit comments

Comments
 (0)