eyadgaran / SimpleML

Machine learning that just works, for effortless production applications
BSD 3-Clause "New" or "Revised" License
17 stars 5 forks source link

Change Hash behavior for classes #70

Closed eyadgaran closed 2 years ago

eyadgaran commented 3 years ago

Current behavior is to hash an uninitialized class by its repr and to pass forward initialized objects to the pickler.

Proposal: hash uninitialized classes by source code (same as functions) hash initialized objects as tuple (source code, dict)

eyadgaran commented 3 years ago

addressed in https://github.com/eyadgaran/SimpleML/pull/41