Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Mar 27, 2019
1 parent a8aece6 commit f07ef32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ alpha/
.eggs/
*.egg-info/
.coverage
.coverage.*

!torch_geometric/data/
!test/data/
Expand Down
3 changes: 1 addition & 2 deletions test/nn/models/test_autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def test_gae():
assert data.train_neg_adj_mask.sum().item() == (11**2 - 11) / 2 - 4 - 6 - 5

z = torch.randn(11, 16)
loss = model.recon_loss(z, data.train_pos_edge_index,
data.train_neg_adj_mask)
loss = model.recon_loss(z, data.train_pos_edge_index)
assert loss.item() > 0

auc, ap = model.test(z, data.val_pos_edge_index, data.val_neg_edge_index)
Expand Down

0 comments on commit f07ef32

Please sign in to comment.