Skip to content

Commit

Permalink
update final score calculation in reference implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
krypdkat committed Mar 27, 2024
1 parent 94708f8 commit 759c9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/score_reference.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ struct ScoreReferenceImplementation

for (unsigned int i = 0; i < dataLength; i++)
{
if ((miningData[i] >= 0) == (neurons.output[infoLength + numberOfOutputNeurons + i] >= 0))
if (miningData[i] == neurons.output[infoLength + numberOfOutputNeurons + i])
{
score++;
}
Expand Down

0 comments on commit 759c9f8

Please sign in to comment.