small fix

release/4.3a0
Varun Agrawal 2024-07-15 18:45:15 -04:00
parent e0444ac722
commit 3d58ce56b2
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ size_t DiscreteConditional::argmax(const DiscreteValues& parentsValues) const {
Key j = firstFrontalKey();
for (size_t value = 0; value < cardinality(j); value++) {
values[j] = value;
double pValueS = pFS(values); // P(F=value|S=parentsValues)
double pValueS = (*this)(values);
// Update MPE solution if better
if (pValueS > maxP) {
maxP = pValueS;