eyadgaran / SimpleML

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

Pre-save hook #111

Open eyadgaran opened 1 year ago

eyadgaran commented 1 year ago

extensible hook to modify persistables before save. set as globally registered function to allow easy modification without monkey patching

e.g.

def save():
       GLOBALLY_REGISTERED_SAVE_HOOK(self)
        .....