Open KnSun99 opened 6 months ago
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'
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
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'