SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.08461 · NeurIPS · 2022

Positive-Unlabeled Learning using Random Forests via Recursive Greedy Risk Minimization

Miao Xu, Nan Ye, Jonathan Wilton, Abigail Koay, Ryan Ko

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 1 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/2210.08461.json · badge: /api/ran/2210.08461.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
puetpaper/PUExtraTrees marked official in Papers with Code
Papers with Code archive
2 ran · 0 no recorded run
arjuns07/puextratrees community
Papers with Code archive
1 ran · 1 no recorded run
FunctionStatusWhere it lives
PUExtraTree Ran
ran on a synthesized input · constructed an object; no result was computed
puetpaper/PUExtraTrees/trees.py
code served (permissive licence) · get_code("00b063b9c5e4a20a")
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 an instance of its own class, PUExtraTree: the run constructed the object and did not call it, so no result was computed. 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

ARGS = {
    'risk_estimator': 'nnPU',
    'loss': 'quadratic',
    'max_depth': 5,
    'min_samples_leaf': 1,
    'max_features': 'sqrt',
    'max_candidates': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PUExtraTree — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PUExtraTree 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
PUExtraTree Ran
ran on a synthesized input · constructed an object; no result was computed
arjuns07/puextratrees/src/PUExtraTrees_ArjunS07_pip/trees.py
pointer only (licence: NONE) · get_code("fc984a5c10f8a741")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, arjuns07/puextratrees 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.

PUExtraTrees Ran
ran on a synthesized input · constructed an object; no result was computed
puetpaper/PUExtraTrees/trees.py
code served (permissive licence) · get_code("347e5de44e856cd8")
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 an instance of its own class, PUExtraTrees: the run constructed the object and did not call it, so no result was computed. 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 scipy import sparse
import torch

# Create small sample data for PU learning
np.random.seed(0)
torch.manual_seed(0)

# Generate synthetic PU learning data
n_samples = 20
n_features = 5

# Features: shape (n_samples, n_features)
X = np.random.randn(n_samples, n_features).astype(np.float32)

# Labels for PU learning:
# P = positive (labeled) samples
# U = unlabeled samples (mixture of positive and negative)
# N = negative samples (for PN comparison)

P_indices = np.arange(0, 5)  # First 5 samples are positive
U_indices = np.arange(5, 15)  # Next 10 samples are unlabeled
N_indices = np.arange(15, 20)  # Last 5 samples are negative

P = X[P_indices]
U = X[U_indices]
N = X[N_indices]

# Create labels for supervised learning (for PN risk estimator)
y_P = np.ones(len(P_indices))
y_N = -np.ones(len(N_indices))

ARGS = {
    'risk_estimator': 'nnPU',
    'loss': 'quadratic',
    'max_depth': 10,
    'min_samples_leaf': 1,
    'max_features': 'sqrt',
    'max_candidates': 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
joblib, numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PUExtraTrees — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PUExtraTrees 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
PUExtraTrees Not yet run
unverified (harvested, no recorded run)
arjuns07/puextratrees/src/PUExtraTrees_ArjunS07_pip/trees.py
pointer only (licence: NONE) · get_code("7a34a6765f2b2647")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, arjuns07/puextratrees 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 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

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

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

The need to learn from positive and unlabeled data, or PU learning, arises in many applications and has attracted increasing interest. While random forests are known to perform well on many tasks with positive and negative data, recent PU algorithms are generally based on deep neural networks, and the potential of tree-based PU learning is under-explored. In this paper, we propose new random forest algorithms for PU-learning. Key to our approach is a new interpretation of decision tree algorithms for positive and negative data as recursive greedy risk minimization algorithms. We extend this perspective to the PU setting to develop new decision tree learning algorithms that directly minimizes PU-data based estimators for the expected risk. This allows us to develop an efficient PU random forest algorithm, PU extra trees. Our approach features three desirable properties: it is robust to the choice of the loss function in the sense that various loss functions lead to the same decision trees; it requires little hyperparameter tuning as compared to neural network based PU learning; it supports a feature importance that directly measures a feature's contribution to risk minimization. Our algorithms demonstrate strong performance on several datasets. Our code is available at https://github.com/puetpaper/PUExtraTrees.

For agents

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

get_harvested_code_for_paper("2210.08461")
get_code_for_paper("2210.08461")
have("2210.08461")

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

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

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

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

Connect an agent — have() is free.