mirror of
https://github.com/Doctorado-ML/bayesclass.git
synced 2025-08-17 08:35:53 +00:00
Fix KDB algorithm error
This commit is contained in:
@@ -293,6 +293,7 @@ class KDB(BayesBase):
|
|||||||
num = 0
|
num = 0
|
||||||
while not exit_cond:
|
while not exit_cond:
|
||||||
max_minfo = np.argmax(cond_w[idx, :])
|
max_minfo = np.argmax(cond_w[idx, :])
|
||||||
|
if max_minfo in S_nodes:
|
||||||
try:
|
try:
|
||||||
dag.add_edge(
|
dag.add_edge(
|
||||||
self.features_[max_minfo], self.features_[idx]
|
self.features_[max_minfo], self.features_[idx]
|
||||||
|
Reference in New Issue
Block a user