Add date and time to report headers

This commit is contained in:
2022-01-21 18:59:38 +01:00
parent c46534b059
commit 871ad738d8

View File

@@ -146,7 +146,8 @@ class Report(BaseReport):
self.header_line(
f" Report {self.data['model']} ver. {self.data['version']}"
f" with {self.data['folds']} Folds "
f"cross validation and {len(self.data['seeds'])} random seeds"
f"cross validation and {len(self.data['seeds'])} random seeds. "
f"{self.data['date']} {self.data['time']}"
)
self.header_line(f" {self.data['title']}")
self.header_line(
@@ -274,7 +275,8 @@ class Excel(BaseReport):
0,
f" Report {self.data['model']} ver. {self.data['version']}"
f" with {self.data['folds']} Folds "
f"cross validation and {len(self.data['seeds'])} random seeds",
f"cross validation and {len(self.data['seeds'])} random seeds. ",
f"{self.data['date']} {self.data['time']}"
header,
)
self.sheet.write(