SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1604.07143 · 2016

Neural Random Forests

arXiv · PDF · Open in the Atlas

Code that ran

10 of 15 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 9 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/1604.07143.json · badge: /api/ran/1604.07143.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
dhuynh95/cryptotree community (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
JohannesMaxWel/neural_random_forests reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_leaves Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/activations.py
code served (permissive licence) · get_code("d73c97995a2c56c8")
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 numpy as np
from typing import List, Tuple

# Create a simple tree structure
# Tree with 5 nodes:
#       0
#      / \
#     1   2
#    / \
#   3   4
# Nodes 3, 4, 2 are leaves

n_nodes = 5
children_left = [1, 3, -1, -1, -1]  # -1 indicates no child
children_right = [2, 4, -1, -1, -1]

ARGS = {
    "n_nodes": n_nodes,
    "children_left": children_left,
    "children_right": children_right,
}
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 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
create_parent_of Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/activations.py
code served (permissive licence) · get_code("dac03d02b81c3b40")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - n_nodes: int, number of nodes in tree
# - is_leaves: indexable boolean array, checks if node i is a leaf
# - children_left: indexable, gets left child index for non-leaf node i
# - children_right: indexable, gets right child index for non-leaf node i
# - left_value: value to associate with left child (default 0)
# - right_value: value to associate with right child (default 1)

# Create a small tree structure:
# Node 0 (root, not leaf) -> left child: 1, right child: 2
# Node 1 (leaf)
# Node 2 (not leaf) -> left child: 3, right child: 4
# Node 3 (leaf)
# Node 4 (leaf)

n_nodes = 5
is_leaves = np.array([False, True, False, True, True])
children_left = np.array([1, -1, 3, -1, -1])  # -1 for leaves (not accessed)
children_right = np.array([2, -1, 4, -1, -1])  # -1 for leaves (not accessed)
left_value = 0
right_value = 1

ARGS = {
    "n_nodes": n_nodes,
    "is_leaves": is_leaves,
    "children_left": children_left,
    "children_right": children_right,
    "left_value": left_value,
    "right_value": right_value,
}
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 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
extract_diagonals Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/linear.py
code served (permissive licence) · get_code("fd06bb6eff933360")
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, 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 numpy as np

# Create a small square matrix for testing
matrix = np.array([
    [1, 2, 3, 4],
    [5, 6, 7, 8],
    [9, 10, 11, 12],
    [13, 14, 15, 16]
])

ARGS = {
    "matrix": matrix
}
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, ndim 2, dtype family int — a list 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
pad_along_axis Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/linear.py
code served (permissive licence) · get_code("231c0df12681fba8")
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 (6, 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 a small numpy array with distinct dimensions for clarity
array = np.random.randn(4, 3)

# Set target_length to be larger than current axis size to trigger padding
target_length = 6

# Set axis to pad along (axis 0 in this case)
axis = 0

ARGS = {
    "array": array,
    "target_length": target_length,
    "axis": axis,
}
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 (6, 3) — shape (6, 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
pad_tensor Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/tree.py
code served (permissive licence) · get_code("254afcaedc5de2a9")
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 (5, 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 a small tensor to pad
# Use shape (2, 4) - batch size 2, feature dim 4
tensor = torch.randn(2, 4)

# Target size for padding dimension
target = 5

# Dimension to pad along
dim = 0

# Padding value
value = 0

ARGS = {
    "tensor": tensor,
    "target": target,
    "dim": dim,
    "value": value,
}
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 (5, 4) — shape (5, 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
plot_graph_function_approximation Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/polynomials.py
code served (permissive licence) · get_code("c72bffa93c2d2e9a")
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 1, 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 torch
import numpy as np

torch.manual_seed(0)

# Define a simple function that takes a torch tensor and returns values
# The function will be called with scaled inputs during approximation
def test_function(x):
    """A simple sigmoid-like function for testing."""
    if isinstance(x, torch.Tensor):
        return torch.sigmoid(x)
    else:
        return 1.0 / (1.0 + np.exp(-x))

ARGS = {
    'f': test_function,
    'dilatation_factor': 50,
    'polynomial_degree': 25,
    'bound': 1,
    'convertToTensor': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
split_data Ran
ran; our contract draft was wrong, not the code
JohannesMaxWel/neural_random_forests/dataloader.py
pointer only (licence: NONE) · get_code("75b8158e943d040c")
How it ran

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

to_list_and_duplicate Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/cryptotree.py
code served (permissive licence) · get_code("8f266d95629d3860")
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, ndim 1, 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
import numpy as np

torch.manual_seed(0)

# The function takes an array parameter and:
# 1. Converts it to a list
# 2. Appends a 0
# 3. Appends a copy of the original array
# So we need to provide an array-like object (list, tuple, numpy array, or torch tensor)

# Create a small test array
test_array = [1, 2, 3, 4]

ARGS = {
    "array": test_array
}
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 list, ndim 1, dtype family int — a list 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
to_list_and_pad Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/cryptotree.py
code served (permissive licence) · get_code("88efd816ad8e0c07")
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, ndim 1, 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
import numpy as np

torch.manual_seed(0)

# The function takes an array parameter and:
# 1. Converts it to a list
# 2. Appends zeros to it
# 3. Returns the modified list
# So we need to pass an array-like object (list, tuple, numpy array, or torch tensor)

# Create a small array to pass
array = [1, 2, 3, 4]

ARGS = {
    "array": array
}
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 list, ndim 1, dtype family int — a list 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
vrep Ran
ran on a synthesized input
dhuynh95/cryptotree/cryptotree/seal_helper.py
code served (permissive licence) · get_code("cebcc134f236462c")
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, ndim 1, 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 vrep takes:
# - x: a sequence (list or tensor) that supports len(), slicing, and multiplication
# - n: an integer representing the desired output length

# Let's use a list as x since it supports len(), slicing, and concatenation
x = [1, 2, 3, 4]
n = 10

ARGS = {
    "x": x,
    "n": n,
}
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 list, ndim 1, dtype family int — a list 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
chebyshev_approximation Not yet run
unverified (harvested, no recorded run)
dhuynh95/cryptotree/cryptotree/polynomials.py
code served (permissive licence) · get_code("6b7f9a11ed22c570")
How it ran

no invocation recorded.

create_linear_node_comparator Not yet run
unverified (harvested, no recorded run)
dhuynh95/cryptotree/cryptotree/activations.py
code served (permissive licence) · get_code("24733aa993117a45")
How it ran

no invocation recorded.

custom_doc_links Not yet run
unverified (harvested, no recorded run)
dhuynh95/cryptotree/cryptotree/_nbdev.py
code served (permissive licence) · get_code("c00f1d9594b0678a")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
JohannesMaxWel/neural_random_forests/dataloader.py
pointer only (licence: NONE) · get_code("1df04c3a3f2a1745")
How it ran

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

polynomial_approximation_coefficients Not yet run
unverified (harvested, no recorded run)
dhuynh95/cryptotree/cryptotree/polynomials.py
code served (permissive licence) · get_code("d8493782f4a6908e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 14 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
custom_doc_links 9 other papers
1 dated earlier, 8 later
1403.6652 (2014-03)
DeepWalk: Online Learning of Social Representations
1812.08693 (2018-12)
An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translation
1903.10663 (2019-03)
Combination of Multiple Global Descriptors for Image Retrieval
and 6 more not named here

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

Given an ensemble of randomized regression trees, it is possible to restructure them as a collection of multilayered neural networks with particular connection weights. Following this principle, we reformulate the random forest method of Breiman (2001) into a neural network setting, and in turn propose two new hybrid procedures that we call neural random forests. Both predictors exploit prior knowledge of regression trees for their architecture, have less parameters to tune than standard networks, and less restrictions on the geometry of the decision boundaries than trees. Consistency results are proved, and substantial numerical evidence is provided on both synthetic and real data sets to assess the excellent performance of our methods in a large variety of prediction problems.

For agents

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

get_harvested_code_for_paper("1604.07143")
get_code_for_paper("1604.07143")
have("1604.07143")

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

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

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

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

Connect an agent — have() is free.