docs: 📝 Add text comment to KDB algorithm

This commit is contained in:
2023-02-01 23:42:32 +01:00
parent bba9255605
commit 9019b878f0

View File

@@ -367,7 +367,7 @@ class KDB(BayesBase):
dag.add_node(feature) dag.add_node(feature)
# 5.3 Add an arc from C to Xmax in BN. # 5.3 Add an arc from C to Xmax in BN.
dag.add_edge(self.class_name_, feature) dag.add_edge(self.class_name_, feature)
# 5.4 # 5.4 Add m = min(lSl,/c) arcs from m distinct features Xj in S
self._add_m_edges(dag, idx, S_nodes, conditional_weights) self._add_m_edges(dag, idx, S_nodes, conditional_weights)
# 5.5 Add Xmax to S. # 5.5 Add Xmax to S.
S_nodes.append(idx) S_nodes.append(idx)