sdv-dev/CTGAN

Public

Conditional GAN for generating synthetic tabular data.

  • Stars1.6k+1 tuần này
  • Forks335
  • Watchers21
  • Issues32
  • Ngày tạo09/09/2019
  • Cập nhật gần nhất30/10/2026
  • Ngôn ngữPython
  • Giấy phép—
README.md13.7 KBRaw

This repository is part of The Synthetic Data Vault Project, a project from DataCebo.

Development Status PyPI Shield Unit Tests Downloads Coverage Status Forum

Overview

CTGAN is a collection of Deep Learning based synthetic data generators for single table data, which are able to learn from real data and generate synthetic data with high fidelity.

Important Links
💻 Website Check out the SDV Website for more information about our overall synthetic data ecosystem.
📙 Blog A deeper look at open source, synthetic data creation and evaluation.
📖 Documentation Quickstarts, User and Development Guides, and API Reference.
:octocat: Repository The link to the Github Repository of this library.
⌨️ Development Status This software is in its Pre-Alpha stage.
👥 DataCebo Forum Discuss CTGAN features, ask questions, and receive help.

Currently, this library implements the CTGAN and TVAE models described in the Modeling Tabular data using Conditional GAN paper, presented at the 2019 NeurIPS conference.

Install

Use CTGAN through the SDV library

⚠️ If you're just getting started with synthetic data, we recommend installing the SDV library which provides user-friendly APIs for accessing CTGAN. ⚠️

The SDV library provides wrappers for preprocessing your data as well as additional usability features like constraints. See the SDV documentation to get started.

Use the CTGAN standalone library

Alternatively, you can also install and use CTGAN directly, as a standalone library:

Using pip:

pip install ctgan

Using conda:

conda install -c pytorch -c conda-forge ctgan

When using the CTGAN library directly, you may need to manually preprocess your data into the correct format, for example:

  • Continuous data must be represented as floats
  • Discrete data must be represented as ints or strings
  • The data should not contain any missing values

Usage Example

In this example we load the Adult Census Dataset* which is a built-in demo dataset. We use CTGAN to learn from the real data and then generate some synthetic data.

from ctgan import CTGAN

Nội dung README thuộc về sdv-dev và cộng đồng đóng góp, giấy phép Không có giấy phép. Nguồn: github.com/sdv-dev/CTGAN