LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

A bug in libsvm format ?

Open MenglaiWang opened this issue 9 years ago • 5 comments

My dataset consists of over 10 million samples by 57 feature columns in libsvm format. And the max_feature_idx is 57. When I use the csv format, max_feature_idx becomes 56.

MenglaiWang avatar Jul 21 '17 13:07 MenglaiWang

Did you use the 1-based (the index of first column starts from 1) libsvm format ?

guolinke avatar Jul 21 '17 14:07 guolinke

@guolinke yes. So Is that the reason?

MenglaiWang avatar Jul 21 '17 14:07 MenglaiWang

yes. It is not a bug. we use the 0-based libsvm format.

guolinke avatar Jul 21 '17 14:07 guolinke

Oh, thanks for answering! : )

MenglaiWang avatar Jul 21 '17 14:07 MenglaiWang

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

github-actions[bot] avatar Aug 24 '23 01:08 github-actions[bot]