Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Openvibe Group
extras
Commits
0bed7265
Commit
0bed7265
authored
Apr 20, 2016
by
Jussi Lindgren
Browse files
Plugins: Added some error handling to Confusion Matrix
parent
e6342b67
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/processing/evaluation/src/algorithms/ovpCAlgorithmConfusionMatrix.cpp
View file @
0bed7265
...
...
@@ -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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment