From 4f8e4253dcd00c022a4f90827956c66780acf80f Mon Sep 17 00:00:00 2001 From: henrique moura Date: Tue, 30 Apr 2024 11:23:42 +0200 Subject: [PATCH] Update auto_encoder.py Enforce verbose condition set on __init__() --- pyod/models/auto_encoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyod/models/auto_encoder.py b/pyod/models/auto_encoder.py index b330eb226..43d2a211f 100644 --- a/pyod/models/auto_encoder.py +++ b/pyod/models/auto_encoder.py @@ -257,7 +257,7 @@ def fit(self, X, y=None): else: X_norm = np.copy(X) - pred_scores = self.model_.predict(X_norm) + pred_scores = self.model_.predict(X_norm, verbose=self.verbose) self.decision_scores_ = pairwise_distances_no_broadcast(X_norm, pred_scores) self._process_decision_scores() @@ -290,5 +290,5 @@ def decision_function(self, X): X_norm = np.copy(X) # Predict on X and return the reconstruction errors - pred_scores = self.model_.predict(X_norm) + pred_scores = self.model_.predict(X_norm, verbose=self.verbose) return pairwise_distances_no_broadcast(X_norm, pred_scores)