SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.04755 · 2018

A Simple and Effective Model-Based Variable Importance Measure

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 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 10 have no contract verdict; 1 failure of our instrument; 3 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/1805.04755.json · badge: /api/ran/1805.04755.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
monte-flora/scikit-explain community (classifier label)
classifier basis not recorded on the link
11 ran · 3 no recorded run
FunctionStatusWhere it lives
ParallelExecutor Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/multiprocessing_utils.py
code served (permissive licence) · get_code("65a49283a723963a")
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
from tqdm import tqdm
from joblib import delayed, Parallel

torch.manual_seed(0)

# Create some simple delayed operations for testing
def dummy_operation(x):
    return x * 2

# Create a list of delayed operations
operations = [delayed(dummy_operation)(i) for i in range(3)]

ARGS = {
    'use_bar': 'tqdm',
    'joblib_args': {'n_jobs': 2},
    'tqdm_args': {'desc': 'Processing', 'total': 3}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
joblib, numpy, torch, tqdm — 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
brier_skill_score Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/metrics.py
code served (permissive licence) · get_code("629417c28d1263b3")
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 arguments for brier_skill_score
# The function expects:
# - y_values: binary labels (0 or 1)
# - forecast_probabilities: predicted probabilities (between 0 and 1)

np.random.seed(0)

# Create sample binary labels
y_values = np.array([0, 1, 1, 0, 1, 1, 0, 0])

# Create sample forecast probabilities
forecast_probabilities = np.array([0.1, 0.9, 0.8, 0.2, 0.7, 0.85, 0.15, 0.05])

ARGS = {
    "y_values": y_values,
    "forecast_probabilities": forecast_probabilities,
}
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 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
calc_sr_min Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/metrics.py
code served (permissive licence) · get_code("aa9b14d1748eca75")
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 (100,) 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

def calc_sr_min(skew):
    pod = np.linspace(0, 1, 100)
    sr_min = skew * pod / (1 - skew + skew * pod)
    return sr_min

# The function takes a single parameter 'skew' which should be a numpy array or scalar
# that can be used in arithmetic operations with numpy arrays

ARGS = {
    "skew": 0.3
}
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 1, dtype family float, shape (100,) — shape (100,) 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
ensure_str_features Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/utils.py
code served (permissive licence) · get_code("a36b612a3486f067")
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
import pandas as pd

# Test case 1: pandas Index (from DataFrame columns)
df = pd.DataFrame({'feat1': [1, 2], 'feat2': [3, 4]})
pandas_index = df.columns

# Test case 2: numpy array of strings
numpy_array = np.array(['feat_a', 'feat_b', 'feat_c'])

# Test case 3: list of strings
list_features = ['feature_1', 'feature_2', 'feature_3', 'feature_4']

# Test case 4: tuple of strings
tuple_features = ('x', 'y', 'z')

# Use pandas Index as the primary test case since it has tolist() method
ARGS = {
    'feature_names': pandas_index
}
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 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
flatten_nested_list Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/utils.py
code served (permissive licence) · get_code("b9df9206d9e212e1")
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)

# Test case 1: list of lists with uniform structure
test_list_1 = [[1, 2, 3], [4, 5], [6]]

# Test case 2: mixed list with some non-list items that need wrapping
test_list_2 = [[7, 8], 9, 10, [11, 12, 13]]

# Test case 3: pure list of lists
test_list_3 = [['a', 'b'], ['c'], ['d', 'e', 'f']]

ARGS = {
    "list_of_lists": test_list_1
}
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
get_indices_based_on_performance Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/contrib_utils.py
code served (permissive licence) · get_code("ba7d9651e2dd71ff")
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 numpy as np
import pandas as pd
from sklearn.linear_model import LogisticRegression

# Create a simple estimator that has predict_proba and predict methods
estimator = LogisticRegression(random_state=42)

# Create sample data
np.random.seed(0)
n_samples = 10
n_features = 4

X = np.random.randn(n_samples, n_features).astype(np.float32)
y = np.array([0, 1, 0, 1, 0, 1, 1, 0, 1, 0])

# Fit the estimator so predict_proba works
estimator.fit(X, y)

# Define ARGS dictionary with all parameters
ARGS = {
    'estimator': estimator,
    'X': X,
    'y': y,
    'estimator_output': 'probability',
    'n_samples': 3,
    'class_idx': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — 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
group_feature_values Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/contrib_utils.py
code served (permissive licence) · get_code("b936e84cea691ab6")
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
from sklearn.preprocessing import MinMaxScaler

# Create a small DataFrame with some numeric columns
X = pd.DataFrame({
    'feat1': [1.0, 2.0, 3.0, 4.0],
    'feat2': [10.0, 20.0, 30.0, 40.0],
    'feat3': [100.0, 200.0, 300.0, 400.0],
    'feat4': [0.1, 0.2, 0.3, 0.4]
})

# Define groups mapping feature names to lists of column names
groups = {
    'group_a': ['feat1', 'feat2'],
    'group_b': ['feat3', 'feat4']
}

# Define indices to use (subset of rows)
inds = np.array([0, 1, 2])

# Define function to use for aggregation
func = np.mean

ARGS = {
    'X': X,
    'groups': groups,
    'inds': inds,
    'func': func
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — 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
modified_precision Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/metrics.py
code served (permissive licence) · get_code("0c2fb4092e113f68")
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 (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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - precision: a numpy array or tensor that gets modified in-place with precision[precision < 1e-05] = 1e-05
# - known_skew: a scalar (float) used in arithmetic operations
# - new_skew: a scalar (float) used in arithmetic operations
# The function performs arithmetic operations on these values and returns a result

# Create valid arguments
precision = np.array([0.5, 0.8, 0.00001, 0.9], dtype=np.float32)
known_skew = 0.3
new_skew = 0.4

ARGS = {
    "precision": precision,
    "known_skew": known_skew,
    "new_skew": new_skew
}
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 ndarray, ndim 1, dtype family float, shape (4,) — shape (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
non_increasing Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/importance_utils.py
code served (permissive licence) · get_code("c0a33cc0cc5ae78a")
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 bool, 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

def setup():
    # The function non_increasing checks if a list L is in non-increasing order
    # It uses zip and iteration, so L just needs to be an iterable of comparable elements
    
    # Test case 1: A non-increasing list
    L = [5, 4, 3, 2, 1]
    
    return L

ARGS = {
    "L": setup()
}
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 bool, 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
run_parallel Ran
ran on a synthesized input
monte-flora/scikit-explain/skexplain/common/multiprocessing_utils.py
code served (permissive licence) · get_code("15e6dafb8ec81551")
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 multiprocessing as mp
import logging
import time

# Set up logging to suppress verbose output during testing
logging.basicConfig(level=logging.WARNING)

def simple_task(x, y=1):
    """Simple test function that takes positional args and keyword args."""
    return x + y

def task_with_string_arg(s):
    """Task that receives a string arg (will be wrapped in tuple)."""
    return len(s)

def task_returning_list(n):
    """Task that returns a list."""
    return list(range(n))

# Create args_iterator: a list of tuples, some strings
args_iter = [
    (1,),
    (2,),
    (3,),
    (4,),
    (5,),
]

# Alternative iterator with string args (will be auto-wrapped)
string_args_iter = [
    "hello",
    "world",
    "test",
]

ARGS = {
    'func': simple_task,
    'args_iterator': args_iter,
    'n_jobs': 1,
    'description': 'Test parallel execution',
    'kwargs': {'y': 10},
    'nprocs_to_use': None,
    'total': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
joblib, tqdm — 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
tqdm_joblib Ran
ran; our contract draft was wrong, not the code
monte-flora/scikit-explain/skexplain/common/multiprocessing_utils.py
code served (permissive licence) · get_code("59e0a7bc515e7b38")
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 _GeneratorContextManager. 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 contextlib
import joblib
from tqdm import tqdm
import torch

torch.manual_seed(0)

class MockTqdmObject:
    """Stand-in for tqdm object that has update() and close() methods."""
    def __init__(self):
        self.total_updates = 0
    
    def update(self, n=1):
        """Mock update method that tracks total updates."""
        self.total_updates += n
    
    def close(self):
        """Mock close method."""
        pass

tqdm_obj = MockTqdmObject()

ARGS = {
    "tqdm_object": tqdm_obj
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
joblib, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type _GeneratorContextManager — a _GeneratorContextManager output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _GeneratorContextManager 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
group_local_values Not yet run
unverified (harvested, no recorded run)
monte-flora/scikit-explain/skexplain/common/contrib_utils.py
code served (permissive licence) · get_code("01a01fe06b44de8b")
How it ran

no invocation recorded.

load_dataframe Not yet run
unverified (harvested, no recorded run)
monte-flora/scikit-explain/skexplain/common/io.py
code served (permissive licence) · get_code("ffcc482545197127")
How it ran

no invocation recorded.

load_pickle Not yet run
unverified (harvested, no recorded run)
monte-flora/scikit-explain/skexplain/common/io.py
code served (permissive licence) · get_code("6329bb9c2aed8495")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 13 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
tqdm_joblib 3 other papers
3 later
2308.16681 (2023-08)
One Model Many Scores: Using Multiverse Analysis to Prevent Fairness Hacking and Evaluate the Influence of Model Design Decisions
2310.06000 (2023-10)
Towards Replication-Robust Analytics Markets
2406.04606 (2024-06)
Helpful or Harmful Data? Fine-tuning-free Shapley Attribution for Explaining Language Model Predictions

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

In the era of "big data", it is becoming more of a challenge to not only build state-of-the-art predictive models, but also gain an understanding of what's really going on in the data. For example, it is often of interest to know which, if any, of the predictors in a fitted model are relatively influential on the predicted outcome. Some modern algorithms---like random forests and gradient boosted decision trees---have a natural way of quantifying the importance or relative influence of each feature. Other algorithms---like naive Bayes classifiers and support vector machines---are not capable of doing so and model-free approaches are generally used to measure each predictor's importance. In this paper, we propose a standardized, model-based approach to measuring predictor importance across the growing spectrum of supervised learning algorithms. Our proposed method is illustrated through both simulated and real data examples. The R code to reproduce all of the figures in this paper is available in the supplementary materials.

For agents

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

get_harvested_code_for_paper("1805.04755")
get_code_for_paper("1805.04755")
have("1805.04755")

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

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

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

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

Connect an agent — have() is free.