'How to predict risk scores with Cox models using lifelines package?

I have made multiple cox models with Lifelines package and I am trying to predict the risk score of each individual following information in CoxPhFitter page. predict_hazard is a suggested command in that page, but when I use it to predict risk scores, it runs into an error: CoxPHFitter has no attribute 'predict_hazard'. Has anyone else seen such error with predict_hazard?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source