Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update auto_encoder.py #556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyod/models/auto_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)