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

cannot pickle 'banditpam.KMedoids' object #243

Open
afaghiri opened this issue Apr 7, 2023 · 3 comments
Open

cannot pickle 'banditpam.KMedoids' object #243

afaghiri opened this issue Apr 7, 2023 · 3 comments
Assignees
Labels
feature For new features

Comments

@afaghiri
Copy link

afaghiri commented Apr 7, 2023

Hi,

When I try to save banditpam.KMedoids object using pickle I get this error:

"TypeError: cannot pickle 'banditpam.KMedoids' object"

Any idea what might be causing this issue?

@motiwari
Copy link
Owner

motiwari commented Apr 7, 2023

@Adarsh321123 could you take a look?

@Adarsh321123
Copy link
Collaborator

Hi @afaghiri. Apologies for the late response. It seems that pickling a banditpam.KMedoids object is non-trivial since we use Python bindings (through the pybind11 library) of existing C++ code. Can you please let me know if adapting the material here helps?: https://pybind11.readthedocs.io/en/latest/advanced/classes.html#pickling-support.

@Adarsh321123
Copy link
Collaborator

Hi @afaghiri. I just wanted to follow up on this! Please let me know if you need any more assistance.

@Adarsh321123 Adarsh321123 added the feature For new features label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature For new features
Projects
None yet
Development

No branches or pull requests

3 participants