# Real vs. Simulated

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

`libsvm:real-sim@1` · Registry `1.7.0`. Default version in this registry. 

LIBSVM's binary text classification dataset for real versus simulated auto and aviation discussions, prepared from Andrew McCallum's SRAA UseNet collection by Vikas Sindhwani for SVMlin. It contains 72,309 articles and 20,958 sparse features. Its numeric labels are -1 and 1, and 108 articles have no stored features. The provider supplies one artifact without a predefined training and test split. Feature values, labels, and source row order are preserved. 

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

## Dimensions and tasks

| Task | Type | Split | Samples | Predictors |
| --- | --- | --- | --- | --- |
| default | classification | — | 72,309 | 20,958 |

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:real-sim@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:real-sim@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:real-sim@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:real-sim@1'
```

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

## Representation and variables

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

| Component | Kind | Type | Shape |
| --- | --- | --- | --- |
| features | sparse\_matrix | float64 | 72,309 × 20,958 |
| response | vector | int64 | 72,309 |

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

## Preprocessing

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

### Upstream

Status: unknown. 

LIBSVM credits Vikas Sindhwani with preprocessing for SVMlin, but does not describe the text feature extraction, weighting, normalization, sample selection, or mapping of the two classes to numeric labels. McCallum describes 73,218 original SRAA articles, whereas the prepared real-sim artifact has 72,309 rows; the selection rule is not established. 

Evidence: [https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html\#real-sim](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#real-sim>), [https://people.cs.umass.edu/~mccallum/data.html](<https://people.cs.umass.edu/~mccallum/data.html>), [https://vikas.sindhwani.org/svmlin.html](<https://vikas.sindhwani.org/svmlin.html>) 

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

### Datamonger

Status: none. 

Datamonger decodes the provider artifact without additional statistical preprocessing. 

Evidence: spec/decoders/libsvm-v1.md 

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

## Provenance and citation

Provider: LIBSVM. Upstream name: real-sim. Retrieved: 2026-11-09. 

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

Authors: Andrew McCallum, Vikas Sindhwani. 

Andrew McCallum. SRAA: Simulated/Real/Aviation/Auto UseNet data. [https://people.cs.umass.edu/~mccallum/data.html](<https://people.cs.umass.edu/~mccallum/data.html>). Prepared by Vikas Sindhwani for SVMlin, [https://vikas.sindhwani.org/svmlin.html](<https://vikas.sindhwani.org/svmlin.html>). Chih-Chung Chang and Chih-Jen Lin. LIBSVM: A Library for Support Vector Machines. ACM Transactions on Intelligent Systems and Technology, 2:27:1-27:27, 2011. [https://www.csie.ntu.edu.tw/~cjlin/libsvm/](<https://www.csie.ntu.edu.tw/~cjlin/libsvm/>). 

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

## License

Unknown 

[License information](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#real-sim>) 

The LIBSVM dataset page credits the source and preprocessing but provides no dataset-specific license terms. McCallum's SRAA description also does not state a license. The LIBSVM and SVMlin software licenses do not establish a license for the distributed dataset. 

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

## Artifacts

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

| Artifact | Format | Compression | Size | Distribution | Preservation |
| --- | --- | --- | --- | --- | --- |
| data | libsvm | bzip2 | 33.6 MiB | upstream-only | unknown |

[data: upstream](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary/real-sim.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/00b96f1007661a624f2069da278b9c8a495071628093ac71e64471b7d26599b5.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`.
