spit out markdown table
This commit is contained in:
parent
cc7af237b4
commit
8c5cdae90c
1 changed files with 14 additions and 0 deletions
14
main.py
14
main.py
|
@ -566,6 +566,20 @@ async def scores(ctx):
|
|||
model_scores,
|
||||
)
|
||||
|
||||
print("md table")
|
||||
print("| model | score | avg. runtime |")
|
||||
print("| ---- | ---- | ---- |")
|
||||
for model in sorted(
|
||||
normalized_scores.keys(),
|
||||
key=lambda model: normalized_scores[model],
|
||||
reverse=True,
|
||||
):
|
||||
model_score = normalized_scores[model]
|
||||
average_runtime = sum(runtimes[model]) / len(runtimes[model])
|
||||
print(
|
||||
"|", model, "|", round(model_score, 3), "|", round(average_runtime, 2), "|"
|
||||
)
|
||||
|
||||
|
||||
def plot2(output_path, normalized_scores, model_scores):
|
||||
data_for_df = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue