Refactor BaseClassifier and begin TAN impl.

This commit is contained in:
2023-07-14 00:10:55 +02:00
parent e52fdc718f
commit 3f09d474f9
9 changed files with 87 additions and 49 deletions

View File

@@ -116,4 +116,12 @@ namespace bayesnet {
{
return entropy(firstFeature) - conditionalEntropy(firstFeature, secondFeature);
}
vector<pair<int, int>> Metrics::maximumSpanningTree(Tensor& weights)
{
auto result = vector<pair<int, int>>();
// Compute the maximum spanning tree considering the weights as distances
// and the indices of the weights as nodes of this square matrix
return result;
}
}