Skip to content

Dataset

Dataset dataclass

Dataset(X=None, y=None)

Base class for datasets.

Parameters:

  • X (Optional[Num[Array, 'N D']], default: None ) –

    input data.

  • y (Optional[Num[Array, 'N Q']], default: None ) –

    output data.

n property

n

Number of observations.

in_dim property

in_dim

Dimension of the inputs, \(X\).

is_supervised

is_supervised()

Returns True if the dataset is supervised.

is_unsupervised

is_unsupervised()

Returns True if the dataset is unsupervised.

__add__

__add__(other)

Combine two datasets. Right hand dataset is stacked beneath the left.