Skip to content

Commit

Permalink
Add a very simple unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsilter committed Nov 29, 2023
1 parent c2c17ca commit 4dd26b6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_create_sybilnet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import argparse
import datetime
import os

from sybil import Serie, Sybil

def test_create_sybilnet():
from sybil.models.sybil import SybilNet

fake_args = argparse.Namespace(
dropout=0.1,
max_followup=5,
)

sybil_net = SybilNet(fake_args)

assert sybil_net.hidden_dim == 512
assert sybil_net.prob_of_failure_layer is not None

0 comments on commit 4dd26b6

Please sign in to comment.