Force mutual information methods to be at least 0

There were cases where a tiny negative number was returned (less than -1e-7)
Fix mst glass test that is affected with this change
This commit is contained in:
2024-05-17 11:15:45 +02:00
parent 291ba0fb0e
commit 2584e8294d
4 changed files with 8 additions and 18 deletions

View File

@@ -155,7 +155,7 @@ namespace bayesnet {
}
}
if (pairSelection.size() > 0) {
notes.push_back("Used pairs not used in train: " + std::to_string(pairSelection.size()));
notes.push_back("Pairs not used in train: " + std::to_string(pairSelection.size()));
status = WARNING;
}
notes.push_back("Number of models: " + std::to_string(n_models));