BaşlayınÜcretsiz Başlayın

Choose a parametric model

Given lifelines offers a variety of parametric models, you want to find the best model for the heart patients DataFrame heart_patients.

Use the AIC score to assess the fit of each model below:

  • The Weibull model: WeibullFitter
  • The Exponential model: ExponentialFitter
  • The Log Normal mode: LogNormalFitter

All lifelines fitters above have been imported for you. The pandas and numpy libraries are imported as pd and np, respectively. Use the console to explore the DataFrame and its column names as needed.

Bu egzersiz

Survival Analysis in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Instantiate each fitter
wb = ____
exp = ____
log = ____
Kodu Düzenle ve Çalıştır