Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- tabular-classification
|
| 5 |
+
- tabular-regression
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
+
- 1K<n<10K
|
| 11 |
+
tags:
|
| 12 |
+
- imputation
|
| 13 |
+
- missing-data
|
| 14 |
+
- tabular
|
| 15 |
+
pretty_name: imputify datasets
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: iris
|
| 18 |
+
data_files: iris.parquet
|
| 19 |
+
- config_name: wine
|
| 20 |
+
data_files: wine.parquet
|
| 21 |
+
- config_name: diabetes
|
| 22 |
+
data_files: diabetes.parquet
|
| 23 |
+
- config_name: breast_cancer
|
| 24 |
+
data_files: breast_cancer.parquet
|
| 25 |
+
- config_name: titanic
|
| 26 |
+
data_files: titanic.parquet
|
| 27 |
+
- config_name: heart_disease
|
| 28 |
+
data_files: heart_disease.parquet
|
| 29 |
+
- config_name: blood_transfusion
|
| 30 |
+
data_files: blood_transfusion.parquet
|
| 31 |
+
- config_name: thalassemia
|
| 32 |
+
data_files: thalassemia.parquet
|
| 33 |
+
- config_name: ilpd
|
| 34 |
+
data_files: ilpd.parquet
|
| 35 |
+
- config_name: spas_agri
|
| 36 |
+
data_files: spas_agri.parquet
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
# imputify datasets
|
| 40 |
+
|
| 41 |
+
Curated tabular datasets bundled with the [`imputify`](https://github.com/gabfssilva/imputify)
|
| 42 |
+
library for examples, tests, and missing-data benchmarks. Every file is a single parquet:
|
| 43 |
+
feature columns first, target column last, no missing values. Column names are
|
| 44 |
+
`snake_case`; columns that the upstream sources include for identification but not
|
| 45 |
+
modeling (IDs, free-text names) have been dropped.
|
| 46 |
+
|
| 47 |
+
## Usage
|
| 48 |
+
|
| 49 |
+
```python
|
| 50 |
+
from imputify import load, introduce_missing
|
| 51 |
+
|
| 52 |
+
X, y = load("iris") # clean
|
| 53 |
+
X_missing, mask = introduce_missing(X, 0.3) # ampute for experiments
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
`load` caches downloads through `huggingface_hub` (default `~/.cache/huggingface/hub`).
|
| 57 |
+
The complete catalogue is exposed as `imputify.DATASETS` and the literal type as
|
| 58 |
+
`imputify.Dataset`.
|
| 59 |
+
|
| 60 |
+
## Catalogue
|
| 61 |
+
|
| 62 |
+
| Name | Rows | Features | Numeric | Categorical | Target dtype | Original source |
|
| 63 |
+
|------|-----:|---------:|--------:|------------:|--------------|-----------------|
|
| 64 |
+
| `iris` | 150 | 4 | 4 | 0 | `int64` | `sklearn.datasets.load_iris` (Fisher, 1936) |
|
| 65 |
+
| `wine` | 178 | 13 | 13 | 0 | `int64` | `sklearn.datasets.load_wine` (UCI Wine Recognition) |
|
| 66 |
+
| `diabetes` | 442 | 10 | 10 | 0 | `float64` | `sklearn.datasets.load_diabetes` (Efron et al., 2004) |
|
| 67 |
+
| `breast_cancer` | 569 | 30 | 30 | 0 | `int64` | `sklearn.datasets.load_breast_cancer` (UCI WDBC) |
|
| 68 |
+
| `titanic` | 1 043 | 7 | 5 | 2 | `category` | OpenML `titanic` |
|
| 69 |
+
| `heart_disease` | 270 | 13 | 13 | 0 | `category` | UCI Heart Disease / OpenML `heart-statlog` |
|
| 70 |
+
| `blood_transfusion` | 748 | 4 | 4 | 0 | `category` | UCI Blood Transfusion Service Center |
|
| 71 |
+
| `thalassemia` | 606 | 18 | 12 | 6 | `object` | Kaggle-derived clinical dataset |
|
| 72 |
+
| `ilpd` | 583 | 10 | 9 | 1 | `category` | UCI Indian Liver Patient Dataset (ILPD) |
|
| 73 |
+
| `spas_agri` | 4 191 | 14 | 9 | 5 | `object` | Kaggle-derived agricultural dataset |
|
| 74 |
+
|
| 75 |
+
Counts come from running the loader once: rows = `len(X)`, features = `X.shape[1]`,
|
| 76 |
+
numeric/categorical split = `select_dtypes(...)`.
|
| 77 |
+
|
| 78 |
+
## Format
|
| 79 |
+
|
| 80 |
+
Each parquet has the **target** as the last column. `imputify.load(name)` splits it back
|
| 81 |
+
into `(X, y)`:
|
| 82 |
+
|
| 83 |
+
```python
|
| 84 |
+
df = pd.read_parquet("iris.parquet")
|
| 85 |
+
X, y = df.drop(columns=["target"]), df["target"]
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
Categorical features are stored as pandas `category` (titanic) or `object`
|
| 89 |
+
(thalassemia, spas_agri) and round-trip through parquet without manual casting.
|
| 90 |
+
|
| 91 |
+
## Licensing & attribution
|
| 92 |
+
|
| 93 |
+
Datasets carry their original licences. `iris`, `wine`, `diabetes`, and `breast_cancer`
|
| 94 |
+
ship with scikit-learn (BSD-compatible). The UCI / OpenML datasets are redistributed
|
| 95 |
+
under their respective terms — cite the original sources in publications. The
|
| 96 |
+
`thalassemia` and `spas_agri` derivatives keep the upstream Kaggle terms.
|