Datamonger

RCV1-v2 Topics

Browse datasets

datamonger:lewis2004@1 · Registry 1.9.0. Default version in this registry.

Multilabel topic classification benchmark from the Reuters English-language newswire corpus. The original LYRL2004 split contains 23,149 training documents and 781,265 test documents. Both splits use 47,236 weighted term features and the same 103 topic codes. Document IDs align with the matrix rows.

Dimensions and tasks

Task

Type

Split

Rows

Columns

Feature columns

default

classification

test

781,265

47,340

47,236

default

classification

train

23,149

47,340

47,236

Rows and columns describe the decoded table for each split. Feature columns count the inputs selected by each task.

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.

Python

from datamonger import Registry, fetch_data

registry = Registry(
    release="1.9.0",
    index_sha256="bea311f882e32144834591edda0a0cecdd602bedee6fddb0463393f9e166d2de",
    index_url="https://github.com/jolars/datamonger/releases/download/registry-v1.9.0/index.json",
)
data = fetch_data("datamonger:lewis2004@1", registry=registry)

R

library(datamonger)

registry <- registry_selector(
  release = "1.9.0",
  index_sha256 = "bea311f882e32144834591edda0a0cecdd602bedee6fddb0463393f9e166d2de",
  index_url = "https://github.com/jolars/datamonger/releases/download/registry-v1.9.0/index.json"
)
data <- fetch_data("datamonger:lewis2004@1", registry = registry)

Julia

using Datamonger

registry = registry_selector(
    "1.9.0",
    "bea311f882e32144834591edda0a0cecdd602bedee6fddb0463393f9e166d2de",
    "https://github.com/jolars/datamonger/releases/download/registry-v1.9.0/index.json",
)
data = fetch_data("datamonger:lewis2004@1"; registry=registry)

CLI

cat > datamonger-registry.json <<'JSON'
{
  "index_sha256": "bea311f882e32144834591edda0a0cecdd602bedee6fddb0463393f9e166d2de",
  "index_url": "https://github.com/jolars/datamonger/releases/download/registry-v1.9.0/index.json",
  "release": "1.9.0",
  "schema_version": 1
}
JSON
datamonger --selector datamonger-registry.json fetch 'datamonger:lewis2004@1'

Representation and variables

Tabular data with a sparse representation. Decoder: sparse-label-join version 1.

Component

Kind

Type

Shape

train/features

sparse_matrix

float64

23,149 × 47,236

train/response

sparse_matrix

float64

23,149 × 103

train/document_id

vector

int64

23,149

test/features

sparse_matrix

float64

781,265 × 47,236

test/response

sparse_matrix

float64

781,265 × 103

test/document_id

vector

int64

781,265

label_codes

vector

string

103

Preprocessing

Upstream

Status: documented.

feature-extraction. Use the paper's cosine-normalized log term frequency by inverse document frequency weights over stemmed terms with the original chronological split.

Evidence: https://jmlr.org/papers/volume5/lewis04a/lewis04a.pdf

Datamonger

Status: documented.

label-encoding. Join Appendix 8 topics to Appendix 13 vectors by document ID. Encode topic columns in lexicographic order and preserve vector order within each shard.

Evidence: spec/decoders.md#sparse-label-join-version-1

Provenance and citation

Provider: Lewis et al. (JMLR appendices), via the files used by scikit-learn. Upstream name: RCV1-v2/LYRL2004. Retrieved: 2026-11-27.

Original source

Authors: David D. Lewis, Yiming Yang, Tony G. Rose, Fan Li.

Lewis, D. D., Yang, Y., Rose, T. G., and Li, F. (2004). RCV1: A New Benchmark Collection for Text Categorization Research. Journal of Machine Learning Research 5, 361–397. https://jmlr.org/papers/v5/lewis04a.html

Acknowledge Reuters as the source corpus provider.

License

Unknown

License information

Section 7 reports Reuters' permission for the authors to distribute the token and vector files without a license agreement. The reviewed sources do not establish downstream redistribution terms for these vectors and topic assignments.

Artifacts

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

Artifact

Format

Compression

Size

Distribution

Preservation

labels

label-assignments

gzip

6.9 MiB

upstream-only

unknown

train

id-sparse

gzip

17.7 MiB

upstream-only

unknown

test_0

id-sparse

gzip

152.3 MiB

upstream-only

unknown

test_1

id-sparse

gzip

154.2 MiB

upstream-only

unknown

test_2

id-sparse

gzip

151.1 MiB

upstream-only

unknown

test_3

id-sparse

gzip

142.4 MiB

upstream-only

unknown

labels: upstream

train: upstream

test_0: upstream

test_1: upstream

test_2: upstream

test_3: upstream

Versions in this registry

1 (default)

Registry record

Download the complete registry record, registry selector, or full registry index.

Index SHA-256: bea311f882e32144834591edda0a0cecdd602bedee6fddb0463393f9e166d2de.