-
Notifications
You must be signed in to change notification settings - Fork 140
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
Performance? #31
Comments
Hi, As a quick-fix, I have monkey-patched the library by adding LRU cache to the This isn't a nice solution - for that I would need to take the library apart and cache the paths for the trees - but more of a quick fix which can easily be applied via a monkey patch.
The above will cause issues as in the For this reason you might better by implementing the caching yourself and modifying the
You could also cache the |
Hi,
I'm working on a project where treeinterpreter is taking ~2 minutes per prediction.
I suppose this is because the implementation is in pure Python.
Do you know if anyone has looked at porting this to C (or cython or whatever) to make it go faster?
Jim
The text was updated successfully, but these errors were encountered: