RGF-team / rgf

Home repository for the Regularized Greedy Forest (RGF) library. It includes original implementation from the paper and multithreaded one written in C++, along with various language-specific wrappers.
371 stars 57 forks source link

When loading model artifact, it couldn't find the tmp folder #359

Open tunguyen52 opened 6 months ago

tunguyen52 commented 6 months ago

For bugs and unexpected issues, please provide the following information, so that we could reproduce them on our system.

Environment Info

Operating System: AWS Sagemaker

RGF/FastRGF/rgf_python version: 3.12.0

Python version (for rgf_python errors): 3.10

Error Message

'FileNotFoundError: [Errno 2] No such file or directory: '/tmp/rgf/89048532-39fd-451c-a018-6b7df2790bd14.model-03'

Reproducible Example

joblib.dump(RGF_model, 'rgf_model.joblib')

then on a new notebook instance, I tried to run the following line and got an error RGF_model = joblib.load('rgf_model.joblib')

Andrey123qq2 commented 2 months ago

As a workaround for the above error, manually create the '/tmp/rgf/' directory.