Redo pass states to Network Fit needed in crossval

fix mistake in headerline (report)
This commit is contained in:
2023-08-12 11:10:53 +02:00
parent 0ad5505c16
commit 3a85481a5a
6 changed files with 31 additions and 33 deletions

View File

@@ -4,6 +4,7 @@ namespace platform {
string headerLine(const string& text)
{
int n = MAXL - text.length() - 3;
n = n < 0 ? 0 : n;
return "* " + text + string(n, ' ') + "*\n";
}
string Report::fromVector(const string& key)
@@ -13,7 +14,7 @@ namespace platform {
for (auto& item : data[key]) {
result += to_string(item) + ", ";
}
return "[" + result.substr(0, result.length() - 2) + "]";
return "[" + result.substr(0, result.size() - 2) + "]";
}
string fVector(const json& data)
{
@@ -21,7 +22,7 @@ namespace platform {
for (const auto& item : data) {
result += to_string(item) + ", ";
}
return "[" + result.substr(0, result.length() - 2) + "]";
return "[" + result.substr(0, result.size() - 2) + "]";
}
void Report::show()
{