SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.14143 · ICML · 2025

Leveraging Predictive Equivalence in Decision Trees

Cynthia Rudin, Margo Seltzer, Jon Donnelly, Hayden Mctavish, Zachery Boner, Hayden Mc- Tavish

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 (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2506.14143.json · badge: /api/ran/2506.14143.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
haydenmct/predictive-equivalence canonical (classifier label)
classifier basis: classifier_2025
3 ran · 1 no recorded run
FunctionStatusWhere it lives
PCC Ran
ran on a synthesized input · constructed an object; no result was computed
haydenmct/predictive-equivalence/models/pcc.py
code served (permissive licence) · get_code("2c5958e110c2b329")
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, PCC: 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 pandas as pd
import numpy as np

# Create sample data as pandas Series with boolean values
sample1 = pd.Series({
    'feature_0': True,
    'feature_1': False,
    'feature_2': True,
    'feature_3': np.nan,
    'feature_4': False
})

sample2 = pd.Series({
    'feature_0': False,
    'feature_1': True,
    'feature_2': np.nan,
    'feature_3': True,
    'feature_4': False
})

# Define PCC instances
true_features_1 = {'feature_0', 'feature_2'}
false_features_1 = {'feature_1'}

true_features_2 = {'feature_0'}
false_features_2 = {'feature_1', 'feature_4'}

ARGS = {
    'true_features': true_features_1,
    'false_features': false_features_1
}
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 PCC — 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 PCC 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
merge_pccs Ran
ran; our contract draft was wrong, not the code
haydenmct/predictive-equivalence/models/pcc.py
code served (permissive licence) · get_code("ef2860296a12014d")
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 set. 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 copy
import pandas as pd

class PCC:
    """
    A partial concept class is a partial specification of 
    feature values, containing information about 
    two sets: 
        a set of features that need to be true, 
        a set of features that need to be false. 
    It leaves as unspecified the features that can be either true or false.
    """

    def __init__(self, true_features: set, false_features: set):
        self.true_features = frozenset(true_features)
        self.false_features = frozenset(false_features)

    def __eq__(self, other):
        """
        Two partial concept classes are equal if they have the same true and false sets
        """
        return self.true_features == other.true_features and self.false_features == other.false_features

    def __hash__(self):
        return hash((self.true_features, self.false_features))

    def get_true_features(self):
        return self.true_features

    def get_false_features(self):
        return self.false_features

    def is_subsumed(self, other_PCC):
        """
        A PCC is subsumed by another PCC if both the true and false sets
        of the other PCC are subsets of this PCC

        Args:
        - other_PCC: another PCC

        Returns: True if this PCC is subsumed by the other PCC, False otherwise
        """
        return self.true_features.issuperset(other_PCC.true_features) and self.false_features.issuperset(other_PCC.false_features)

    def covers(self, sample: pd.Series):
        """
        Given a training sample, evaluate whether the sample satisfies the PCC
        If we cannot evaluate whether the sample satisfies the PCC, we return False
            (whether or not that's due to NA)

        Args:
        - sample: a pandas series representing a sample
                    (should be boolean)
        """
        return sample.iloc[sorted(self.true_features)].fillna(False).all() and (not sample.iloc[sorted(self.false_features)].fillna(True).any())


# Construct test PCCs
pcc1 = PCC(true_features={'a', 'b'}, false_features={'c'})
pcc2 = PCC(true_features={'a'}, false_features={'b', 'c'})
pcc3 = PCC(true_features={'d'}, false_features={'e'})

pccs_input = {pcc1, pcc2, pcc3}

ARGS = {
    'pccs': pccs_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
tree_to_leaf_pccs Ran
ran; our contract draft was wrong, not the code
haydenmct/predictive-equivalence/models/pcc.py
code served (permissive licence) · get_code("f0eb654fa74c19b0")
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 pandas as pd

class PCC:
    """
    A partial concept class is a partial specification of 
    feature values, containing information about 
    two sets: 
        a set of features that need to be true, 
        a set of features that need to be false. 
    It leaves as unspecified the features that can be either true or false.
    """

    def __init__(self, true_features: set, false_features: set):
        self.true_features = frozenset(true_features)
        self.false_features = frozenset(false_features)

    def __eq__(self, other):
        """
        Two partial concept classes are equal if they have the same true and false sets
        """
        return self.true_features == other.true_features and self.false_features == other.false_features

    def __hash__(self):
        return hash((self.true_features, self.false_features))

    def get_true_features(self):
        return self.true_features

    def get_false_features(self):
        return self.false_features

    def is_subsumed(self, other_PCC):
        """
        A PCC is subsumed by another PCC if both the true and false sets
        of the other PCC are subsets of this PCC

        Args:
        - other_PCC: another PCC

        Returns: True if this PCC is subsumed by the other PCC, False otherwise
        """
        return self.true_features.issuperset(other_PCC.true_features) and self.false_features.issuperset(other_PCC.false_features)

    def covers(self, sample: pd.Series):
        """
        Given a training sample, evaluate whether the sample satisfies the PCC
        If we cannot evaluate whether the sample satisfies the PCC, we return False
            (whether or not that's due to NA)

        Args:
        - sample: a pandas series representing a sample
                    (should be boolean)
        """
        return sample.iloc[sorted(self.true_features)].fillna(False).all() and (not sample.iloc[sorted(self.false_features)].fillna(True).any())


# Create a simple decision tree JSON structure
# Tree structure: splits on feature 0, then feature 1
# Left branch (feature 0 true) -> splits on feature 1
#   - Left sub-branch (feature 1 true) -> prediction 1
#   - Right sub-branch (feature 1 false) -> prediction 0
# Right branch (feature 0 false) -> prediction 1

tree_json = {
    'feature': 0,
    'true': {
        'feature': 1,
        'true': {
            'prediction': 1
        },
        'false': {
            'prediction': 0
        }
    },
    'false': {
        'prediction': 1
    }
}

ARGS = {
    'tree_json': tree_json,
    'true_features': set(),
    'false_features': set()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
pcc_representation Not yet run
unverified (harvested, no recorded run)
haydenmct/predictive-equivalence/models/pcc.py
code served (permissive licence) · get_code("276342bb0ec1d263")
How it ran

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Decision trees are widely used for interpretable machine learning due to their clearly structured reasoning process. However, this structure belies a challenge we refer to as predictive equivalence: a given tree's decision boundary can be represented by many different decision trees. The presence of models with identical decision boundaries but different evaluation processes makes model selection challenging. The models will have different variable importance and behave differently in the presence of missing values, but most optimization procedures will arbitrarily choose one such model to return. We present a boolean logical representation of decision trees that does not exhibit predictive equivalence and is faithful to the underlying decision boundary. We apply our representation to several downstream machine learning tasks. Using our representation, we show that decision trees are surprisingly robust to test-time missingness of feature values; we address predictive equivalence's impact on quantifying variable importance; and we present an algorithm to optimize the cost of reaching predictions.

For agents

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

get_harvested_code_for_paper("2506.14143")
get_code_for_paper("2506.14143")
have("2506.14143")

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

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

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

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

Connect an agent — have() is free.