soda-inria / hazardous

Competing Risks and Survival Analysis
https://soda-inria.github.io/hazardous/
MIT License
45 stars 11 forks source link

make_synthetic_competing_weibull function returns error with default parameters #64

Closed jovan-stojanovic closed 1 month ago

jovan-stojanovic commented 1 month ago

The dataset generating function make_synthetic_competing_weibull with default parameters (when return_X_y=False):

make_synthetic_competing_weibull()

outputs the following error:

[...]
--> 104 return Bunch(data=frame[X.columns], target=X[y.columns], frame=frame)
[...]
KeyError: "None of [Index(['event', 'duration'], dtype='object')] are in the [columns]"
jovan-stojanovic commented 1 month ago

Sorry, didn't see it was WIP in #25