Danger

You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software

Click here to go to the new docs pages.

sdv.lite.tabular.TabularPreset

class sdv.lite.tabular.TabularPreset(name=None, metadata=None, constraints=None)[source]

Class for all tabular model presets.

Parameters
  • name (str) – The preset to use.

  • metadata (dict or metadata.Table) – Table metadata instance or dict representation.

  • constraints (list[Constraint, dict]) – List of Constraint objects or dicts.

__init__(name=None, metadata=None, constraints=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([name, metadata, constraints])

Initialize self.

fit(data)

Fit this model to the data.

list_available_presets([out])

List the available presets and their descriptions.

load(path)

Load a TabularModel instance from a given path.

sample(num_rows[, randomize_samples, …])

Sample rows from this table.

sample_conditions(conditions[, …])

Sample rows from this table with the given conditions.

sample_remaining_columns(known_columns[, …])

Sample rows from this table.

save(path)

Save this model instance to the given path using cloudpickle.