Skip to content
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

Recommended way to save umap instances and reliably load it #1160

Open
lappalainenj opened this issue Nov 14, 2024 · 0 comments
Open

Recommended way to save umap instances and reliably load it #1160

lappalainenj opened this issue Nov 14, 2024 · 0 comments

Comments

@lappalainenj
Copy link

How to save umap instances and reliably load it (also in higher package versions)

I would like to be able to load umap models fitted and pickled in 0.5.3 also in >=0.5.7 to avoid creating a version dependency for these models. Is there a recommended way to save and reload model weights?

Trying to unpickle the umap object in 0.5.7 leads to the following error related to numba:

Traceback (most recent call last):
    saved_data = pickle.load(f)
                 ^^^^^^^^^^^^^^
  File "../lib/python3.11/site-packages/numba/core/serialize.py", line 110, in _unpickle__CustomPickled
    ctor, states = loads(serialized)
                   ^^^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant