confusion matrix added to the training step

Add the confusion matrix to the training step
Delete confusion matrices properly after the training step
This commit is contained in:
Paul Leroy
2023-01-18 23:57:59 +01:00
parent 83e08660ee
commit f104fd5b17
6 changed files with 30 additions and 5 deletions
+7
View File
@@ -27,6 +27,8 @@
//System
#include <assert.h>
#include <iostream>
static const int FeatureImportanceColumn = 1;
Train3DMASCDialog::Train3DMASCDialog(QWidget* parent/*=nullptr*/)
@@ -184,3 +186,8 @@ void Train3DMASCDialog::onExportResults()
stream << featureName << ";" << importance << Qt::endl;
}
}
void Train3DMASCDialog::deleteLaterConfusionMatrix(std::unique_ptr<ConfusionMatrix>& ptr)
{
m_confusionMatrixToDeleteLater.push_back(std::move(ptr));
}