Learn/Data Science/Healthcare
AdvancedHealthcarePYTHON+20 XP

Readmission model: pick the honest metric

Scenario

You are a data scientist. Only 8 out of every 100 patients return to hospital. A model can look accurate by always guessing ‘no’. We need a fairer check.

Question

Keep some rows for testing, teach the model with the other rows, then count how many returning patients it found.

Advanced · Data Filtering & Record Counting — question 1 of 30

Finish all 30 to earn a certificate

1. Choose your dataset

Pick an industry and a size. Your code and results change to match.

📓 DataPro notebookds-health-01.ipynbFileEditViewRunKernel: Python 3
[md]

Readmission model: pick the honest metric

Keep some rows for testing, teach the model with the other rows, then count how many returning patients it found.

In [1]:

Your code cell is below. Press Check my answer to run the cell — the result appears as Out [1].

python editor
Type your code here ↓
✍️ Tap here to type

Dataset & schema

discharges

The tiny starter data. Bigger data scrolls.

Fields

agelength_of_stayprior_admissionsreadmitted_30d
71931
44200
831441
29100
attempts: 0
▶ Output terminal
$ Press “Check my answer” — results appear here.

Your next steps

Each item turns green when your answer includes it.

5 left
  • Splits the data
  • Fixes randomness
  • Fits a model
  • Reports recall
  • Shows confusion matrix