havakv / pycox

Survival analysis with PyTorch
BSD 2-Clause "Simplified" License
803 stars 188 forks source link

LogisticHazard.fit_transform() error #86

Closed berkuva closed 3 years ago

berkuva commented 3 years ago

I am doing something similar to the LogisticHazard notebook. When I try to run fit_transform(), I get the following error. Please help.

Just fresh-installed pycox. python 3.7.

Screen Shot 2021-06-30 at 12 54 55 AM
berkuva commented 3 years ago

The problem was having negative values in get_dur_ev(df_train)[0].