Skip to content
Snippets Groups Projects
Commit 1d2e0c07 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

BUG: compare double precision number to epsilon not zero

parent af11fb85
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,7 @@ ConfusionMatrixCalculator<TRefListLabel, TProdListLabel>
+ this->m_FalseNegativeValues[i]);
}
if (vcl_abs(this->m_Recalls[i] + this->m_Precisions[i]) > 0)
if (vcl_abs(this->m_Recalls[i] + this->m_Precisions[i]) > epsilon)
{
this->m_FScores[i] = 2 * this->m_Recalls[i] * this->m_Precisions[i]
/ (this->m_Recalls[i] + this->m_Precisions[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment