SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2109.00666 · 2021

TabFairGAN: Fair Tabular Data Generation with Generative Adversarial Networks

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2109.00666.json · badge: /api/ran/2109.00666.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
amirarsalan90/TabFairGAN canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
get_cont_cat_transform Ran
ran on a synthesized input
amirarsalan90/TabFairGAN/src/tabfairgan/utils.py
code served (permissive licence) · get_code("2b2e3b1708811555")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np
from collections import OrderedDict
from sklearn.preprocessing import OneHotEncoder, QuantileTransformer

# Create a small DataFrame with both continuous and categorical columns
np.random.seed(0)

# Create continuous columns
continuous_data = np.random.randn(5, 3).astype(float)

# Create categorical columns
categorical_data = np.array([['A', 'X'], ['B', 'Y'], ['A', 'X'], ['C', 'Y'], ['B', 'X']])

# Combine into DataFrame
df = pd.DataFrame(
    np.hstack([continuous_data, categorical_data]),
    columns=['cont1', 'cont2', 'cont3', 'cat1', 'cat2']
)

# Convert continuous columns to float
df['cont1'] = df['cont1'].astype(float)
df['cont2'] = df['cont2'].astype(float)
df['cont3'] = df['cont3'].astype(float)

# Categorical columns stay as object type
df['cat1'] = df['cat1'].astype(object)
df['cat2'] = df['cat2'].astype(object)

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_gen_loss Ran
ran on a synthesized input
amirarsalan90/TabFairGAN/src/tabfairgan/modules.py
code served (permissive licence) · get_code("fe4a00c3f2e58f59")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes crit_fake_pred, which is used with torch.mean()
# So it needs to be a tensor
crit_fake_pred = torch.randn(2, 4)

ARGS = {
    "crit_fake_pred": crit_fake_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_gradient Ran
ran; our contract draft was wrong, not the code
amirarsalan90/TabFairGAN/src/tabfairgan/modules.py
pointer only (licence: MIT); the stored copy get_code serves, from panagiotou/fairaugment, is pointer only (licence: NONE) · get_code("9826f904215414b6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from panagiotou/fairaugment, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_ohe_data_fair Ran
ran on a synthesized input
amirarsalan90/TabFairGAN/src/tabfairgan/utils.py
code served (permissive licence) · get_code("c297a90bb1f5c523")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np
from collections import OrderedDict

# Create a simple DataFrame with continuous and categorical columns
np.random.seed(0)

# Create continuous columns
continuous_data = {
    'cont1': np.random.randn(10),
    'cont2': np.random.randn(10),
}

# Create categorical columns
categorical_data = {
    'sensitive': ['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B'],
    'outcome': ['Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No'],
}

df = pd.DataFrame({**continuous_data, **categorical_data})

ARGS = {
    'df': df,
    'S': 'sensitive',
    'Y': 'outcome',
    'S_under': 'A',
    'Y_desire': 'Yes',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_ohe_data_nofair Ran
ran on a synthesized input
amirarsalan90/TabFairGAN/src/tabfairgan/utils.py
code served (permissive licence) · get_code("0bb67b431ecfea38")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np
from collections import OrderedDict

# Create a small test DataFrame with both continuous and categorical columns
np.random.seed(0)

# Create continuous columns (float and integer types)
continuous_data = {
    'float_col1': np.random.randn(10),
    'float_col2': np.random.randn(10),
    'int_col1': np.random.randint(0, 100, 10),
}

# Create categorical columns (object type)
categorical_data = {
    'cat_col1': np.random.choice(['A', 'B', 'C'], 10),
    'cat_col2': np.random.choice(['X', 'Y'], 10),
}

# Combine all data into a DataFrame
df = pd.DataFrame({**continuous_data, **categorical_data})

ARGS = {
    'df': df,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gradient_penalty Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
amirarsalan90/TabFairGAN/src/tabfairgan/modules.py
pointer only (licence: MIT); the stored copy get_code serves, from panagiotou/fairaugment, is pointer only (licence: NONE) · get_code("891e1a30409c7fec")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from panagiotou/fairaugment, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
gradient_penalty 3 other papers
1 dated earlier, 2 later
2006.06755 (2020-06)
Conditional Sampling with Monotone GANs: from Generative Models to Likelihood-Free Inference
2203.12297 (2022-03)
Increasing the accuracy and resolution of precipitation forecasts using deep generative models
2409.05215 (2024-09)
Synthetic Tabular Data Generation for Class Imbalance and Fairness: A Comparative Study
get_gradient 1 other paper
1 later
2409.05215 (2024-09)
Synthetic Tabular Data Generation for Class Imbalance and Fairness: A Comparative Study

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

With the increasing reliance on automated decision making, the issue of algorithmic fairness has gained increasing importance. In this paper, we propose a Generative Adversarial Network for tabular data generation. The model includes two phases of training. In the first phase, the model is trained to accurately generate synthetic data similar to the reference dataset. In the second phase we modify the value function to add fairness constraint, and continue training the network to generate data that is both accurate and fair. We test our results in both cases of unconstrained, and constrained fair data generation. In the unconstrained case, i.e. when the model is only trained in the first phase and is only meant to generate accurate data following the same joint probability distribution of the real data, the results show that the model beats state-of-the-art GANs proposed in the literature to produce synthetic tabular data. Also, in the constrained case in which the first phase of training is followed by the second phase, we train the network and test it on four datasets studied in the fairness literature and compare our results with another state-of-the-art pre-processing method, and present the promising results that it achieves. Comparing to other studies utilizing GANs for fair data generation, our model is comparably more stable by using only one critic, and also by avoiding major problems of original GAN model, such as mode-dropping and non-convergence, by implementing a Wasserstein GAN.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2109.00666")
get_code_for_paper("2109.00666")
have("2109.00666")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2109.00666.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2109.00666.svg)](https://syntology.ai/paper/2109.00666)

Connect an agent — have() is free.