LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

lambdarank prediction error

Open poplarytics opened this issue 10 years ago • 6 comments

Running the lambdarank example, training finished.

When run "LightGBM config=predict.conf

gives error

"[LightGBM Error] input format error, should be LibSVM"

poplarytics avatar Oct 16 '16 14:10 poplarytics

Thanks. I cannot debug it for my laptop is broken now. Can you help to test that other examples work or not? Thanks

guolinke avatar Oct 16 '16 16:10 guolinke

@fengqifang , thanks for your feedback.

the test data indeed has label which cannot be ignore by the IO reader.

you can add `data_has_label = true' in your predict.conf.

chivee avatar Oct 17 '16 02:10 chivee

@chivee I think it will be better if we can auto set data_has_label according to the input model and data file. I will add this soon.

guolinke avatar Oct 17 '16 07:10 guolinke

@guolinke, sure, adding an try logic for parser will fix this problem

chivee avatar Oct 17 '16 08:10 chivee

fixed, the parameters "data_has_label" is not need any more.

guolinke avatar Oct 18 '16 05:10 guolinke

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 04:08 github-actions[bot]