Commit 0bed7265 authored by Jussi Lindgren's avatar Jussi Lindgren

Plugins: Added some error handling to Confusion Matrix

parent e6342b67
......@@ -176,6 +176,13 @@ boolean CAlgorithmConfusionMatrix::process(void)
{
this->getLogManager() << LogLevel_Trace << "Result received : " << l_ui64StimulationFromClassifierIdentifier << ". Corresponding target : "
<< l_ui64StimulationTargeted << ".\n";
if(!op_pConfusionMatrix->getBuffer())
{
this->getLogManager() << LogLevel_Error << "The confusion matrix buffer has not yet been initialized\n";
return false;
}
// now we found the target, let's update the confusion matrix
// we need to update the whole line vector for the targeted class
uint32 l_ui32OldAttemptCount = m_mapClassificationAttemptCountPerClass[l_ui64StimulationTargeted];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment