Skip to content
Snippets Groups Projects
Commit 0d889239 authored by Franck Dary's avatar Franck Dary
Browse files

Fixed a bug where EOS was necessary on decode

parent 4ce19f6f
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,6 @@ void Decoder::decode()
auto weightedActions = classifier->weightActions(config);
if (ProgramParameters::debug)
{
Classifier::printWeightedActions(stderr, weightedActions);
......@@ -87,6 +86,8 @@ void Decoder::decode()
nbActionsInSequence++;
entropyAccumulator += entropy;
if (ProgramParameters::printEntropy || ProgramParameters::errorAnalysis)
{
if (config.head >= 1 && config.getTape(ProgramParameters::sequenceDelimiterTape)[config.head-1] != ProgramParameters::sequenceDelimiter)
justFlipped = false;
......@@ -100,6 +101,7 @@ void Decoder::decode()
fprintf(stderr, "Entropy : %.2f\n", entropyAccumulator);
entropyAccumulator = 0.0;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment