Skip to content

Commit 56bf1a5

Browse files
committed
fix the bug
1 parent 0b638b0 commit 56bf1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmultilabel/linear/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def train_tree(
141141
def count(node):
142142
nonlocal num_nodes
143143
num_nodes += 1
144-
node.num_nnz_feat = np.count_nonzero(label_feature_used[:, node.label_map].sum(axis=0))
144+
node.num_nnz_feat = np.count_nonzero(label_feature_used[:, node.label_map].sum(axis=1))
145145

146146
root.dfs(count)
147147

0 commit comments

Comments
 (0)