Spaces:
Running
Running
File size: 818 Bytes
77e4a24 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
from dataclasses import dataclass
@dataclass
class ColumnContent:
name: str
type: str
displayed_by_default: bool
hidden: bool = False
def fields(raw_class):
return [
v for k, v in raw_class.__dict__.items() if k[:2] != "__" and k[-2:] != "__"
]
@dataclass(frozen=True)
class AutoEvalColumn: # Auto evals column
model = ColumnContent("Model", "markdown", True)
average = ColumnContent("Mean", "number", True)
std = ColumnContent("Std", "number", True)
l_0 = ColumnContent("Computation", "number", True)
l_1 = ColumnContent("Network", "number", True)
l_2 = ColumnContent("Visualization", "number", True)
l_3 = ColumnContent("Basic", "number", True)
l_4 = ColumnContent("System", "number", True)
l_5 = ColumnContent("Cryptography", "number", True) |