Datamonger

News20 Binary

Browse datasets

libsvm:news20-binary@1 · Registry 1.3.0. Default version in this registry.

LIBSVM's binary classification variant of 20 Newsgroups, with 19,996 documents and 1,355,191 sparse text features. Nonzero feature vectors have approximately unit length; 42 documents have no stored features. The provider supplies a single artifact without a predefined training and test split. Feature values, binary labels, and row order are preserved.

Dimensions and tasks

Task

Type

Split

Samples

Predictors

default

classification

—

19,996

1,355,191

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

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.3.0",
    index_sha256="94639f8d711d64895689d6da87add0f0f56574070262ec2a04f1f1ad43279f85",
    index_url="https://github.com/jolars/datamonger/releases/download/registry-v1.3.0/index.json",
)
data = fetch_data("libsvm:news20-binary@1", registry=registry)

R

library(datamonger)

registry <- registry_selector(
  release = "1.3.0",
  index_sha256 = "94639f8d711d64895689d6da87add0f0f56574070262ec2a04f1f1ad43279f85",
  index_url = "https://github.com/jolars/datamonger/releases/download/registry-v1.3.0/index.json"
)
data <- fetch_data("libsvm:news20-binary@1", registry = registry)

Julia

using Datamonger

registry = registry_selector(
    "1.3.0",
    "94639f8d711d64895689d6da87add0f0f56574070262ec2a04f1f1ad43279f85",
    "https://github.com/jolars/datamonger/releases/download/registry-v1.3.0/index.json",
)
data = fetch_data("libsvm:news20-binary@1"; registry=registry)

CLI

cat > datamonger-registry.json <<'JSON'
{
  "index_sha256": "94639f8d711d64895689d6da87add0f0f56574070262ec2a04f1f1ad43279f85",
  "index_url": "https://github.com/jolars/datamonger/releases/download/registry-v1.3.0/index.json",
  "release": "1.3.0",
  "schema_version": 1
}
JSON
datamonger --selector datamonger-registry.json fetch 'libsvm:news20-binary@1'

Representation and variables

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

Component

Kind

Type

Shape

features

sparse_matrix

float64

19,996 × 1,355,191

response

vector

int64

19,996

Preprocessing

Upstream

Status: documented.

The provider page does not describe the earlier text feature preparation or the mapping from newsgroups to the two labels. Artifact inspection finds 42 zero-feature documents; nonzero vectors have unit length within the precision of the stored values.

normalization. Normalize each document's feature vector to unit length.

Parameters: axis: rows; norm: l2.

Evidence: https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#news20.binary

Datamonger

Status: none.

Datamonger decodes the provider artifact without additional statistical preprocessing.

Evidence: spec/decoders/libsvm-v1.md

Provenance and citation

Provider: LIBSVM. Upstream name: news20.binary. Retrieved: 2026-10-20.

Original source

Authors: S. Sathiya Keerthi, Dennis DeCoste.

S. Sathiya Keerthi and Dennis DeCoste. A Modified Finite Newton Method for Fast Solution of Large Scale Linear SVMs. Journal of Machine Learning Research, 6:341-361, 2005. https://www.jmlr.org/papers/v6/keerthi05a.html

License

Unknown

License information

The LIBSVM dataset page identifies the source publication and documents normalization, but provides no license terms for this artifact. The LIBSVM software license does not establish a license for the dataset.

Artifacts

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

Artifact

Format

Compression

Size

Distribution

Preservation

data

libsvm

bzip2

25.5 MiB

upstream-only

unknown

data: upstream

Versions in this registry

1 (default)

Registry record

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

Index SHA-256: 94639f8d711d64895689d6da87add0f0f56574070262ec2a04f1f1ad43279f85.