# California Housing

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

`libsvm:cadata@1` · Registry `1.2.0`. Default version in this registry. 

California housing regression data distributed through the LIBSVM dataset collection. 

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

## Dimensions and tasks

| Task | Type | Split | Samples | Predictors |
| --- | --- | --- | --- | --- |
| default | regression | — | 20,640 | 8 |

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.2.0",
    index_sha256="4b4e6aeb71ad7e53c3596a725e62008c76c27a59ac68c53a02432898ec8b6f21",
    index_url="https://github.com/jolars/datamonger/releases/download/registry-v1.2.0/index.json",
)
data = fetch_data("libsvm:cadata@1", registry=registry)
```

<a id="r"></a>

### R

```r
library(datamonger)

registry <- registry_selector(
  release = "1.2.0",
  index_sha256 = "4b4e6aeb71ad7e53c3596a725e62008c76c27a59ac68c53a02432898ec8b6f21",
  index_url = "https://github.com/jolars/datamonger/releases/download/registry-v1.2.0/index.json"
)
data <- fetch_data("libsvm:cadata@1", registry = registry)
```

<a id="julia"></a>

### Julia

```julia
using Datamonger

registry = registry_selector(
    "1.2.0",
    "4b4e6aeb71ad7e53c3596a725e62008c76c27a59ac68c53a02432898ec8b6f21",
    "https://github.com/jolars/datamonger/releases/download/registry-v1.2.0/index.json",
)
data = fetch_data("libsvm:cadata@1"; registry=registry)
```

<a id="cli"></a>

### CLI

```sh
cat > datamonger-registry.json <<'JSON'
{
  "index_sha256": "4b4e6aeb71ad7e53c3596a725e62008c76c27a59ac68c53a02432898ec8b6f21",
  "index_url": "https://github.com/jolars/datamonger/releases/download/registry-v1.2.0/index.json",
  "release": "1.2.0",
  "schema_version": 1
}
JSON
datamonger --selector datamonger-registry.json fetch 'libsvm:cadata@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 | 20,640 × 8 |
| response | vector | float64 | 20,640 |

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

## Preprocessing

Preprocessing history is not recorded in this registry release. 

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

## Provenance and citation

Provider: LIBSVM. Upstream name: cadata. Retrieved: 2026-09-06. 

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

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

## License

Unknown 

The LIBSVM dataset page identifies the source but provides no license terms for the distributed artifact. 

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

## Artifacts

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

| Artifact | Format | Compression | Size | Distribution | Preservation |
| --- | --- | --- | --- | --- | --- |
| data | libsvm | none | 4.6 MiB | upstream-only | unknown |

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

<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/a4f8ba6c3b9296e33ee9680eb9f48b964cf08ebb1a464211bd2c3bf7c4670e86.bin>), [registry selector](<../../../assets/8672628c645b749fa42711c6bd53ffd2b65138f37352b9d6531e466c9b9d26d0.bin>), or [full registry index](<https://github.com/jolars/datamonger/releases/download/registry-v1.2.0/index.json>). 

Index SHA-256: `4b4e6aeb71ad7e53c3596a725e62008c76c27a59ac68c53a02432898ec8b6f21`.
