IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
ソースを参照

Small fix.

master
Stanislaw Adaszewski 4年前
コミット
bf39e7d71f
1個のファイルの変更4行の追加1行の削除
  1. +4
    -1
      tests/triacontagon/test_sampling.py

+ 4
- 1
tests/triacontagon/test_sampling.py ファイルの表示

@@ -20,16 +20,19 @@ def test_get_true_classes_01():
print('true_classes:', true_classes)
assert torch.all(true_classes == torch.tensor([
[1, 3],
[1, 3],
[4, -1],
[0, 1],
[0, 1],
[2, 4],
[2, 4],
[1, -1]
]))
def test_get_true_classes_02():
adj_mat = torch.rand(2000, 2000).round().to_sparse()
adj_mat = (torch.rand(2000, 2000) < 0.1).to_sparse()
t = time.time()
true_classes = get_true_classes(adj_mat)


読み込み中…
キャンセル
保存