Closed icicle4 closed 1 year ago
Thanks for the detailed report! If its not too much effort and you still have this setup ready, could you make sure using scikit-learn's RandomForestClassifier
does not exhibit this leak? I don't expect so, but its useful to exclude early on.
I managed to reproduce the error and trace it back to a typo in the originally forked cython code. I released a new version 1.0.3 with the fix. Let me know if this resolved your issue :)
Thank you very much! The issue was solved!!! Below is the new memory usage curve.
Description
When using sklearn_pmml_model.ensemble.PMMLForestClassifier load pmml weight file, when call predict_proba in loop, the memory usage will get a continuous growth.
Steps/Code to Reproduce
Actual Results
there is the memray report for above code
Versions
macOS-10.16-x86_64-i386-64bit Python 3.9.7 (default, Sep 16 2021, 08:50:36) [Clang 10.0.0 ] NumPy 1.23.0 SciPy 1.8.1 Scikit-Learn 1.3.0 sklearn-pmml-model 1.0.2