# E2006-tfidf

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

`libsvm:e2006-tfidf@1` · Registry `1.7.0`. Default version in this registry. 

Stock return volatility regression from annual 10-K reports by publicly traded U.S. companies. The features combine prior 12-month log volatility with TF-IDF-weighted unigrams. The response is log volatility in the 12 months after the report. The training split covers reports from 2001 through 2005 and the test split covers 2006. 

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

## Dimensions and tasks

| Task | Type | Split | Samples | Predictors |
| --- | --- | --- | --- | --- |
| default | regression | test | 3,308 | 150,360 |
| default | regression | train | 16,087 | 150,360 |

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:e2006-tfidf@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:e2006-tfidf@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:e2006-tfidf@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:e2006-tfidf@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 | 16,087 × 150,360 |
| train\_response | vector | float64 | 16,087 |
| test\_features | sparse\_matrix | float64 | 3,308 × 150,360 |
| test\_response | vector | float64 | 3,308 |

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

## Preprocessing

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

### Upstream

Status: documented. 

**feature-encoding.** Tokenize the Management's Discussion and Analysis sections of the reports and encode unigrams as TF-IDF. Use log volatility for the 12 months preceding the report as the first feature. 

Parameters: term\_weight: TF-IDF; terms: unigrams. 

**response-transformation.** Use the logarithm of stock return volatility for the 12 months following the report as the response. 

**split-selection.** Train on reports from 2001 through 2005 and test on reports from 2006. 

Parameters: test\_year: 2006; train\_years: 2001-2005. 

Evidence: [https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/regression.html\#E2006-tfidf](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/regression.html#E2006-tfidf>), [https://aclanthology.org/N09-1031.pdf](<https://aclanthology.org/N09-1031.pdf>), [https://www.jmlr.org/papers/volume13/ho12a/ho12a.pdf](<https://www.jmlr.org/papers/volume13/ho12a/ho12a.pdf>), [https://www.cs.cmu.edu/~ark/10K/data/README](<https://www.cs.cmu.edu/~ark/10K/data/README>) 

<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: E2006-tfidf. Retrieved: 2026-11-18. 

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

Authors: Shimon Kogan, Dimitry Levin, Bryan R. Routledge, Jacob S. Sagi, Noah A. Smith. 

Recommended citation. Kogan, S., Levin, D., Routledge, B. R., Sagi, J. S., and Smith, N. A. (2009). Predicting Risk from Financial Reports with Regression. NAACL-HLT, 272-280. [https://aclanthology.org/N09-1031/](<https://aclanthology.org/N09-1031/>). 

The 10-K Corpus providers request this citation for research using the data. 

Ho, C.-H., and Lin, C.-J. (2012). Large-scale Linear Support Vector Regression. Journal of Machine Learning Research, 13, 3323-3348. [https://www.jmlr.org/papers/v13/ho12a.html](<https://www.jmlr.org/papers/v13/ho12a.html>). 

Section 4.1 describes the TFIDF-2006 representation and its train/test split. 

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

## License

Unknown 

[License information](<https://www.cs.cmu.edu/~ark/10K/>) 

Carnegie Mellon University describes the source 10-K Corpus as available for academic research and requests citation of Kogan et al. (2009). The LIBSVM catalog directs users to the source copyrights ([https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/)](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/%29>). License terms for the prepared E2006-tfidf files are unverified. 

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

## Artifacts

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

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

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

[test: upstream](<https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/regression/E2006.test.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/c361f08c17cd2cedb59dfc9b856a1f8294941b898009cda9c726f60eef134f7f.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`.
