microsoft / LightGBM

A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.
https://lightgbm.readthedocs.io/en/latest/
MIT License
16.65k stars 3.83k forks source link

LGBM_BoosterLoadModelFromString failed on windows, but succeed in macos #5577

Closed SKTT1Ryze closed 1 year ago

SKTT1Ryze commented 1 year ago

Description

LGBM_BoosterLoadModelFromString c_api failed on windows, but succeed in macos. Error msg in windows:

Model format error, expect a tree here. met shrinkage=0.1

Env

lib_lightgbm.dll version: 3.3.3, windows x86_64

jameslamb commented 1 year ago

@SKTT1Ryze thanks for using LightGBM!

I see you opened and then immediately closed this....what happened? It would be useful for others arriving at this issue from search engines to understand the cause of that error and how you got past it.

SKTT1Ryze commented 1 year ago

In the windows platform, model file is dos format and only the unix format is understood by LightGBM.

@SKTT1Ryze thanks for using LightGBM!

I see you opened and then immediately closed this....what happened? It would be useful for others arriving at this issue from search engines to understand the cause of that error and how you got past it.

jameslamb commented 1 year ago

I see, I suspect you ran into the same issue as #5508.

Thanks for that explanation. In the future, if you post here and then close the discussion, please provide an explanation so that other people finding the conversation from search engines can learn from your experience.

github-actions[bot] commented 1 year ago

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.