Skip to content

Commit

Permalink
Remove timeline parameter. It is not really needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
julianspaeth committed Oct 16, 2019
1 parent ffbdf0b commit 059a3af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions random_survival_forest/SurvivalTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ class SurvivalTree:

prediction_possible = None

def __init__(self, x, y, f_idxs, n_features, timeline, unique_deaths=3, min_leaf=3, random_state=None):
def __init__(self, x, y, f_idxs, n_features, unique_deaths=3, min_leaf=3, random_state=None):
"""
A Survival Tree to predict survival.
:param x: The input samples. Should be a Dataframe with the shape [n_samples, n_features].
:param y: The target values as a Dataframe with the survival time in the first column and the event.
:param f_idxs: The indices of the features to use.
:param n_features: The number of features to use.
:param timeline: The timeline used for the prediction.
:param unique_deaths: The minimum number of unique deaths required to be at a leaf node.
:param min_leaf: The minimum number of samples required to be at a leaf node. A split point at any depth will
only be considered if it leaves at least min_leaf training samples in each of the left and right branches.
Expand All @@ -23,7 +22,6 @@ def __init__(self, x, y, f_idxs, n_features, timeline, unique_deaths=3, min_leaf
self.y = y
self.f_idxs = f_idxs
self.n_features = n_features
self.timeline = timeline
self.min_leaf = min_leaf
self.unique_deaths = unique_deaths
self.random_state = random_state
Expand Down

0 comments on commit 059a3af

Please sign in to comment.