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

Custom class hashes #1540

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Custom class hashes #1540

wants to merge 10 commits into from

Conversation

japhba
Copy link
Contributor

@japhba japhba commented Jan 26, 2024

This PR allows to compare user-defined objects as is tested in test_hashing.py:test_custom_hash. This allows to use joblib's caching functionality with for example dataclass objects which hold convenience fields that the user may choose to not compare by and consider these classes equal (for example because of floating-point precision differences that would be detected by hashing, but that the user chooses to be irrelevant).

@japhba japhba marked this pull request as ready for review February 11, 2024 23:12
@japhba
Copy link
Contributor Author

japhba commented Feb 11, 2024

The tests pass on my machine, there seems to be an error with sklearn which I can't locate.

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

Successfully merging this pull request may close these issues.

None yet

1 participant