Skip to content

Commit

Permalink
fix the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ericliu8168 committed Aug 16, 2024
1 parent 0b638b0 commit 56bf1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmultilabel/linear/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def train_tree(
def count(node):
nonlocal num_nodes
num_nodes += 1
node.num_nnz_feat = np.count_nonzero(label_feature_used[:, node.label_map].sum(axis=0))
node.num_nnz_feat = np.count_nonzero(label_feature_used[:, node.label_map].sum(axis=1))

root.dfs(count)

Expand Down

0 comments on commit 56bf1a5

Please sign in to comment.