Learn practical skills, build real-world projects, and advance your career

AI4M Course 2 Week 3 lecture notebook

Count patients

import numpy as np
import pandas as pd

We'll work with data where:

  • Time: days after a disease is diagnosed and the patient either dies or left the hospital's supervision.
  • Event:
    • 1 if the patient died
    • 0 if the patient was not observed to die beyond the given 'Time' (their data is censored)

Notice that these are the same numbers that you see in the lecture video about estimating survival.