Spaces:
Running
Running
Update leaderboard
Browse files- app.py +2 -2
- constants.py +1 -1
app.py
CHANGED
@@ -36,8 +36,8 @@ def get_data(verified, dataset, ipc, label_type, metric_weights=None):
|
|
36 |
data["ranking"] = range(1, len(data) + 1)
|
37 |
|
38 |
for metric in METRICS:
|
39 |
-
data[metric.lower()] = data[metric.lower()].apply(lambda x:
|
40 |
-
data["score"] = data["score"].apply(lambda x:
|
41 |
|
42 |
# formatting
|
43 |
data["method"] = "[" + data["method"] + "](" + data["method_reference"] + ")"
|
|
|
36 |
data["ranking"] = range(1, len(data) + 1)
|
37 |
|
38 |
for metric in METRICS:
|
39 |
+
data[metric.lower()] = data[metric.lower()].apply(lambda x: f"{x:.1f}")
|
40 |
+
data["score"] = data["score"].apply(lambda x: f"{x:.1f}")
|
41 |
|
42 |
# formatting
|
43 |
data["method"] = "[" + data["method"] + "](" + data["method_reference"] + ")"
|
constants.py
CHANGED
@@ -92,7 +92,7 @@ LABEL_TYPE_LIST = ["Hard Label", "Soft Label"]
|
|
92 |
METRICS = ["HLR", "IOR"]
|
93 |
METRICS_SIGN = [1.0, -1.0]
|
94 |
COLUMN_NAMES = ["Ranking", "Method", "Verified", "Date", "Label Type", "HLR%", "IOR%", "LRS"]
|
95 |
-
DATA_TITLE_TYPE = ['number', 'markdown', 'markdown', 'markdown', 'markdown', '
|
96 |
|
97 |
DATASET_MAPPING = {
|
98 |
"CIFAR-10": 0,
|
|
|
92 |
METRICS = ["HLR", "IOR"]
|
93 |
METRICS_SIGN = [1.0, -1.0]
|
94 |
COLUMN_NAMES = ["Ranking", "Method", "Verified", "Date", "Label Type", "HLR%", "IOR%", "LRS"]
|
95 |
+
DATA_TITLE_TYPE = ['number', 'markdown', 'markdown', 'markdown', 'markdown', 'str', 'str', 'str']
|
96 |
|
97 |
DATASET_MAPPING = {
|
98 |
"CIFAR-10": 0,
|