# datamonger.SparseDataset

Datamonger for Python · 0.4.0

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

<a id="constructor"></a>

```python
SparseDataset(features: scipy.sparse.csr_matrix, response: ResponseArray)
```

A named sparse feature matrix and its response vector.

<a id="features"></a>

## `features`

```python
features: scipy.sparse.csr_matrix = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Float64 feature matrix in CSR format, with one row per observation.

<a id="response"></a>

## `response`

```python
response: ResponseArray = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Int64 or float64 response vector aligned with the feature matrix’s rows.
