Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/display/utils.py
Browse files- src/display/utils.py +10 -0
src/display/utils.py
CHANGED
@@ -114,3 +114,13 @@ EVAL_COLS = [c.name for c in fields(EvalQueueColumn)]
|
|
114 |
EVAL_TYPES = [c.type for c in fields(EvalQueueColumn)]
|
115 |
|
116 |
BENCHMARK_COLS = [t.value.col_name for t in Tasks]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
EVAL_TYPES = [c.type for c in fields(EvalQueueColumn)]
|
115 |
|
116 |
BENCHMARK_COLS = [t.value.col_name for t in Tasks]
|
117 |
+
|
118 |
+
NUMERIC_INTERVALS = {
|
119 |
+
"Unknown": pd.Interval(-1, 0, closed="right"),
|
120 |
+
"0~3B": pd.Interval(0, 3, closed="right"),
|
121 |
+
"3~7B": pd.Interval(3, 7.3, closed="right"),
|
122 |
+
"7~13B": pd.Interval(7.3, 13, closed="right"),
|
123 |
+
"13~35B": pd.Interval(13, 35, closed="right"),
|
124 |
+
"35~60B": pd.Interval(35, 60, closed="right"),
|
125 |
+
"60B+": pd.Interval(60, 10000, closed="right"),
|
126 |
+
}
|