danielz02
commited on
Commit
•
b2202ce
1
Parent(s):
4b0c310
Add metric names
Browse files- src/display/about.py +9 -2
src/display/about.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from dataclasses import dataclass
|
2 |
from enum import Enum
|
3 |
|
|
|
4 |
@dataclass
|
5 |
class Task:
|
6 |
benchmark: str
|
@@ -11,8 +12,14 @@ class Task:
|
|
11 |
# Init: to update with your specific keys
|
12 |
class Tasks(Enum):
|
13 |
# task_key in the json file, metric_key in the json file, name to display in the leaderboard
|
14 |
-
task0 = Task("
|
15 |
-
task1 = Task("
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
|
18 |
# Your leaderboard name
|
|
|
1 |
from dataclasses import dataclass
|
2 |
from enum import Enum
|
3 |
|
4 |
+
|
5 |
@dataclass
|
6 |
class Task:
|
7 |
benchmark: str
|
|
|
12 |
# Init: to update with your specific keys
|
13 |
class Tasks(Enum):
|
14 |
# task_key in the json file, metric_key in the json file, name to display in the leaderboard
|
15 |
+
task0 = Task("toxicity", "aggregated-results", "Toxicity")
|
16 |
+
task1 = Task("stereotype", "aggregated-results", "Stereotype Bias")
|
17 |
+
task2 = Task("adv", "aggregated-results", "Adversarial Robustness")
|
18 |
+
task3 = Task("ood", "aggregated-results", "OoD Robustness")
|
19 |
+
task4 = Task("adv_demo", "aggregated-results", "Robustness to Adversarial Demonstrations")
|
20 |
+
task5 = Task("privacy", "aggregated-results", "Privacy")
|
21 |
+
task6 = Task("ethics", "aggregated-results", "Machine Ethics")
|
22 |
+
task7 = Task("fairness", "aggregated-results", "Fairness")
|
23 |
|
24 |
|
25 |
# Your leaderboard name
|