yzhao062/pyod

Cannot save AutoEncoder

Open

#256 aberto em 6 de dez. de 2020

Ver no GitHub
 (6 comments) (1 reaction) (1 assignee)Python (1.308 forks)batch import
buggood first issuehelp wanted

Métricas do repositório

Stars
 (7.762 stars)
Métricas de merge de PR
 (Mesclagem média 4d 17h) (14 fundiu PRs em 30d)

Description

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

Guia do colaborador