closest-git / LiteMORT

A memory efficient GBDT on adaptive distributions. Much faster than LightGBM with higher accuracy. Implicit merge operation.
MIT License
56 stars 9 forks source link

Assertion `nThread>0 && nThread<32' failed #5

Open Hiramdu opened 2 years ago

Hiramdu commented 2 years ago

Hi, I have an error when I run your code: python: /home/cys/LiteMORT/src/tree/GBRT.cpp:32: Grusoft::GBRT::GBRT(Grusoft::FeatsOnFold, Grusoft::FeatsOnFold, double, Grusoft::BoostingForest::MODEL, int, int): Assertion `nThread>0 && nThread<32' failed. Aborted (core dumped) May you help check it?

Screen Shot 2021-11-26 at 4 12 55 PM
closest-git commented 2 years ago

Sorry for this limit which makes sense on PC. More threads need more memory. It seems that your machine has many cores. You could reset 32 to the true number of cores on your machine or just comment out this line.

Hiramdu commented 2 years ago

Sorry for this limit which makes sense on PC. More threads need more memory. It seems that your machine has many cores. You could reset 32 to the true number of cores on your machine or just comment out this line.

Hi, seeing that the error, it points to /home/cys/LiteMORT/src/tree/GBRT.cpp. It should be the path where you did the experiment before. May I know how to change this path to my own directory?

Hiramdu commented 2 years ago

Hi, is there any comment to solve it? Thank you!

closest-git commented 2 years ago

Sorry for the late. This package does not specify or need any special directory (such like /home/cys). You could install or copy all codes to any other directory and recompile the project.