SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1810.01943 · 2018

AI Fairness 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Bias

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 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; 2 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-23; 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/1810.01943.json · badge: /api/ran/1810.01943.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
IBM/AIF360 canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
datalab-georgetown/fairness-and-missing-values extension (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
gitforreview/dsaa_journal_review community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
DaveFClarke/ml_bias_checking community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
default_preprocessing Ran
ran; our contract draft was wrong, not the code
datalab-georgetown/fairness-and-missing-values/MAR_compas.py
code served (permissive licence) · get_code("eede2c40a6ec49b1")
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 DataFrame. 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

# Create a sample DataFrame that mimics the COMPAS dataset structure
np.random.seed(0)

# Create synthetic data with the columns used in the preprocessing
n_rows = 100
df = pd.DataFrame({
    'days_b_screening_arrest': np.random.randint(-40, 40, n_rows),
    'is_recid': np.random.choice([0, 1, -1], n_rows),
    'c_charge_degree': np.random.choice(['F', 'M', 'O'], n_rows),
    'score_text': np.random.choice(['Low', 'Medium', 'High', 'N/A'], n_rows)
})

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 — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not 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
do_decorate Ran
ran on a synthesized input
IBM/AIF360/aif360/decorating_metaclass.py
code served (permissive licence) · get_code("289eb0c6849d3227")
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 bool, 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
import torch.nn as nn

torch.manual_seed(0)

# The function do_decorate checks:
# 1. attr.startswith('_') - attr must be a string
# 2. callable(value) - value must be callable
# 3. getattr(value, '__decorate__', True) - value should have __decorate__ attribute (defaults to True)

# Create a callable with __decorate__ = True
def sample_func():
    pass
sample_func.__decorate__ = True

# Create a callable with __decorate__ = False
def no_decorate_func():
    pass
no_decorate_func.__decorate__ = False

# Create a callable without __decorate__ attribute (will default to True)
def default_decorate_func():
    pass

# Test with various attr names and callables
# The function returns True when:
# - attr does NOT start with '_'
# - value IS callable
# - value has __decorate__ = True (or attribute missing, which defaults to True)

ARGS = {
    'attr': 'public_method',
    'value': sample_func
}
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 bool, 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
dont_decorate Ran
ran on a synthesized input
IBM/AIF360/aif360/decorating_metaclass.py
code served (permissive licence) · get_code("01ea0d2b717db869")
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 function. 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 torch
import torch.nn as nn

def dont_decorate(func):
    func.__decorate__ = False
    return func

# The function takes a single parameter 'func' which should be a callable
# It sets an attribute on it and returns it
def sample_function():
    pass

ARGS = {
    'func': sample_function
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
factory Ran
ran on a synthesized input
IBM/AIF360/aif360/decorating_metaclass.py
code served (permissive licence) · get_code("def3932f5d378389")
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 type. 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 functools
import torch

def simple_decorator(f):
    """A simple decorator that uses functools.wraps"""
    @functools.wraps(f)
    def wrapper(*args, **kwargs):
        return f(*args, **kwargs)
    return wrapper

ARGS = {
    'decorator': simple_decorator
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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_distortion_adult Ran
ran, honoured the contract we drafted
datalab-georgetown/fairness-and-missing-values/MNAR_adult.py
code served (permissive licence) · get_code("3121e31a3851b066")
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 float, 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 numpy as np

ARGS = {
    'vold': {
        'Education Years': '10',
        'Age (decade)': '35.0',
        'Income Binary': '<=50K'
    },
    'vnew': {
        'Education Years': '11',
        'Age (decade)': '38.0',
        'Income Binary': '>50K'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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_distortion_compas Ran
ran, honoured the contract we drafted
datalab-georgetown/fairness-and-missing-values/MAR_compas.py
code served (permissive licence) · get_code("2c079b2e82f2279d")
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 float64, 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 pandas as pd

# Construct dictionaries representing old and new attribute values
# based on the COMPAS dataset structure used in the function

vold = {
    'two_year_recid': 'No recid.',
    'age_cat': 'Less than 25',
    'c_charge_degree': 'M',
    'priors_count': '0',
    'score_text': 'Low',
    'sex': 0.0,
    'race': 0.0
}

vnew = {
    'two_year_recid': 'Did recid.',
    'age_cat': '25 to 45',
    'c_charge_degree': 'F',
    'priors_count': '1 to 3',
    'score_text': 'MediumHigh',
    'sex': 1.0,
    'race': 1.0
}

ARGS = {
    'vold': vold,
    'vnew': vnew
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, 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_distortion_syn Ran
ran on a synthesized input
gitforreview/dsaa_journal_review/MNAR_syn.py
code served (permissive licence) · get_code("1533d1dc758fbfbb")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

# Construct valid arguments for get_distortion_syn
vold = {
    'two_year_recid': 'No recid.',
    'age_cat': 'Less than 25',
    'c_charge_degree': 'M',
    'priors_count': '0',
    'score_text': 'Low',
    'sex': 0.0,
    'race': 0.0
}

vnew = {
    'two_year_recid': 'Did recid.',
    'age_cat': '25 to 45',
    'c_charge_degree': 'F',
    'priors_count': '1 to 3',
    'score_text': 'MediumHigh',
    'sex': 1.0,
    'race': 1.0
}

ARGS = {
    'vold': vold,
    'vnew': vnew
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
quantizeLOS Ran
ran on a synthesized input
gitforreview/dsaa_journal_review/MNAR_syn.py
code served (permissive licence) · get_code("557b4e0443b49c81")
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 int, ndim 0, dtype family int, 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)

def quantizeLOS(x):
    if x <= 7:
        return 0
    if 8 < x <= 93:
        return 1
    else:
        return 2

ARGS = {
    'x': 5
}
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 int, ndim 0, dtype family int, 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
quantizePrior1 Ran
ran on a synthesized input
gitforreview/dsaa_journal_review/MNAR_syn.py
code served (permissive licence) · get_code("ede92860076c393d")
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 int, ndim 0, dtype family int, 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
import numpy as np

torch.manual_seed(0)

# The function quantizePrior1 takes a single numeric parameter x
# and returns an integer based on conditional logic
# x can be any numeric type (int, float, numpy scalar, tensor scalar, etc.)

# Test with a simple float value
x = 2.5

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
weighted_cost Ran
ran on a synthesized input
IBM/AIF360/aif360/algorithms/postprocessing/calibrated_eq_odds_postprocessing.py
code served (permissive licence) · get_code("1e900bae8b2c9e29")
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 float, 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
import numpy as np

torch.manual_seed(0)

class MockConfusionMatrix:
    """Mock confusion matrix object with required methods"""
    def __init__(self):
        self._base_rate_val = 0.4
        self._gfpr_val = 0.15
        self._gfnr_val = 0.25
    
    def base_rate(self, privileged=None):
        """Return base rate, optionally filtered by privileged group"""
        return self._base_rate_val
    
    def generalized_false_positive_rate(self, privileged=None):
        """Return generalized false positive rate"""
        return self._gfpr_val
    
    def generalized_false_negative_rate(self, privileged=None):
        """Return generalized false negative rate"""
        return self._gfnr_val

# Create confusion matrix instance
cm = MockConfusionMatrix()

# Define arguments
ARGS = {
    "fp_rate": 0.1,
    "fn_rate": 0.2,
    "cm": cm,
    "privileged": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
weighted_cost Ran
ran on a synthesized input
DaveFClarke/ml_bias_checking/aif360/algorithms/postprocessing/calibrated_eq_odds_postprocessing.py
pointer only (licence: Apache-2.0) · get_code("7fb981da51078eff")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, DaveFClarke/ml_bias_checking, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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.

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-23.

Repositories linked to this paper

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

Abstract

Fairness is an increasingly important concern as machine learning models are used to support decision making in high-stakes applications such as mortgage lending, hiring, and prison sentencing. This paper introduces a new open source Python toolkit for algorithmic fairness, AI Fairness 360 (AIF360), released under an Apache v2.0 license {https://github.com/ibm/aif360). The main objectives of this toolkit are to help facilitate the transition of fairness research algorithms to use in an industrial setting and to provide a common framework for fairness researchers to share and evaluate algorithms. The package includes a comprehensive set of fairness metrics for datasets and models, explanations for these metrics, and algorithms to mitigate bias in datasets and models. It also includes an interactive Web experience (https://aif360.mybluemix.net) that provides a gentle introduction to the concepts and capabilities for line-of-business users, as well as extensive documentation, usage guidance, and industry-specific tutorials to enable data scientists and practitioners to incorporate the most appropriate tool for their problem into their work products. The architecture of the package has been engineered to conform to a standard paradigm used in data science, thereby further improving usability for practitioners. Such architectural design and abstractions enable researchers and developers to extend the toolkit with their new algorithms and improvements, and to use it for performance benchmarking. A built-in testing infrastructure maintains code quality.

For agents

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

get_harvested_code_for_paper("1810.01943")
get_code_for_paper("1810.01943")
have("1810.01943")

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

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

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

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

Connect an agent — have() is free.