News20 Binary
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
=
=
R
registry <-
data <-
Julia
using
=
=
CLI
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.
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
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 |
Versions in this registry
1 (default)
Registry record
Download the complete registry record, registry selector, or full registry index.
Index SHA-256: 94639f8d711d64895689d6da87add0f0f56574070262ec2a04f1f1ad43279f85.
