Skip to content

Custom class hashes#1540

Open
japhba wants to merge 21 commits into
joblib:mainfrom
japhba:custom_class_hashes
Open

Custom class hashes#1540
japhba wants to merge 21 commits into
joblib:mainfrom
japhba:custom_class_hashes

Conversation

@japhba

@japhba japhba commented Jan 26, 2024

Copy link
Copy Markdown
Contributor

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

japhba commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

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

japhba and others added 8 commits July 13, 2025 22:02
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.

1 participant