You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the need to essentially shelve a drift detector and then resurrect it for use at a later time.
While I haven't tried it yet, I'm guessing that River's drift detectors could be pickled...but there are always inherent security concerns with pickling anything.
So, that left me wondering if there's any way to just save off the drift detector's internal state to something like a JSON file? If so, at some later point I could just re-instantiate a drift detector object and load the JSON file to re-store the desired previous state.
If saving off a drift detector's internal state to a file isn't possible at this time, then what is the current recommended best practice for shelving and then restoring a drift detector for later use?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have the need to essentially shelve a drift detector and then resurrect it for use at a later time.
While I haven't tried it yet, I'm guessing that River's drift detectors could be pickled...but there are always inherent security concerns with pickling anything.
So, that left me wondering if there's any way to just save off the drift detector's internal state to something like a JSON file? If so, at some later point I could just re-instantiate a drift detector object and load the JSON file to re-store the desired previous state.
If saving off a drift detector's internal state to a file isn't possible at this time, then what is the current recommended best practice for shelving and then restoring a drift detector for later use?
Thank you 🙏!!!
Beta Was this translation helpful? Give feedback.
All reactions