task_categories:tabular-classification size_categories:n<1K language:en license:cc heart failure tabular_classification binary_classification UCI region:us
---
language:
- en
tags:
- heart failure
- tabular_classification
- binary_classification
- UCI
pretty_name: Heart failure
size_categories:
- n<1K
task_categories:
- tabular-classification
configs:
- death
license: cc
---
# Heart failure
The [Heart failure dataset](https://www.kaggle.com/datasets/andrewmvd/heart-failure-clinical-data) from Kaggle.
Predict patient death from earth failure given some personal medical data .


# Configurations and tasks
| **Configuration** | **Task**                  | **Description**                                                 |
|-------------------|---------------------------|-----------------------------------------------------------------|
| death             | Binary classification     | Did the patient die?                                            |

# Usage
```python
from datasets import load_dataset

dataset = load_dataset("mstz/heart_failure", "death")["train"]
```


# Features
|**Feature**                                         |**Type**   |
|----------------------------------------------------|-----------|
|`age`                                               |`int8`     |
|`has_anaemia`                                       |`int8`     |
|`creatinine_phosphokinase_concentration_in_blood`   |`float64`  |
|`has_diabetes`                                      |`int8`     |
|`heart_ejection_fraction`                           |`float64`  |
|`has_high_blood_pressure`                           |`int8`     |
|`platelets_concentration_in_blood`                  |`float64`  |
|`serum_creatinine_concentration_in_blood`           |`float64`  |
|`serum_sodium_concentration_in_blood`               |`float64`  |
|`sex`                                               |`int8`     |
|`is_smoker`                                         |`int8`     |
|`days_in_study`                                     |`int64`    |