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 vae.py #557

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
8 changes: 4 additions & 4 deletions pyod/models/vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:cite:`kingma2013auto` Kingma, Diederik, Welling
'Auto-Encodeing Variational Bayes'
https://arxiv.org/abs/1312.6114

:cite:`burgess2018understanding` Burges et al
'Understanding disentangling in beta-VAE'
https://arxiv.org/pdf/1804.03599.pdf
Expand Down Expand Up @@ -221,7 +221,7 @@ def sampling(self, args):
----------
args : tensor
Mean and log of variance of Q(z|X).

Returns
-------
z : tensor
Expand Down Expand Up @@ -349,7 +349,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 @@ -382,5 +382,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)