Skip to content

Commit

Permalink
Update dcm_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chirag Nagpal authored Nov 3, 2021
1 parent 482bfe7 commit eb11c27
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions dsm/contrib/dcm_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from dsm.contrib.dcm_utilities import train_dcm, predict_survival


class DeepCoxMixtures():
class DeepCoxMixtures:
"""A Deep Cox Mixture model.
This is the main interface to a Deep Cox Mixture model.
Expand Down Expand Up @@ -35,13 +35,9 @@ class DeepCoxMixtures():
>>> model.fit(x, t, e)
"""
def __init__(self, k=3, layers=None, distribution="Weibull",
temp=1000., discount=1.0):
def __init__(self, k=3, layers=None):
self.k = k
self.layers = layers
self.dist = distribution
self.temp = temp
self.discount = discount
self.fitted = False

def __call__(self):
Expand Down Expand Up @@ -178,4 +174,4 @@ def predict_survival(self, x, t):
else:
raise Exception("The model has not been fitted yet. Please fit the " +
"model using the `fit` method on some training data " +
"before calling `predict_survival`.")
"before calling `predict_survival`.")

0 comments on commit eb11c27

Please sign in to comment.