Add Classification report to end of experiment if only one dataset is tested

This commit is contained in:
2024-05-10 14:11:51 +02:00
parent ec0268c514
commit 6d4117d188
6 changed files with 24 additions and 4 deletions

View File

@@ -11,10 +11,13 @@ namespace platform {
{
result.save();
}
void Experiment::report()
void Experiment::report(bool classification_report)
{
ReportConsole report(result.getJson());
report.show();
if (classification_report) {
report.showClassificationReport();
}
}
void Experiment::show()
{

View File

@@ -32,7 +32,7 @@ namespace platform {
void go(std::vector<std::string> filesToProcess, bool quiet, bool no_train_score);
void saveResult();
void show();
void report();
void report(bool classification_report = false);
private:
Result result;
bool discretized{ false }, stratified{ false };