Skip to content

Commit

Permalink
modified: tests/test_dsm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragnagpal committed Oct 28, 2020
1 parent a3f0fc8 commit d1c2197
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_dsm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest

from dsm import DeepSurvivalMachines
from dsm.dsm_torch import DeepSurvivalMachinesTorch
from dsm import datasets

import numpy as np
Expand All @@ -20,7 +21,7 @@ def test_dsm(self):
self.assertEqual(e.shape, (9105,))

model = DeepSurvivalMachines()
self.assertIsInstance(model, dsm.dsm_api.DeepSurvivalMachines)
self.assertIsInstance(model, DeepSurvivalMachines)
model.fit(x, t, e, iters=10)
self.assertIsInstance(model.torch_model,
dsm.dsm_torch.DeepSurvivalMachinesTorch)
DeepSurvivalMachinesTorch)

0 comments on commit d1c2197

Please sign in to comment.