SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1807.06228 · 2018

RuleMatrix: Visualizing and Understanding Classifiers with Rules

arXiv · PDF · Open in the Atlas

Code that ran

11 of 17 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 11 have no contract verdict; 0 failures of our instrument; 6 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/1807.06228.json · badge: /api/ran/1807.06228.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
rulematrix/rule-matrix-py community (classifier label)
classifier basis not recorded on the link
11 ran · 6 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/metrics.py
code served (permissive licence) · get_code("1eeee0ccaf141825")
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

# Construct valid arguments for the accuracy function
y_true = np.array([0, 1, 1, 0, 1])
y_pred = np.array([0, 1, 0, 0, 1])
weights = np.array([1.0, 1.0, 1.0, 1.0, 1.0])

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
    "weights": weights
}
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
auc_score Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/metrics.py
code served (permissive licence) · get_code("d3542621aac4348e")
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 1, dtype family float, shape (2,) 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
from sklearn.preprocessing import OneHotEncoder
from sklearn.metrics import roc_auc_score, log_loss

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

# Create small sample data
# y_true: binary labels (2 samples, 2 classes)
y_true = np.array([0, 1])

# y_pred: predicted probabilities for each class (2 samples, 2 classes)
# Shape should match the number of classes after one-hot encoding
y_pred = np.array([
    [0.9, 0.1],  # sample 0: high prob for class 0
    [0.2, 0.8]   # sample 1: high prob for class 1
])

# average parameter: can be None, 'micro', 'macro', 'weighted', 'samples'
average = None

ARGS = {
    'y_true': y_true,
    'y_pred': y_pred,
    'average': average
}
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 ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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
check_input_constraints Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/surrogate/sample.py
code served (permissive licence) · get_code("02e591dd6b1e1576")
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 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

# Setup for check_input_constraints
n_features = 5

# Create valid feature type masks
# We need to ensure they are exclusive and collectively exhaustive
is_continuous = np.array([True, True, False, False, False], dtype=np.bool_)
is_categorical = np.array([False, False, True, True, False], dtype=np.bool_)
is_integer = np.array([False, False, False, False, True], dtype=np.bool_)

ARGS = {
    'n_features': n_features,
    'is_continuous': is_continuous,
    'is_categorical': is_categorical,
    'is_integer': is_integer,
}
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 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
compute_mdlp_all_intervals Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/surrogate/discretize.py
code served (permissive licence) · get_code("c79736ac5b0a2bd0")
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

class MockMDLPDiscretizer:
    def __init__(self):
        # cut_points_ is a list where each element is either None or an array of cut points
        # The function iterates through these and calls assign_intervals
        self.cut_points_ = [
            np.array([1.5, 3.2, 5.1]),  # Feature 0: 3 cut points -> 4 intervals
            None,                         # Feature 1: no discretization
            np.array([2.0, 4.0]),        # Feature 2: 2 cut points -> 3 intervals
        ]
    
    def assign_intervals(self, idxs, feature_idx):
        # This method should return interval names based on indices
        # idxs has length len(cut_points) + 1, representing interval boundaries
        cut_points = self.cut_points_[feature_idx]
        n_intervals = len(cut_points) + 1
        
        # Generate simple interval names
        names = []
        for i in range(n_intervals):
            names.append(f"interval_{i}")
        return names

mdlp_discretizer = MockMDLPDiscretizer()

ARGS = {
    "mdlp_discretizer": mdlp_discretizer,
}
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
create_constraint Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/surrogate/sample.py
code served (permissive licence) · get_code("bbcc1d105e0a0c8d")
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 IntegerConstraint. 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 collections import defaultdict, namedtuple

INTEGER = 'integer'
CONTINUOUS = 'continuous'
CATEGORICAL = 'categorical'

class IntegerConstraint(namedtuple('IntegerConstraint', ['range_'])):
    def regularize(self, arr: np.ndarray):
        arr = np.round(arr)
        if self.range_ is not None:
            assert len(arr.shape) == 1
            arr[arr > self.range_[1]] = self.range_[1]
            arr[arr < self.range_[0]] = self.range_[0]
        return arr

CategoricalConstraint = namedtuple('CategoricalConstraint', ['categories'])

class ContinuousConstraint(namedtuple('ContinuousConstraint', ['range_'])):
    def regularize(self, arr: np.ndarray):
        if self.range_ is not None:
            arr = arr.copy()
            assert len(arr.shape) == 1
            arr[arr > self.range_[1]] = self.range_[1]
            arr[arr < self.range_[0]] = self.range_[0]
        return arr

def create_constraint(feature_type, **kwargs):
    if feature_type == INTEGER:
        return IntegerConstraint(kwargs['range_'])
    elif feature_type == CONTINUOUS:
        return ContinuousConstraint(kwargs['range_'])
    elif feature_type == CATEGORICAL:
        return CategoricalConstraint(None)
    else:
        raise ValueError('Unknown feature_type {}'.format(feature_type))

ARGS = {
    'feature_type': INTEGER,
    'range_': [0, 100]
}
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 IntegerConstraint — a IntegerConstraint output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a IntegerConstraint output the recorded ndim 2 and dtype family int 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_constraints Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/surrogate/sample.py
code served (permissive licence) · get_code("c103faf7972f2e5c")
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

ARGS = {
    'n_features': 5,
    'is_continuous': np.array([True, True, False, False, True], dtype=np.bool_),
    'is_categorical': np.array([False, False, True, True, False], dtype=np.bool_),
    'is_integer': np.array([False, False, False, False, False], dtype=np.bool_),
    'ranges': [
        (0.0, 1.0),
        (0.0, 10.0),
        None,
        None,
        (-5.0, 5.0)
    ]
}
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
discretizer2json Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/utils.py
code served (permissive licence) · get_code("677a4296cd9b867b")
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 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

class MockDiscretizer:
    """Mock discretizer that provides the interface needed by discretizer2json"""
    def __init__(self):
        # cut_points_ should be a list where each element is either None or an array of cut points
        self.cut_points_ = [
            np.array([1.5, 3.5, 5.5]),  # First feature: 3 cut points
            None,  # Second feature: no cut points (categorical)
            np.array([0.5, 1.5]),  # Third feature: 2 cut points
            np.array([10.0, 20.0, 30.0, 40.0])  # Fourth feature: 4 cut points
        ]
        
        # mins and maxs for each feature
        self.mins_ = np.array([0.0, 0.0, 0.0, 0.0])
        self.maxs_ = np.array([10.0, 5.0, 3.0, 50.0])
    
    def assign_intervals(self, categories, feature_idx):
        """
        Return intervals for given categories on a specific feature.
        categories is an array of category indices.
        Returns list of (low, high) tuples.
        """
        cut_points = self.cut_points_[feature_idx]
        
        if cut_points is None:
            # No cut points: all categories map to full range
            intervals = []
            for cat in categories:
                intervals.append((self.mins_[feature_idx], self.maxs_[feature_idx]))
            return intervals
        
        # With cut points, create intervals
        # For n cut points, we have n+1 intervals
        all_boundaries = np.concatenate([
            [-np.inf],
            cut_points,
            [np.inf]
        ])
        
        intervals = []
        for cat in categories:
            if cat < len(all_boundaries) - 1:
                low = all_boundaries[cat]
                high = all_boundaries[cat + 1]
                intervals.append((low, high))
            else:
                intervals.append((np.inf, np.inf))
        
        return intervals

discretizer = MockDiscretizer()

ARGS = {
    "discretizer": discretizer
}
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 1, dtype family float — 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
dumps Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/utils.py
code served (permissive licence) · get_code("b9ed416dd712f887")
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 json
import numpy as np
import torch

class NumpyEncoder(json.JSONEncoder):
    def default(self, obj):
        if isinstance(obj, np.ndarray):
            return obj.tolist()
        return json.JSONEncoder.default(self, obj)

def dumps(obj):
    return json.dumps(obj, cls=NumpyEncoder)

# Test objects with various types that NumpyEncoder handles
test_dict = {
    "numpy_array": np.array([[1, 2, 3], [4, 5, 6]]),
    "nested": {
        "array_2d": np.array([[7.5, 8.5], [9.5, 10.5]]),
        "string": "test",
        "number": 42
    },
    "list_of_arrays": [np.array([1, 2, 3]), np.array([4, 5, 6])],
    "scalar_int": 100,
    "scalar_float": 3.14,
    "boolean": True,
    "null_value": None
}

ARGS = {
    "obj": test_dict
}
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 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
filter_data Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/utils.py
code served (permissive licence) · get_code("a8c4c235c66db7be")
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 sample data
# x: 5 samples, 3 features
x = np.array([
    [1.0, 10.0, 100.0],
    [2.0, 20.0, 200.0],
    [3.0, 30.0, 300.0],
    [4.0, 40.0, 400.0],
    [5.0, 50.0, 500.0]
], dtype=np.float32)

# y: 5 target values
y = np.array([0, 1, 0, 1, 2], dtype=np.int32)

# is_categorical: True for categorical features, False for continuous
is_categorical = [False, True, False]

# query: None to skip filtering, or a list of filters per feature + one for y
# Each filter is None (no filter), a list of categories (for categorical),
# or [low, high] bounds (for continuous)
query = [
    [2.0, 4.0],      # Filter feature 0: continuous, between 2.0 and 4.0
    [10.0, 30.0],    # Filter feature 1: categorical values 10 or 30
    None,            # Filter feature 2: no filter
    [0, 1]           # Filter y: categorical values 0 or 1
]

ARGS = {
    "is_categorical": is_categorical,
    "x": x,
    "y": y,
    "query": query
}
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
label2binary Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/metrics.py
code served (permissive licence) · get_code("c01c1c0f3dfdaf67")
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 (5, 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
from sklearn.preprocessing import OneHotEncoder

# Create a small label array with distinct class labels
y = np.array([0, 1, 2, 0, 1])

ARGS = {
    "y": y
}
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 ndarray, ndim 2, dtype family float, shape (5, 3) — shape (5, 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
prepare_streams Ran
ran on a synthesized input
rulematrix/rule-matrix-py/rulematrix/visualization/data_model.py
code served (permissive licence) · get_code("db1fedad319eeca0")
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 torch
import torch.nn as nn
import numpy as np
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create a minimal model that satisfies function usage
class DummyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = DummyModel()

# Create a minimal dataset class with required attributes
class DummyDataset:
    def __init__(self):
        # Small tensors: batch_size=2, feature_dim=4
        self.data = torch.randn(2, 4)
        self.target = torch.randint(0, 2, (2,))
        
        # ranges and categories for conditional computation
        self.ranges = {0: (0.0, 1.0), 1: (0.0, 1.0), 2: (0.0, 1.0), 3: (0.0, 1.0)}
        self.categories = {}

dataset = DummyDataset()

# Mock the compute_streams and dumps functions since they're called but not defined
import sys
from types import ModuleType
mock_module = sys.modules.get('__main__')

def compute_streams(model, data, target, ranges, categories, conditional, bins):
    return {"streams": "data", "shape": data.shape}

def dumps(streams):
    return str(streams)

# Inject the functions into the namespace
if not hasattr(sys.modules.get('__main__', ModuleType('__main__')), 'compute_streams'):
    import builtins
    builtins.compute_streams = compute_streams
    builtins.dumps = dumps

ARGS = {
    "model": model,
    "dataset": dataset,
    "conditional": True,
    "bins": 20
}
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 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
compute_support_matrix Not yet run
unverified (harvested, no recorded run)
rulematrix/rule-matrix-py/rulematrix/visualization/data_model.py
code served (permissive licence) · get_code("242f789db4a0fa0a")
How it ran

no invocation recorded.

get_discretizer Not yet run
unverified (harvested, no recorded run)
rulematrix/rule-matrix-py/rulematrix/surrogate/discretize.py
code served (permissive licence) · get_code("010eba1abe819f5a")
How it ran

no invocation recorded.

obj2pkl Not yet run
unverified (harvested, no recorded run)
rulematrix/rule-matrix-py/rulematrix/server/utils.py
code served (permissive licence) · get_code("4b9339c331a65eff")
How it ran

no invocation recorded.

pkl2obj Not yet run
unverified (harvested, no recorded run)
rulematrix/rule-matrix-py/rulematrix/server/utils.py
code served (permissive licence) · get_code("a0dd49cfc5f36cb2")
How it ran

no invocation recorded.

prepare_rule_list_json Not yet run
unverified (harvested, no recorded run)
rulematrix/rule-matrix-py/rulematrix/visualization/data_model.py
code served (permissive licence) · get_code("4671b211694e13a6")
How it ran

no invocation recorded.

surrogate Not yet run
unverified (harvested, no recorded run)
rulematrix/rule-matrix-py/rulematrix/surrogate/surrogate.py
code served (permissive licence) · get_code("32847a5f07b51596")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 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 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.

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

With the growing adoption of machine learning techniques, there is a surge of research interest towards making machine learning systems more transparent and interpretable. Various visualizations have been developed to help model developers understand, diagnose, and refine machine learning models. However, a large number of potential but neglected users are the domain experts with little knowledge of machine learning but are expected to work with machine learning systems. In this paper, we present an interactive visualization technique to help users with little expertise in machine learning to understand, explore and validate predictive models. By viewing the model as a black box, we extract a standardized rule-based knowledge representation from its input-output behavior. We design RuleMatrix, a matrix-based visualization of rules to help users navigate and verify the rules and the black-box model. We evaluate the effectiveness of RuleMatrix via two use cases and a usability study.

For agents

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

get_harvested_code_for_paper("1807.06228")
get_code_for_paper("1807.06228")
have("1807.06228")

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

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

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

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

Connect an agent — have() is free.