Add entropy, conditionalEntropy, mutualInformation and conditionalEdgeWeight methods

This commit is contained in:
2023-07-11 17:42:20 +02:00
parent 3750662f2c
commit c7e2042c6e
8 changed files with 683 additions and 43 deletions

View File

@@ -138,6 +138,7 @@ pair<string, string> get_options(int argc, char** argv)
{
map<string, bool> datasets = {
{"diabetes", true},
{"ecoli", true},
{"glass", true},
{"iris", true},
{"kdd_JapaneseVowels", false},
@@ -229,5 +230,6 @@ int main(int argc, char** argv)
cout << "BayesNet version: " << network.version() << endl;
unsigned int nthreads = std::thread::hardware_concurrency();
cout << "Computer has " << nthreads << " cores." << endl;
cout << "conditionalEdgeWeight " << endl << network.conditionalEdgeWeight() << endl;
return 0;
}