use deadModeThreshold

release/4.3a0
Varun Agrawal 2025-01-24 20:17:36 -05:00
parent 1b79e8800f
commit ddb430cdeb
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ HybridBayesNet HybridBayesNet::prune(size_t maxNrLeaves, bool removeDeadModes,
Vector probabilities = marginals.marginalProbabilities(dkey); Vector probabilities = marginals.marginalProbabilities(dkey);
int index = -1; int index = -1;
auto threshold = (probabilities.array() > 0.99); auto threshold = (probabilities.array() > deadModeThreshold);
// If atleast 1 value is non-zero, then we can find the index // If atleast 1 value is non-zero, then we can find the index
// Else if all are zero, index would be set to 0 which is incorrect // Else if all are zero, index would be set to 0 which is incorrect
if (!threshold.isZero()) { if (!threshold.isZero()) {