# Leukemia

[Browse datasets](<../../>) 

`libsvm:leukemia@1` · Registry `1.7.0`. Default version in this registry. 

Human acute leukemia microarray profiles for binary classification of acute lymphoblastic leukemia (ALL) and acute myeloid leukemia (AML). LIBSVM provides separate training and test files with 7,129 probe measurements per sample.  

<a id="dimensions-and-tasks"></a>

## Dimensions and tasks

| Task | Type | Split | Samples | Predictors |
| --- | --- | --- | --- | --- |
| default | classification | test | 34 | 7,129 |
| default | classification | train | 38 | 7,129 |

Predictor counts follow each task's feature selection and exclude targets and identifiers. Sample counts are reported separately for each split. 

<a id="retrieve"></a>

## Retrieve

These examples pin both the dataset version and the registry's exact index. An uncached dataset requires network access to its source. The CLI retrieves verified artifacts. The language clients also decode them. 

<a id="python"></a>

### Python

```python
from datamonger import Registry, fetch_data

registry = Registry(
    release="1.7.0",
    index_sha256="0837dbe2f30bb1235de74b6bd4075aec46ff065ad9d5a408df4cec7a7178fa6e",
    index_url="https://github.com/jolars/datamonger/releases/download/registry-v1.7.0/index.json",
)
data = fetch_data("libsvm:leukemia@1", registry=registry)
```

<a id="r"></a>

### R

```r
library(datamonger)

registry <- registry_selector(
  release = "1.7.0",
  index_sha256 = "0837dbe2f30bb1235de74b6bd4075aec46ff065ad9d5a408df4cec7a7178fa6e",
  index_url = "https://github.com/jolars/datamonger/releases/download/registry-v1.7.0/index.json"
)
data <- fetch_data("libsvm:leukemia@1", registry = registry)
```

<a id="julia"></a>

### Julia

```julia
using Datamonger

registry = registry_selector(
    "1.7.0",
    "0837dbe2f30bb1235de74b6bd4075aec46ff065ad9d5a408df4cec7a7178fa6e",
    "https://github.com/jolars/datamonger/releases/download/registry-v1.7.0/index.json",
)
data = fetch_data("libsvm:leukemia@1"; registry=registry)
```

<a id="cli"></a>

### CLI

```sh
cat > datamonger-registry.json <<'JSON'
{
  "index_sha256": "0837dbe2f30bb1235de74b6bd4075aec46ff065ad9d5a408df4cec7a7178fa6e",
  "index_url": "https://github.com/jolars/datamonger/releases/download/registry-v1.7.0/index.json",
  "release": "1.7.0",
  "schema_version": 1
}
JSON
datamonger --selector datamonger-registry.json fetch 'libsvm:leukemia@1'
```

<a id="representation-and-variables"></a>

## Representation and variables

Tabular data with a sparse representation. Decoder: `libsvm-split` version 1. 

| Component | Kind | Type | Shape |
| --- | --- | --- | --- |
| train\_features | sparse\_matrix | float64 | 38 × 7,129 |
| train\_response | vector | float64 | 38 |
| test\_features | sparse\_matrix | float64 | 34 × 7,129 |
| test\_response | vector | float64 | 34 |

<a id="preprocessing"></a>

## Preprocessing

<a id="upstream"></a>

### Upstream

Status: documented. 

The published normalization uses both splits. Datamonger preserves the supplied split membership. 

**normalization.** Pool the training and test samples and normalize each sample to mean zero and variance one. 

Parameters: axis: rows; mean: 0; variance: 1. 

**normalization.** Then normalize each feature across the pooled samples to mean zero and variance one. 

Parameters: axis: columns; mean: 0; variance: 1. 

Evidence: [https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html\#leukemia](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#leukemia>) 

<a id="datamonger"></a>

### Datamonger

Status: none. 

Evidence: spec/decoders/libsvm-v1.md 

<a id="provenance-and-citation"></a>

## Provenance and citation

Provider: LIBSVM. Upstream name: leukemia. Retrieved: 2026-11-19. 

[Original source](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#leukemia>) 

Authors: T. R. Golub, D. K. Slonim, P. Tamayo, C. Huard, M. Gaasenbeek, J. P. Mesirov, H. Coller, M. L. Loh, J. R. Downing, M. A. Caligiuri, C. D. Bloomfield, E. S. Lander. 

Golub et al. (1999). Molecular classification of cancer, class discovery and class prediction by gene expression monitoring. Science 286(5439), 531–537. [https://doi.org/10.1126/science.286.5439.531](<https://doi.org/10.1126/science.286.5439.531>). 

Shevade and Keerthi (2003). A simple and efficient algorithm for gene selection using sparse logistic regression. Bioinformatics 19(17), 2246–2253. 

LIBSVM cites this paper for preprocessing. 

<a id="license"></a>

## License

Unknown 

The LIBSVM catalog provides both files without dataset-specific license terms. The Golub et al. citation establishes the dataset's origin but supplies no license for the normalized LIBSVM files.  

<a id="artifacts"></a>

## Artifacts

Total download: 2.6 MiB. Sizes describe the distributed files, including any compression. 

| Artifact | Format | Compression | Size | Distribution | Preservation |
| --- | --- | --- | --- | --- | --- |
| train | libsvm | bzip2 | 1.4 MiB | upstream-only | unknown |
| test | libsvm | bzip2 | 1.2 MiB | upstream-only | unknown |

[train: upstream](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary/leu.bz2>) 

[test: upstream](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary/leu.t.bz2>) 

<a id="versions-in-this-registry"></a>

## Versions in this registry

[1](<1>) (default) 

<a id="registry-record"></a>

## Registry record

Download the [complete registry record](<../../../assets/d1020d40608841e8b837c42abb093a27dc76f09484e61f97c892cc1ed93a017b.bin>), [registry selector](<../../../assets/e26e5807615f3888a588180156617f46fb2ac56bccb1299e491860fe7a89295f.bin>), or [full registry index](<https://github.com/jolars/datamonger/releases/download/registry-v1.7.0/index.json>). 

Index SHA-256: `0837dbe2f30bb1235de74b6bd4075aec46ff065ad9d5a408df4cec7a7178fa6e`.
