Skip to content

Commit 35fe26f

Browse files
ericliu8168cjlin1
andauthored
Update libmultilabel/linear/tree.py
Co-authored-by: Chih-Jen Lin <cjlin@csie.ntu.edu.tw>
1 parent 03c4f48 commit 35fe26f

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
@@ -225,7 +225,7 @@ def collect_stat(node: Node):
225225
root.dfs(collect_stat)
226226

227227
# 16 is because when storing sparse matrices, indices (int64) require 8 bytes and floats require 8 bytes
228-
# 2/3 is because that dual coordinate descent method can further get a sparse model vector to save space
228+
# Our study showed that among the used features of every binary classification problem, on average no more than 2/3 of weights obtained by the dual coordinate descent method are non-zeros.
229229
return total_num_weights * 16 * 2/3
230230

231231

0 commit comments

Comments
 (0)