SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.13335 · 2019

Adversarial Balancing-based Representation Learning for Causal Effect Inference with Observational Data

arXiv · PDF · Open in the Atlas

Code that ran

18 of 23 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 17 have no contract verdict; 1 failure of our instrument; 5 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/1904.13335.json · badge: /api/ran/1904.13335.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
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference canonical (classifier label)
classifier basis: census
12 ran · 2 no recorded run
xinshuli2022/cite community (classifier label)
classifier basis: plan_row
6 ran · 3 no recorded run
FunctionStatusWhere it lives
cap Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/plotting.py
code served (permissive licence) · get_code("b0268f294dfc4199")
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 str. 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

def cap(s):
    t = s[0].upper() + s[1:]
    return t

ARGS = {
    "s": "hello"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
cfg_string Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/abcei_param_search.py
code served (permissive licence) · get_code("391d5bb27554251d")
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 str. 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 numpy as np

def cfg_string(cfg):
    ks = sorted(cfg.keys())
    cfg_str = ','.join(['%s:%s' % (k, str(cfg[k])) for k in ks])
    return cfg_str.lower()

# Construct valid arguments for cfg_string
# The function takes a dict (cfg) and creates a string representation
# by sorting keys and joining key:value pairs

ARGS = {
    'cfg': {
        'batch_size': 32,
        'learning_rate': 0.001,
        'epochs': 100,
        'model': 'resnet50',
        'activation': 'relu'
    }
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
fill_bounds Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/plotting.py
code served (permissive licence) · get_code("1769b7941027807f")
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, ndim 2, 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 numpy as np

# Construct test data - 2D array with shape (2, 4)
# This allows testing along different axes
data = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
])

ARGS = {
    "data": data,
    "axis": 0,
    "std_error": False
}
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 tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
load_config Ran
ran; our contract draft was wrong, not the code
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/evaluate.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zengshx777/Double-Rouble-Representation-Learning, is pointer only (licence: NONE) · get_code("99db80654de245f7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zengshx777/Double-Rouble-Representation-Learning, 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.

load_config Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/abcei_param_search.py
code served (permissive licence) · get_code("0cd6c5d23591916d")
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 dict. 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 tempfile
import os

# Create a temporary config file with valid Python expressions
temp_dir = tempfile.mkdtemp()
cfg_file = os.path.join(temp_dir, "test_config.txt")

with open(cfg_file, 'w') as f:
    f.write("# This is a comment\n")
    f.write("learning_rate=0.001\n")
    f.write("batch_size=32\n")
    f.write("hidden_dim=128\n")
    f.write("layers=[64, 128, 256]\n")
    f.write("dropout=0.5\n")
    f.write("\n")  # empty line should be skipped
    f.write("use_cuda=False\n")

ARGS = {
    'cfg_file': cfg_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_config Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/loader.py
code served (permissive licence) · get_code("15c42a721eb6bb30")
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 dict. 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 tempfile
import os

# Create a temporary configuration file
config_content = """learning_rate: 0.001
batch_size: 32
epochs: 100
model_name: resnet50
use_dropout: True
debug_mode: False
momentum: 0.9
"""

# Write to a temporary file
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.cfg') as f:
    f.write(config_content)
    temp_cfg_file = f.name

try:
    ARGS = {
        'cfgfile': temp_cfg_file
    }
finally:
    # Clean up after defining ARGS
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_propensity_score Ran
ran on a synthesized input
xinshuli2022/cite/cite/propensity.py
code served (permissive licence) · get_code("1c0461c1f63a1567")
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 ndarray, ndim 1, dtype family float, shape (2,) 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 pickle
import numpy as np
from sklearn.linear_model import LogisticRegression
import tempfile
import os

# Create a temporary directory and file
temp_dir = tempfile.mkdtemp()
model_file = os.path.join(temp_dir, "propensity_model.pkl")

# Create a simple sklearn model that has predict_proba method
model = LogisticRegression()
X_train = np.random.randn(10, 4)
y_train = np.random.randint(0, 2, 10)
model.fit(X_train, y_train)

# Save the model to a pickle file
with open(model_file, 'wb') as f:
    pickle.dump(model, f)

# Create test data with shape (2, 4) - 2 samples, 4 features
x_test = np.random.randn(2, 4)

ARGS = {
    "model_file_name": model_file,
    "x": x_test
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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
load_result_file Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/loader.py
code served (permissive licence) · get_code("15e536e0f47cf1c9")
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 dict. 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 numpy as np
import tempfile
import os

# Create a temporary numpy file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_result.npz")

# Create sample data and save it as npz
test_data = {
    'array1': np.array([1, 2, 3, 4]),
    'array2': np.array([[1, 2], [3, 4]]),
    'array3': np.random.randn(2, 4)
}
np.savez(temp_file, **test_data)

ARGS = {
    'file': temp_file
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
onehot_trans Ran
ran on a synthesized input
xinshuli2022/cite/cite/propensity.py
code served (permissive licence) · get_code("71148e63ec271238")
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 ndarray, ndim 2, dtype family float, shape (2, 2) 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

# Create a small numpy array for t
# Shape should be (batch_size, 1) since the function accesses t[i, 0]
t = np.array([[0], [1]], dtype=np.int32)

# Create a small stand-in class for catog
# The function only accesses catog.size
class CatogStandIn:
    def __init__(self, size):
        self.size = size

catog = CatogStandIn(size=2)

ARGS = {
    "t": t,
    "catog": catog
}
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 ndarray, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) 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
pdist2 Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/evaluation.py
code served (permissive licence) · get_code("8c8862895d1a2cfc")
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 ndarray, ndim 2, dtype family float, shape (2, 3) 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

# Create small numpy arrays for X and Y
np.random.seed(0)

X = np.random.randn(2, 4).astype(np.float32)  # 2 samples, 4 dimensions
Y = np.random.randn(3, 4).astype(np.float32)  # 3 samples, 4 dimensions

ARGS = {
    "X": X,
    "Y": Y,
}
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 ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
policy_val Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/evaluation.py
code served (permissive licence) · get_code("75f1baa2dcf1cc85")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small synthetic data for the function
batch_size = 10

# t: treatment assignments (values between 0 and 1, or exactly 0 or 1)
t = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype=np.float32)

# yf: outcome values
yf = np.array([1.5, 2.3, 0.8, 3.1, 1.2, 2.9, 0.5, 3.5, 1.1, 2.7], dtype=np.float32)

# eff_pred: predicted treatment effects (no NaN values for valid case)
eff_pred = np.array([0.5, -0.3, 0.2, -0.1, 0.8, -0.5, 0.1, 0.9, -0.2, 0.4], dtype=np.float32)

# compute_policy_curve: boolean flag
compute_policy_curve = False

ARGS = {
    "t": t,
    "yf": yf,
    "eff_pred": eff_pred,
    "compute_policy_curve": compute_policy_curve
}
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 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
propensity_score_training Ran
ran on a synthesized input
xinshuli2022/cite/cite/propensity.py
code served (permissive licence) · get_code("785b0efada7b9761")
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 numpy as np
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression

np.random.seed(0)

# Create synthetic data
n_samples = 20
n_features = 4

# Pre-treatment covariates (data)
data = np.random.randn(n_samples, n_features).astype(np.float64)

# Treatment labels (binary: 0 or 1)
label = np.random.randint(0, 2, size=(n_samples, 1))

# Mode for propensity score calculation
mode = 'Logistic-regression'

ARGS = {
    'data': data,
    'label': label,
    'mode': mode
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
sample_config Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/abcei_param_search.py
code served (permissive licence) · get_code("5c7a95d5e324b02f")
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 dict. 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 numpy as np

np.random.seed(0)

# Analyze the function:
# - It takes 'configs' parameter
# - Iterates over configs.keys()
# - For each key, accesses configs[k] which should be a list/array-like (opts)
# - Calls len(opts) to get number of options
# - Uses np.random.choice to pick an index
# - Assigns opts[c] to cfg_sample[k]

# So 'configs' should be a dict where each value is a list/sequence of options

configs = {
    "learning_rate": [0.001, 0.01, 0.1],
    "batch_size": [16, 32, 64, 128],
    "num_layers": [2, 3, 4, 5],
    "dropout": [0.1, 0.2, 0.3, 0.5],
    "activation": ["relu", "tanh", "sigmoid"]
}

ARGS = {
    "configs": configs
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
table_str_bin Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/plotting.py
code served (permissive licence) · get_code("ac25f60856fcf922")
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 str. 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 numpy as np

# Create sample result dictionaries with the required fields
result1 = {
    'pehe': np.array([0.1, 0.15, 0.12]),
    'bias_ate': np.array([0.05, 0.08, 0.06]),
    'rmse_fact': np.array([0.2, 0.18, 0.19]),
    'rmse_ite': np.array([0.3, 0.28, 0.29]),
    'objective': np.array([0.01, 0.015, 0.012]),
    'auc': np.array([0.85, 0.87, 0.86]),
    'fact_auc': np.array([0.88, 0.89, 0.87])
}

result2 = {
    'pehe': np.array([0.12, 0.14, 0.13]),
    'bias_ate': np.array([0.06, 0.07, 0.065]),
    'rmse_fact': np.array([0.21, 0.19, 0.2]),
    'rmse_ite': np.array([0.31, 0.29, 0.3]),
    'objective': np.array([0.011, 0.016, 0.013]),
    'auc': np.array([0.84, 0.86, 0.85]),
    'fact_auc': np.array([0.87, 0.88, 0.86])
}

result_set = [result1, result2]
row_labels = ['Model_A', 'Model_B']
labels_long = ['First model variant', 'Second model variant']
binary = False

ARGS = {
    'result_set': result_set,
    'row_labels': row_labels,
    'labels_long': labels_long,
    'binary': binary
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
table_str_bin Ran
ran on a synthesized input
xinshuli2022/cite/cite/plotting.py
code served (permissive licence) · get_code("01947e02d1eecba3")
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 str. 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 numpy as np

# Construct result_set: list of dicts with numpy arrays
# The function looks for keys like 'pehe', 'bias_ate', 'rmse_fact', 'rmse_ite', 'objective', 'pehe_nn'
# and for binary mode: 'policy_risk', 'bias_att', 'err_fact', 'objective', 'pehe_nn'

np.random.seed(0)

result_set = [
    {
        'pehe': np.random.rand(5),
        'bias_ate': np.random.rand(5),
        'rmse_fact': np.random.rand(5),
        'rmse_ite': np.random.rand(5),
        'objective': np.random.rand(5),
        'pehe_nn': np.random.rand(5),
    },
    {
        'pehe': np.random.rand(5),
        'bias_ate': np.random.rand(5),
        'rmse_fact': np.random.rand(5),
        'rmse_ite': np.random.rand(5),
        'objective': np.random.rand(5),
        'pehe_nn': np.random.rand(5),
    }
]

row_labels = ['Method A', 'Method B']

labels_long = ['First approach', 'Second approach']

binary = False

ARGS = {
    'result_set': result_set,
    'row_labels': row_labels,
    'labels_long': labels_long,
    'binary': binary,
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
validation_split Ran
ran on a synthesized input
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/util.py
code served (permissive licence) · get_code("882d06adc0980a42")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create a small synthetic dataset
# D_exp is a dict with 'x' key containing data
# The function only accesses D_exp['x'].shape[0], so we need a dict with 'x' array
D_exp = {
    'x': np.random.randn(10, 4)  # 10 samples, 4 features
}

val_fraction = 0.3

ARGS = {
    'D_exp': D_exp,
    'val_fraction': val_fraction
}
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 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
x_negative Ran
ran on a synthesized input
xinshuli2022/cite/cite/contrastive.py
code served (permissive licence) · get_code("0fcafe63e2eb00a6")
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 ndarray, ndim 2, dtype family float, shape (2, 4) 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

# Set seed for reproducibility
np.random.seed(42)

# Create setup for x_negative function
batch_size = 2

# x should be a numpy array that supports indexing
# The function does x[neg_list], so x needs to be indexable
x = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0],
              [9.0, 10.0, 11.0, 12.0],
              [13.0, 14.0, 15.0, 16.0]])

# p_score should be a 1D array of scores that can be sorted
# Length must match x's first dimension
p_score = np.array([0.9, 0.7, 0.3, 0.1])

ARGS = {
    "x": x,
    "p_score": p_score,
    "batch_size": batch_size
}
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 ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
x_positive Ran
ran on a synthesized input
xinshuli2022/cite/cite/contrastive.py
code served (permissive licence) · get_code("69a526aa9222998e")
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 ndarray, ndim 2, dtype family float, shape (10, 4) 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

# Construct arguments for x_positive function
x = np.random.rand(10, 4)  # shape (10, 4) - array of 10 samples with 4 features
p_score = np.random.rand(10)  # shape (10,) - probability scores for 10 items
batch_size = 3  # number of indices to select

ARGS = {
    "x": x,
    "p_score": p_score,
    "batch_size": batch_size
}
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 ndarray, ndim 2, dtype family float, shape (10, 4) — shape (10, 4) 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
load_single_result Not yet run
unverified (harvested, no recorded run)
xinshuli2022/cite/cite/loader.py
code served (permissive licence) · get_code("4d191869d8cbe638")
How it ran

no invocation recorded.

load_sparse Not yet run
unverified (harvested, no recorded run)
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/util.py
code served (permissive licence) · get_code("eec1ffdfca19eaac")
How it ran

no invocation recorded.

policy_range Not yet run
unverified (harvested, no recorded run)
octeufer/Adversarial-Balancing-based-representation-learning-for-Causal-Effect-Inference/ABCEI/evaluation.py
code served (permissive licence) · get_code("dd965478a8f2ad16")
How it ran

no invocation recorded.

policy_val Not yet run
unverified (harvested, no recorded run)
xinshuli2022/cite/cite/evaluation.py
code served (permissive licence) · get_code("ac9d4a754e76fcef")
How it ran

no invocation recorded.

sort_by_config Not yet run
unverified (harvested, no recorded run)
xinshuli2022/cite/evaluate.py
pointer only (licence: MIT); the stored copy get_code serves, from zengshx777/Double-Rouble-Representation-Learning, is pointer only (licence: NONE) · get_code("4f58364ac28af0d6")
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 zengshx777/Double-Rouble-Representation-Learning, 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. No invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 21 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
load_config 1 other paper
1 later
2010.07866 (2020-10)
Double Robust Representation Learning for Counterfactual Prediction
sort_by_config 1 other paper
1 later
2010.07866 (2020-10)
Double Robust Representation Learning for Counterfactual Prediction

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

Learning causal effects from observational data greatly benefits a variety of domains such as health care, education and sociology. For instance, one could estimate the impact of a new drug on specific individuals to assist the clinic plan and improve the survival rate. In this paper, we focus on studying the problem of estimating Conditional Average Treatment Effect (CATE) from observational data. The challenges for this problem are two-fold: on the one hand, we have to derive a causal estimator to estimate the causal quantity from observational data, where there exists confounding bias; on the other hand, we have to deal with the identification of CATE when the distribution of covariates in treatment and control groups are imbalanced. To overcome these challenges, we propose a neural network framework called Adversarial Balancing-based representation learning for Causal Effect Inference (ABCEI), based on the recent advances in representation learning. To ensure the identification of CATE, ABCEI uses adversarial learning to balance the distributions of covariates in treatment and control groups in the latent representation space, without any assumption on the form of the treatment selection/assignment function. In addition, during the representation learning and balancing process, highly predictive information from the original covariate space might be lost. ABCEI can tackle this information loss problem by preserving useful information for predicting causal effects under the regularization of a mutual information estimator. The experimental results show that ABCEI is robust against treatment selection bias, and matches/outperforms the state-of-the-art approaches. Our experiments show promising results on several datasets, representing different health care domains among others.

For agents

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

get_harvested_code_for_paper("1904.13335")
get_code_for_paper("1904.13335")
have("1904.13335")

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

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

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

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

Connect an agent — have() is free.