Schema#

class sdm.prior.tabular.Schema(column_dims: tuple[int, ...], target_dim: int)#

Bases: object

Specification of a dataset.

Parameters:
  • column_dims (tuple[int, ...]) – One entry per feature: 1 for numerical features, otherwise the number of possible categories.

  • target_dim (int) – 1 for regression, or the number of possible classes for classification.

property task_type: Task#

Return the task implied by the target size.

property num_columns: int#

Return the feature count.