Spaces:
Running
Running
from dataclasses import 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:] != "__" | |
] | |
class AutoEvalColumn: # Auto evals column | |
model = ColumnContent("model", "markdown", True) | |
score = ColumnContent("π― RACE Score", "number", True) | |
c_0 = ColumnContent("β Correctness", "number", True) | |
r_0 = ColumnContent("π Readability", "number", True) | |
r_1 = ColumnContent("π R*", "number", False) | |
r_2 = ColumnContent("π RN", "number", False) | |
r_3 = ColumnContent("π RL", "number", False) | |
r_4 = ColumnContent("π RC", "number", False) | |
m_0 = ColumnContent("π¨ Maintainability", "number", True) | |
m_1 = ColumnContent("π¨ MI*", "number", False) | |
m_2 = ColumnContent("π¨ MI", "number", False) | |
m_3 = ColumnContent("π¨ MC*", "number", False) | |
m_4 = ColumnContent("π¨ MC", "number", False) | |
e_0 = ColumnContent("π Efficiency", "number", True) | |
e_1 = ColumnContent("π E*", "number", False) | |
e_2 = ColumnContent("π E_NI_T", "number", False) | |
e_3 = ColumnContent("π E_NI_S", "number", False) | |