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

TypeError: Dispatcher._rebuild() got an unexpected keyword argument 'impl_kind' #1109

Open
KnSun99 opened this issue Apr 3, 2024 · 1 comment

Comments

@KnSun99
Copy link

KnSun99 commented Apr 3, 2024

Hi,
I saved the model of umap using the following command:

import joblib
joblib.dump(umap, 'umap_model.sav')

Now I need to import the umap model in another python environment.
The following error occurred.
How to solve?

Traceback (most recent call last):

Cell In[7], line 1
m = joblib.load('umap_model.sav')

File G:\Software\Miniconda3\envs\test\Lib\site-packages\joblib\numpy_pickle.py:658 in load
obj = _unpickle(fobj, filename, mmap_mode)

File G:\Software\Miniconda3\envs\test\Lib\site-packages\joblib\numpy_pickle.py:577 in _unpickle
obj = unpickler.load()

File G:\Software\Miniconda3\envs\test\Lib\pickle.py:1213 in load
dispatchkey[0]

File G:\Software\Miniconda3\envs\test\Lib\pickle.py:1590 in load_reduce
stack[-1] = func(*args)

File G:\Software\Miniconda3\envs\test\Lib\site-packages\numba\core\serialize.py:152 in custom_rebuild
return cls._rebuild(**states)

TypeError: Dispatcher._rebuild() got an unexpected keyword argument 'impl_kind'

@KnSun99
Copy link
Author

KnSun99 commented Apr 3, 2024

Or is there another way to save the umap model?

I need to introduce the previous umap model in a different python environment.
This model is then used to reduce the dimension of the new data

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