sdmetrics
Metrics for Synthetic Data Generation Projects
What it is and what it does
SDMetrics is a library for evaluating synthetic data by comparing it to the original real data. It computes metrics across multiple dimensions—column shapes, pair trends, boundary adherence, row novelty—and packages them into interactive reports with visualizations. The library is model-agnostic: it works with any synthetic data regardless of the generation method, asking only for the real data, synthetic data, and metadata describing the schema.
The package sits within the Synthetic Data Vault ecosystem and is designed for teams that need to measure and communicate data quality and privacy. It includes both high-level report generators (QualityReport) and granular metric functions you can call directly. Reports can be saved, loaded, and shared; visualizations are built on Plotly.
Use it for:
- Generate a quality report comparing synthetic and real data to validate a synthetic data generation pipeline before deployment.
- Compute individual metrics like BoundaryAdherence or NewRowSynthesis to audit specific synthetic data properties.
- Save and share evaluation reports with stakeholders to document synthetic data fitness for downstream use.
- Benchmark multiple synthetic data generation models by running the same metrics across their outputs.
- Assess privacy risk by measuring how closely synthetic data reproduces real data patterns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
SDMetrics evaluates synthetic data by computing quality and privacy metrics and generating comparison reports against real data, independent of how the synthetic data was created.
Yes. SDMetrics is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a concrete problem in synthetic data workflows. Install it if you generate or consume synthetic data and need to measure quality and privacy. The low install friction and model-agnostic design make it a practical fit for most data teams.
Install
sdmetrics on PyPI
pip
pip install sdmetricsuv
uv add sdmetricspoetry
poetry add sdmetricsInstalling sdmetrics
Before you install
Low friction: pure Python wheel with seven runtime dependencies (numpy, pandas, scikit-learn, scipy, copulas, tqdm, plotly). Active maintenance with a release 21 days ago and ongoing commits.
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install sdmetrics
from sdmetrics import load_demo
from sdmetrics.reports.single_table import QualityReport
real_data, synthetic_data, metadata = load_demo(modality='single_table')
my_report = QualityReport()
my_report.generate(real_data, synthetic_data, metadata)
Verify before relying
- Whether the library supports time-series or multi-table synthetic data evaluation beyond single-table reports.
- Performance characteristics when evaluating large datasets or high-dimensional data.
- Specific privacy metrics available and their theoretical foundations or compliance certifications.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<3.15,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — numpy, pandas, scikit-learn, scipy, copulas, tqdm, plotly |
| Maintenance | actively maintained — 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 134,769/month — #11,461 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sdmetrics-0.28.2-py3-none-any.whl
Keywords: sdmetrics, SDMetrics
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
sdvSDV generates synthetic tabular data by…
unclear · top 15,000 on PyPI
deepechoDeepEcho generates synthetic time series data…
unclear · top 15,000 on PyPI
rdtRDT converts raw, mixed-type data into fully…
unclear · top 15,000 on PyPI
copulasCopulas models multivariate statistical…
unclear · top 15,000 on PyPI
ctganCTGAN generates synthetic tabular data by…
unclear · top 15,000 on PyPI
data-designerGenerates high-quality synthetic datasets from…
permissive · top 15,000 on PyPI
dbldatagenGenerates synthetic data at scale within…
unclear · top 15,000 on PyPI
oil-reservoir-synthesizerGenerates synthetic oil reservoir simulator…
copyleft · top 15,000 on PyPI
pyannote-metricsEvaluates and analyzes speaker diarization…
unclear · top 5,000 on PyPI
evidentlyEvidently evaluates, tests, and monitors ML and…
permissive · top 5,000 on PyPI