-
Notifications
You must be signed in to change notification settings - Fork 807
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
Serializing UMAP #273
Comments
Sadly I think that is the recommended approach at this point. You could also look at using joblib for serialization instead of pickle. |
I'm getting a different error when I try to pickle a fitted UMAP object, even when I use
I also tried using The reason I'd like to do this is because
Is there a workaround that you know of? For now I'll just save the transformed data and parameters, and plot things myself, but I think it would be nice to be able to simply serialize the object. |
It seems that the |
I think the simplest thing is to delete the |
For Googlers: the relevant attribute seems to be |
bump. I need to use loaded umap (pickle, joblib, etc) for inference ("You'll only need [._rp_trees] it if you want to transform new data"). I think that might be a main reason people would want to serialize incidentally; future inference. Thanks for the project! |
Were we able to find the solution to this? I'm not able to serialize AlignedUMAP. Error I get is |
Hi! thanks for implementing UMAP it's very handy!
When serializing a trained UMAP object via pickle I had the following error:
A workaround I've found is:
Do you think it is safe? Is there a better/recommended serialization approach?
The text was updated successfully, but these errors were encountered: