SDV (Synthetic Data Vault) is a Python library that allows users to generate synthetic data for various data types, including single tables, multi-table relational datasets, and sequential data. It provides a range of models and tools to create high-quality synthetic data that preserves the statistical properties and privacy of the original data. As of version 1.36.0, it continues to be actively developed, with a regular release cadence to add new features and improve existing models.
pip install sdvVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to load a demo dataset, initialize a `GaussianCopulaSynthesizer` with the dataset's metadata, fit the synthesizer to the real data, and then sample synthetic data. This is a common workflow for single-table synthetic data generation.
Update your imports. For single-table synthesizers, use `from sdv.single_table import ...`. For multi-table, `from sdv.multi_table import ...`, and for sequential, `from sdv.sequential import ...`.
Manually create and pass `SingleTableMetadata` or `MultiTableMetadata` objects. Define primary keys, relationships, data types, and potentially privacy considerations explicitly for best results.
Consider downsampling your data for initial experimentation. Ensure your environment has sufficient RAM. For production-scale needs, explore SDV's performance optimization features or consider distributed processing frameworks if applicable.
Change your import statement from `from sdv.models import SynthesizerName` to `from sdv.single_table import SynthesizerName` (or `multi_table`/`sequential` as appropriate).
Preprocess your data to convert unsupported columns into one of the supported types. Explicitly define column types in your `sdv.metadata` object to guide the synthesizer.
Ensure your training data has a sufficient number of rows (typically several dozens or hundreds at minimum, depending on complexity) to provide enough statistical information for the model. SDV is not designed for extremely small datasets.
No dependency data recorded yet.