SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.06671 · 2019

Robust Variational Autoencoders for Outlier Detection and Repair of Mixed-Type Data

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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 7 have no contract verdict; 0 failures of our instrument; 1 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/1907.06671.json · badge: /api/ran/1907.06671.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
sfme/RVAE_MixedTypes canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
create_data_folders Ran
ran on a synthesized input
sfme/RVAE_MixedTypes/src/dataset_prep_simple/dataset_prep_utils.py
code served (permissive licence) · get_code("35b614de96909522")
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 os
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
path_to_test = temp_dir + '/'

run_stats = {
    'name': 'test_run_001'
}

path_to_folder = path_to_test

ARGS = {
    'run_stats': run_stats,
    'path_to_folder': path_to_folder
}
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 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
create_data_splits Ran
ran on a synthesized input
sfme/RVAE_MixedTypes/src/dataset_prep_simple/dataset_prep_utils.py
code served (permissive licence) · get_code("0f9a3d016ca90a7d")
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 ShuffleSplit

torch_manual_seed = 0
np.random.seed(0)

# Create a simple data array
data = np.arange(100).reshape(100, 1)

# Create run_stats dict with valid split percentages
run_stats = {
    'train_size': 0.7,
    'valid_size': 0.15,
    'test_size': 0.15
}

ARGS = {
    'run_stats': run_stats,
    'data': data
}
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
get_auc_metrics Ran
ran on a synthesized input
sfme/RVAE_MixedTypes/src/core_models/utils.py
code served (permissive licence) · get_code("b5672f1c083f6618")
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 sample data for the function
# target_matrix: binary targets, shape (n_samples, n_features)
# score_matrix: predicted scores, shape (n_samples, n_features)

n_samples = 8
n_features = 4

# Create target matrix with binary values (0 or 1)
target_matrix = np.random.randint(0, 2, size=(n_samples, n_features))

# Ensure at least one column has positive samples
target_matrix[:, 0] = 1

# Create score matrix with values between 0 and 1 (probabilities)
score_matrix = np.random.rand(n_samples, n_features)

ARGS = {
    "target_matrix": target_matrix,
    "score_matrix": score_matrix,
}
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
get_avpr_metrics Ran
ran on a synthesized input
sfme/RVAE_MixedTypes/src/core_models/utils.py
code served (permissive licence) · get_code("a9664705f476d18d")
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

# Create target_matrix: shape (num_samples, num_features)
# Should have some columns with positive samples, some with all zeros
target_matrix = np.array([
    [1, 0, 1, 0],
    [0, 0, 1, 0],
    [1, 1, 0, 0],
    [0, 0, 0, 0]
], dtype=np.float32)

# Create score_matrix: same shape as target_matrix
# Should contain scores in [0, 1] range for computing average precision
score_matrix = np.array([
    [0.9, 0.1, 0.8, 0.2],
    [0.3, 0.2, 0.7, 0.1],
    [0.8, 0.6, 0.4, 0.3],
    [0.2, 0.1, 0.3, 0.05]
], dtype=np.float32)

ARGS = {
    "target_matrix": target_matrix,
    "score_matrix": score_matrix
}
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
logit_fn Ran
ran on a synthesized input
sfme/RVAE_MixedTypes/src/core_models/model_utils.py
code served (permissive licence) · get_code("faa345f3ec52e705")
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 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 torch
import numpy as np

torch.manual_seed(0)

# The function logit_fn takes a single parameter x
# It expects x to be a tensor with values in (0, 1) range
# since it computes log(x) and log(1-x)

x = torch.tensor([[0.1, 0.5, 0.9, 0.3],
                   [0.2, 0.7, 0.4, 0.8]], dtype=torch.float32)

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 Tensor, 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
nll_categ_global Ran
ran on a synthesized input
sfme/RVAE_MixedTypes/src/core_models/model_utils.py
code served (permissive licence) · get_code("ecf06b84d66c4983")
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 2, dtype family float, shape (2, 1) 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
from torch.nn import functional as F

torch.manual_seed(0)

# Create tensor arguments
batch_size = 2
num_categories = 4

# categ_logp_feat: log probabilities from a categorical model
# Shape: (batch_size, num_categories)
categ_logp_feat = torch.randn(batch_size, num_categories)

# input_idx_feat: ground truth category indices
# Shape: (batch_size,)
input_idx_feat = torch.randint(0, num_categories, (batch_size,))

# cat_feat_size: number of categories
cat_feat_size = num_categories

# w: weights for robust loss (used when isRobust=True)
# Shape: (batch_size,)
w = torch.rand(batch_size)

ARGS = {
    'categ_logp_feat': categ_logp_feat,
    'input_idx_feat': input_idx_feat,
    'cat_feat_size': cat_feat_size,
    'isRobust': False,
    'w': w,
    'isClean': False
}
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 2, dtype family float, shape (2, 1) — shape (2, 1) 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
nll_gauss_global Ran
ran on a synthesized input
sfme/RVAE_MixedTypes/src/core_models/model_utils.py
code served (permissive licence) · get_code("4555a0d1dd7fd087")
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 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 torch

torch.manual_seed(0)

# Create small tensors with distinct dimensions for clarity
batch_size = 2
feat_dim = 4

# gauss_params: mean parameters, shape [batch_size * feat_dim]
gauss_params = torch.randn(batch_size * feat_dim)

# input_val_feat: input features, shape [batch_size * feat_dim]
input_val_feat = torch.randn(batch_size * feat_dim)

# logvar: log variance, shape [feat_dim]
logvar = torch.randn(feat_dim)

# w: weights for robust component, shape [batch_size * feat_dim]
w = torch.rand(batch_size * feat_dim)

# shape_feats: feature shape
shape_feats = [feat_dim]

# Other parameters
isRobust = True
isClean = False
std_0_scale = 2

ARGS = {
    "gauss_params": gauss_params,
    "input_val_feat": input_val_feat,
    "logvar": logvar,
    "isRobust": isRobust,
    "w": w,
    "std_0_scale": std_0_scale,
    "isClean": isClean,
    "shape_feats": shape_feats,
}
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 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
getArgs Not yet run
unverified (harvested, no recorded run)
sfme/RVAE_MixedTypes/src/core_models/parser_arguments.py
code served (permissive licence) · get_code("7a6605b73571a685")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 5 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
logit_fn 1 other paper
1 later
2006.04730 (2020-06)
Picket: Guarding Against Corrupted Data in Tabular Data during Learning and Inference
nll_categ_global 1 other paper
1 later
2006.04730 (2020-06)
Picket: Guarding Against Corrupted Data in Tabular Data during Learning and Inference
nll_gauss_global 1 other paper
1 later
2006.04730 (2020-06)
Picket: Guarding Against Corrupted Data in Tabular Data during Learning and Inference

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

We focus on the problem of unsupervised cell outlier detection and repair in mixed-type tabular data. Traditional methods are concerned only with detecting which rows in the dataset are outliers. However, identifying which cells are corrupted in a specific row is an important problem in practice, and the very first step towards repairing them. We introduce the Robust Variational Autoencoder (RVAE), a deep generative model that learns the joint distribution of the clean data while identifying the outlier cells, allowing their imputation (repair). RVAE explicitly learns the probability of each cell being an outlier, balancing different likelihood models in the row outlier score, making the method suitable for outlier detection in mixed-type datasets. We show experimentally that not only RVAE performs better than several state-of-the-art methods in cell outlier detection and repair for tabular data, but also that is robust against the initial hyper-parameter selection.

For agents

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

get_harvested_code_for_paper("1907.06671")
get_code_for_paper("1907.06671")
have("1907.06671")

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

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

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

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

Connect an agent — have() is free.