SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1809.03207 · 2018

Beyond the Selected Completely At Random Assumption for Learning from Positive and Unlabeled Data

arXiv · PDF · Open in the Atlas

Code that ran

16 of 20 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 16 have no contract verdict; 0 failures of our instrument; 4 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/1809.03207.json · badge: /api/ran/1809.03207.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
ML-KULeuven/SAR-PU community (classifier label)
classifier basis not recorded on the link
16 ran · 4 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/evaluation.py
code served (permissive licence) · get_code("392b682dd10b9a9b")
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 numpy as np

# The function computes accuracy by comparing true vs pred values
# It expects numpy arrays or array-like objects that support subtraction and abs()

np.random.seed(0)

# Create small arrays for true labels and predictions
true = np.array([0.0, 1.0, 1.0, 0.0])
pred = np.array([0.1, 0.9, 1.0, 0.05])

ARGS = {
    "true": true,
    "pred": pred,
}
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 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
binarize Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/data_processing.py
code served (permissive licence) · get_code("3d1135a1974c4aa5")
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 simple DataFrame with a column to binarize
data = {
    'feature1': [1.0, 2.0, 3.0, 4.0],
    'feature2': [5.0, 6.0, 7.0, 8.0],
    'category': ['A', 'B', 'A', 'C']
}
df = pd.DataFrame(data)

ARGS = {
    'df': df,
    'column': 'category'
}
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
compute_best_rbf_kernel_width Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/lib/km/km/Kernel_MPE_grad_threshold.py
code served (permissive licence) · get_code("c7b90aa51789cfcf")
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 small sample data
np.random.seed(0)

# X_mixture: N samples of dimension D
N = 3
D = 4
X_mixture = np.random.randn(N, D).astype(np.float64)

# X_component: M samples of dimension D
M = 2
X_component = np.random.randn(M, D).astype(np.float64)

ARGS = {
    "X_mixture": X_mixture,
    "X_component": X_component,
}
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
fp Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/evaluation.py
code served (permissive licence) · get_code("ec7fc63d99c0d644")
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 fp takes two parameters: true and pred
# It performs element-wise operations: (pred * (1 - true)).mean()
# Both parameters should be tensors that support:
# - multiplication (*)
# - subtraction (-)
# - .mean() method

true = torch.tensor([
    [1.0, 0.0, 1.0, 0.0],
    [0.0, 1.0, 0.0, 1.0]
], dtype=torch.float32)

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

ARGS = {
    "true": true,
    "pred": 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
keep_k_most_common Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/data_processing.py
code served (permissive licence) · get_code("e444fb0eb2e6bef5")
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 with a categorical column
df = pd.DataFrame({
    'category': ['A', 'B', 'C', 'A', 'B', 'A', 'D', 'E', 'A', 'B'],
    'value': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
})

ARGS = {
    'df': df,
    'column': 'category',
    'k': 2,
    'other': 'other'
}
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
low_c Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/lib/tice/tice/tice.py
code served (permissive licence) · get_code("1ff62228d9b009fc")
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 math
import torch
import numpy as np

class CountableData:
    """Stand-in class that implements count() method for bitwise operations."""
    def __init__(self, value):
        self.value = value
    
    def count(self):
        """Return the count of truthy elements."""
        if isinstance(self.value, (int, float)):
            return int(self.value) if self.value else 0
        return int(self.value)
    
    def __and__(self, other):
        """Bitwise AND operation."""
        if isinstance(other, CountableData):
            result_value = self.value & other.value if isinstance(self.value, int) else self.value * other.value
        else:
            result_value = self.value & other if isinstance(self.value, int) else self.value * other
        return CountableData(result_value)

# Create test data
torch.manual_seed(0)

# data: needs .count() method and & operator
data = CountableData(100)

# label: needs .count() method and & operator with data
label = CountableData(80)

# delta: float between 0 and 1 (used in denominator, so must be positive)
delta = 0.05

# minT: minimum threshold for T
minT = 50

# c: parameter for the formula (default 0.5)
c = 0.5

ARGS = {
    "data": data,
    "label": label,
    "delta": delta,
    "minT": minT,
    "c": c
}
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
max_bepp Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/lib/tice/tice/tice.py
code served (permissive licence) · get_code("58f045c773108472")
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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# max_bepp takes parameter 'k' (a number)
# It returns a function 'fun' that takes 'counts'
# 'counts' is iterated over with map, each element TP is expected to be indexable with [0] and [1]
# TP[0] should be comparable to 0 (looks like it should be numeric)
# TP[1] should be divisible by (TP[0] + k)
# The function returns the max of these computed values

# So 'counts' should be a list/iterable of tuples or sequences with at least 2 numeric elements

# Example: counts could be [(TP_count, TP_value), ...]
# where TP_count is a count and TP_value is a value to normalize

k = 5

# Create valid counts argument - list of tuples (count, value)
# Using distinct values to make it clear
counts = [
    (10, 50),    # 50 / (10 + 5) = 50/15 = 3.333...
    (0, 100),    # 0 / (0 + 5) = 0 (TP[0] == 0 case)
    (20, 80),    # 80 / (20 + 5) = 80/25 = 3.2
]

ARGS = {
    "k": k
}
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 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
original_data_path Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/paths_and_names.py
code served (permissive licence) · get_code("24699e61a8913eef")
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

def original_data_path(data_folder, data_name):
    return os.path.join(data_folder, data_name, 'original')

ARGS = {
    'data_folder': '/tmp/data',
    'data_name': 'dataset_v1'
}
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
parse_cl_atts Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/experiments.py
code served (permissive licence) · get_code("3719d8c26afdaba8")
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 numpy as np

def parse_cl_atts(string):
    if string == 'all':
        return lambda x: np.ones(x.shape[1]).astype(bool)
    else:
        atts = []
        for s in string.split('.'):
            if '-' in s:
                begin, end = s.split('-')
                atts += list(range(int(begin), int(end) + 1))
            else:
                atts += [int(s)]
        return lambda x: atts

# Test with 'all' case
ARGS = {
    'string': 'all'
}
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 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
parse_labeling_model Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/labeling_mechanisms.py
code served (permissive licence) · get_code("7d4cfbc0e8c0918d")
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 SimpleLabeling. 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 re
import numpy as np

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

# Create minimal valid arguments for parse_labeling_model
labeling_model_type = "simple_0.2_0.8"
propensity_attributes = [0, 1, 2]
propensity_attributes_signs = [1, -1, 1]

ARGS = {
    "labeling_model_type": labeling_model_type,
    "propensity_attributes": propensity_attributes,
    "propensity_attributes_signs": propensity_attributes_signs,
}
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 SimpleLabeling — a SimpleLabeling output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleLabeling 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
parse_propensity_attributes Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/__main__.py
code served (permissive licence) · get_code("485e31dbab6c48df")
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 int; 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 torch

torch.manual_seed(0)

# The function parse_propensity_attributes takes a string argument
# It splits by '.', converts to absolute integers, and tracks signs
# Example: "1.2.-3" should work

arg = "1.2.-3"

ARGS = {
    "arg": arg
}
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 tuple, ndim 2, dtype family int — 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
partitions_data_path Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/paths_and_names.py
code served (permissive licence) · get_code("d7dcbcf5040563af")
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

def partitions_data_path(data_folder, data_name):
    return os.path.join(data_folder, data_name, 'processed', 'partitions')

ARGS = {
    'data_folder': '/tmp/data',
    'data_name': 'dataset_v1'
}
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
pick_delta Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/lib/tice/tice/tice.py
code served (permissive licence) · get_code("50b21e7e6829bc67")
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)

# Analyze the function: pick_delta(T) takes a single parameter T
# It performs arithmetic operations: max(0.025, 1 / (1 + 0.004 * T))
# T should be a numeric value (int or float)

T = 100

ARGS = {
    "T": T
}
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
processed_data_path Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/paths_and_names.py
code served (permissive licence) · get_code("8b3e0aaca0e07859")
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

def processed_data_path(data_folder, data_name):
    return os.path.join(data_folder, data_name, 'processed')

ARGS = {
    'data_folder': '/tmp/data',
    'data_name': 'dataset_v1'
}
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
read_data Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/input_output.py
code served (permissive licence) · get_code("93af1f21100c125e")
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 list. 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 temporary directory and files for testing
tmpdir = tempfile.mkdtemp()

# Create sample data files
data_file1 = os.path.join(tmpdir, "data1.txt")
data_file2 = os.path.join(tmpdir, "data2.txt")
partitions_file = os.path.join(tmpdir, "partitions.txt")

# Write sample data
np.savetxt(data_file1, np.random.randn(10, 4), delimiter=",")
np.savetxt(data_file2, np.random.randn(10, 3), delimiter=",")

# Write partitions file (0 is ignored, partitions 1 and 2 are used)
partitions_data = np.array([0, 1, 1, 2, 2, 1, 0, 2, 1, 2])
np.savetxt(partitions_file, partitions_data, delimiter=",", fmt="%d")

ARGS = {
    "data_files": [data_file1, data_file2],
    "partitions_file": partitions_file,
    "delimiter": ","
}
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 list — a list 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
tp Ran
ran on a synthesized input
ML-KULeuven/SAR-PU/sarpu/sarpu/evaluation.py
code served (permissive licence) · get_code("d88647279680aeec")
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
import torch.nn as nn

torch.manual_seed(0)

# The function tp(true, pred) computes (pred * true).mean()
# Both true and pred need to be tensors that support element-wise multiplication and .mean()

true = torch.randn(2, 4)
pred = torch.randn(2, 4)

ARGS = {
    "true": true,
    "pred": 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
copy_if_possible Not yet run
unverified (harvested, no recorded run)
ML-KULeuven/SAR-PU/sarpu/sarpu/experiments.py
code served (permissive licence) · get_code("be88997e62f65795")
How it ran

no invocation recorded.

generate_attributes Not yet run
unverified (harvested, no recorded run)
ML-KULeuven/SAR-PU/sarpu/sarpu/data_extending.py
code served (permissive licence) · get_code("8a181ed99567fe3c")
How it ran

no invocation recorded.

label_data Not yet run
unverified (harvested, no recorded run)
ML-KULeuven/SAR-PU/sarpu/sarpu/labeling_mechanisms.py
code served (permissive licence) · get_code("8182fdee9c3c4d2a")
How it ran

no invocation recorded.

parse_settings Not yet run
unverified (harvested, no recorded run)
ML-KULeuven/SAR-PU/sarpu/sarpu/experiments.py
code served (permissive licence) · get_code("1c4ebff91cd1fdaf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 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 17 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
compute_best_rbf_kernel_width 1 other paper
1 later
1902.06965 (2019-02)
DEDPUL: Difference-of-Estimated-Densities-based Positive-Unlabeled Learning
low_c 1 other paper
1 later
1902.06965 (2019-02)
DEDPUL: Difference-of-Estimated-Densities-based Positive-Unlabeled Learning
pick_delta 1 other paper
1 later
1902.06965 (2019-02)
DEDPUL: Difference-of-Estimated-Densities-based Positive-Unlabeled Learning

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

Most positive and unlabeled data is subject to selection biases. The labeled examples can, for example, be selected from the positive set because they are easier to obtain or more obviously positive. This paper investigates how learning can be ena BHbled in this setting. We propose and theoretically analyze an empirical-risk-based method for incorporating the labeling mechanism. Additionally, we investigate under which assumptions learning is possible when the labeling mechanism is not fully understood and propose a practical method to enable this. Our empirical analysis supports the theoretical results and shows that taking into account the possibility of a selection bias, even when the labeling mechanism is unknown, improves the trained classifiers.

For agents

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

get_harvested_code_for_paper("1809.03207")
get_code_for_paper("1809.03207")
have("1809.03207")

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

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

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

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

Connect an agent — have() is free.