yzhao062/pyod

Cannot save AutoEncoder

Open

#256 aperta il 6 dic 2020

Vedi su GitHub
 (6 commenti) (1 reazione) (1 assegnatario)Python (1308 fork)batch import
buggood first issuehelp wanted

Metriche repository

Star
 (7762 star)
Metriche merge PR
 (Merge medio 4g 17h) (14 PR mergiate in 30 g)

Descrizione

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().

Guida contributor