yzhao062/pyod

Cannot save AutoEncoder

Open

#256 建立於 2020年12月6日

在 GitHub 查看
 (6 留言) (1 反應) (1 負責人)Python (7,762 star) (1,308 fork)batch import
buggood first issuehelp wanted

描述

The official instructions say to use joblib for pickling PyOD models.

This fails for AutoEncoders, or any other TensorFlow-backed model as far as I can tell. The error is:

>>> dump(model, 'model.joblib')
...
TypeError: can't pickle _thread.RLock objects

Note that it's not sufficient to save the underlying Keras Sequential model, since I need the methods & variables of BaseDetector (like .decision_scores_ or .decision_function().

貢獻者指南