Skip to content

Commit

Permalink
Set explicit value for n_events
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturoAmorQ committed Jul 3, 2024
1 parent d262cfe commit 6cb17cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/plot_marginal_cumulative_incidence_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

X_uncensored, y_uncensored = make_synthetic_competing_weibull(
n_samples=n_samples,
n_events=n_events,
censoring_relative_scale=0,
return_X_y=True,
shape_ranges=shape_ranges,
Expand Down Expand Up @@ -213,6 +214,7 @@ def plot_cumulative_incidence_functions(y, survival_boost=None, aj=None):
# of censoring.
X_censored, y_censored = make_synthetic_competing_weibull(
n_samples=n_samples,
n_events=n_events,
censoring_relative_scale=1.5,
return_X_y=True,
shape_ranges=shape_ranges,
Expand Down

0 comments on commit 6cb17cd

Please sign in to comment.