Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CoxPHFitter.predict() gives just inf values

See original GitHub issue

CoxPH method returns all inf for predict method. This is my code.

df_train = df.head(1000)
df_test = df.tail(200)
cf = CoxPHFitter(), '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:closed
  • Created 8 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

joshlkcommented, Feb 4, 2021

Duplicate link #189

CamDavidsonPiloncommented, Dec 14, 2015

closed for being a duplicate

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found