Skip to content

Commit

Permalink
modified: estimators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragnagpal committed Mar 29, 2022
1 parent 9102022 commit a4debae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion auton_survival/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,13 @@ def fit(self, features, outcomes,
columns as covariates.
outcomes : pd.DataFrame
a pandas dataframe with columns 'time' and 'event'.
weights: list or np.array
a list or numpy array of importance weights for each sample.
resample_size: float
a float between 0 and 1 that controls the size of the resampled dataset.
weights_clip: float
a float that controls the minimum and maximum importance weight.
(To reduce estimator variance.)
Returns
--------
Expand Down Expand Up @@ -756,4 +763,4 @@ def predict_counterfactual_risk(self, features, times):
control_outcomes = self.control_model.predict_risk(features, times)
treated_outcomes = self.treated_model.predict_risk(features, times)

return treated_outcomes, control_outcomes
return treated_outcomes, control_outcomes

0 comments on commit a4debae

Please sign in to comment.