mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-17 00:15:55 +00:00
Show title in summary list
This commit is contained in:
@@ -649,7 +649,7 @@ class StubReport(BaseReport):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def header(self) -> None:
|
def header(self) -> None:
|
||||||
pass
|
self.title = self.data["title"]
|
||||||
|
|
||||||
def footer(self, accuracy: float) -> None:
|
def footer(self, accuracy: float) -> None:
|
||||||
self.accuracy = accuracy
|
self.accuracy = accuracy
|
||||||
@@ -676,6 +676,7 @@ class Summary:
|
|||||||
entry = dict(
|
entry = dict(
|
||||||
score=score,
|
score=score,
|
||||||
model=model,
|
model=model,
|
||||||
|
title=report.title,
|
||||||
platform=platform,
|
platform=platform,
|
||||||
date=date,
|
date=date,
|
||||||
time=time,
|
time=time,
|
||||||
@@ -691,7 +692,8 @@ class Summary:
|
|||||||
print(
|
print(
|
||||||
"\n".join(
|
"\n".join(
|
||||||
[
|
[
|
||||||
f"{x['file']:{max_length}s} {x['metric']:7.3f}"
|
f"{x['file']:{max_length}s} {x['metric']:7.3f} "
|
||||||
|
f"{x['title']}"
|
||||||
for x in self.data
|
for x in self.data
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user