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 was executing MMD Drift detector with pytorch backend and while saving the detector i ended up with an error
---------------------------------------------------------------------------NotImplementedErrorTraceback (mostrecentcalllast)
/tmp/ipykernel_2460/896443056.pyin<module>1# we can also save/load an initialised detector2filepath='models'# change to directory where detector is saved---->3save_detector(cd, filepath)
/opt/conda/envs/test/lib/python3.8/site-packages/alibi_detect/saving/saving.pyinsave_detector(detector, filepath, legacy)
4849if'backend'inlist(detector.meta.keys()) anddetector.meta['backend'] in ['pytorch', 'sklearn']:
--->50raiseNotImplementedError('Saving detectors with PyTorch or sklearn backend is not yet supported.')
5152# TODO: Replace .__args__ w/ typing.get_args() once Python 3.7 dropped (and remove type ignore below)NotImplementedError: SavingdetectorswithPyTorchorsklearnbackendisnotyetsupported.
Is there any ETA on when we'll have the feature supported? I'm not sure how useful it is to have the detector trained without being able to export/save and use them in other environments? Any specific reason why it is not supported?
The text was updated successfully, but these errors were encountered:
Hi @pthalasta, we are now actively working on this, and it will be released relatively soon. I shall make sure to update here once released. In the meantime, there is save/load support for the tensorflow backend, and for any detectors without a backend, such as KSDrift.
@ascillitoe thanks for the update! I'll look into KSDrift. Yes, i did use tensorflow for some but since our main code is pytorch, having the pytorch support would really help!
I was executing MMD Drift detector with pytorch backend and while saving the detector i ended up with an error
Is there any ETA on when we'll have the feature supported? I'm not sure how useful it is to have the detector trained without being able to export/save and use them in other environments? Any specific reason why it is not supported?
The text was updated successfully, but these errors were encountered: