Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chirag Nagpal authored Apr 10, 2022
1 parent 2517e50 commit 45083c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions auton_survival/models/dsm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,17 +505,18 @@ class DeepRecurrentSurvivalMachines(DSMBase):
"""

def __init__(self, k=3, layers=None, hidden=None,
distribution="Weibull", temp=1000., discount=1.0, typ="LSTM"):
distribution="Weibull", temp=1000., discount=1.0, typ="LSTM",
random_seed=0):
super(DeepRecurrentSurvivalMachines, self).__init__(k=k,
layers=layers,
distribution=distribution,
temp=temp,
discount=discount,
random_seed=0)
random_seed=random_seed)
self.hidden = hidden
self.typ = typ
self.random_seed = random_seed

def _gen_torch_model(self, inputdim, optimizer, risks):
"""Helper function to return a torch model."""

Expand Down

0 comments on commit 45083c3

Please sign in to comment.