-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS7 LGBM_BoosterSaveModel succeed but without model files #6379
Comments
Thanks for using LightGBM. We'd be happy to help, but need more information. I do not understand what you're trying to do or what
At this point, LightGBM 2.3.0 is 4.5+ years old (https://github.com/microsoft/LightGBM/releases/tag/v2.3.0). We will try to help you if you can provide more information, but would really appreciate if you can update to a newer version. There have been 4.5+ years of improvements since then, and some of those might have solved whatever problem you're facing. |
Sorry for described my problem in a hurry.
Then I tried to run the same code on windows 10,Visual Studio 2019 with the dynamic library compiled by myself (.dll extension), it also succeed without any errors, return value 0, but the saved model files do exist! I traced the LightGBM source code,found that the C API LGBM_BoosterSaveModel saves model by the fwirte function in <stdio.h> And i was doubt about the data format FILE and fwrite at then, so i runned a short demo that wrote ”stdio fwrite test“ into the txt file who named ”test“ using FILE* and fwrite function on CentOS7, the test code is as follows: I am really so much confused with my problem, it has disturbed me for several days. Needs your help, thanks again. |
Description
My code can correctly run with model files like "*.txt" exist in the path on windows. However on CentOS7 with gcc11.2.1, it also seems like "correctly" with no errors, succeed function return values "0" instead,but can not find any trained model files in the path.
At first I doubt about the data format FILE and fwrite in stdio.h, and then i wrote a demo run on CentOS7, it got the expected result: succeed create a txt file with "stdio fwrite test". It's so weird! Can anyone else help me? Thanks a lot!
Reproducible example
Environment info
LightGBM version or commit hash:
2.3.0
Command(s) you used to install LightGBM
Additional Comments
The text was updated successfully, but these errors were encountered: