CoxPHFitter.predict() gives just inf values
See original GitHub issueCoxPH method returns all inf for predict method. This is my code.
df_train = df.head(1000)
df_test = df.tail(200)
cf = CoxPHFitter()
cf.fit(df_train, 'd', event_col = 'o')
df_test_norm = normalize(df_test, mean=cf._norm_mean, std=cf._norm_std)
print cf.predict(df_test_norm)
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
CoxPHFitter.predict() gives many 'inf' values #189 - GitHub
The Cox proportional hazards method "predict" returns 'inf' the majority of the time, on average, for several data sets.
Read more >CoxPHFitter — lifelines 0.27.4 documentation - Read the Docs
Predict the survival function for individuals, given their covariates. This assumes that the individual just entered the study (that is, we do not...
Read more >Measuring Cox PH predictions - Cross Validated
I'm running a Cox PH model in python using lifelines package. The two performance measures this package offers is log-likelihood or concordance ...
Read more >lifelines Documentation - Read the Docs
While the above KaplanMeierFitter model is useful, it only gives us an “average” view of the population. Often.
Read more >Survival Analysis 03: Modeling Hazards - Databricks
Each attribute included in the model alters this risk in a fixed (proportional) manner. When we drop one of our one-hot columns, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Duplicate link #189
closed for being a duplicate