Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul committed Jul 6, 2022
1 parent 2fb1b37 commit 495697d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xgbse/non_parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def calculate_survival_func(E_sorted):
# number of elements at risk
at_risk = np.r_[n_samples, np.arange(n_samples, 0, -1)]

# product argument for surivial
# product argument for survival
survival_prod_arg = 1 - (E_sorted / at_risk)

return np.cumprod(survival_prod_arg, axis=1)
Expand Down

0 comments on commit 495697d

Please sign in to comment.