SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1703.04529 · 2017

Task-based End-to-end Model Learning in Stochastic Optimization

arXiv · PDF · Open in the Atlas

Code that ran

12 of 18 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 12 have no contract verdict; 0 failures of our instrument; 6 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1703.04529.json · badge: /api/ran/1703.04529.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
locuslab/e2e-model-learning canonical (classifier label)
classifier basis: census
12 ran · 6 no recorded run
FunctionStatusWhere it lives
GLinearApprox Ran
ran on a synthesized input
locuslab/e2e-model-learning/power_sched/model_classes.py
code served (permissive licence) · get_code("27d2ff1fbbd5243a")
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 method. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 scipy.stats as st
import numpy as np

torch.manual_seed(0)

# Global variables used in the function
USE_GPU = False
DEVICE = 'cpu'

# Set up small tensor arguments
z = torch.tensor([[1.5, 2.0, -0.5, 0.3],
                   [0.8, -1.2, 1.1, 0.2]], dtype=torch.double)

mu = torch.tensor([[0.0, 0.0, 0.0, 0.0],
                    [0.0, 0.0, 0.0, 0.0]], dtype=torch.double)

sig = torch.tensor([[1.0, 1.0, 1.0, 1.0],
                     [1.0, 1.0, 1.0, 1.0]], dtype=torch.double)

gamma_under = 10.0
gamma_over = 5.0

ARGS = {
    'gamma_under': gamma_under,
    'gamma_over': gamma_over
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type method — a method output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a method 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
GQuadraticApprox Ran
ran on a synthesized input
locuslab/e2e-model-learning/power_sched/model_classes.py
code served (permissive licence) · get_code("62d4d092d2df3e2b")
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 method. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 scipy.stats as st
import numpy as np

torch.manual_seed(0)

# Global variables that the function uses
USE_GPU = False
DEVICE = 'cpu'

# Create small test tensors for the forward and backward passes
z = torch.tensor([0.5, -0.3, 1.2, -0.8], dtype=torch.double)
mu = torch.tensor([0.0, 0.1, -0.2, 0.05], dtype=torch.double)
sig = torch.tensor([1.0, 0.9, 1.1, 0.95], dtype=torch.double)

# Parameters for GQuadraticApprox
gamma_under = 0.3
gamma_over = 0.7

ARGS = {
    "gamma_under": gamma_under,
    "gamma_over": gamma_over,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type method — a method output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a method 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
f_obj Ran
ran on a synthesized input
locuslab/e2e-model-learning/newsvendor/mle.py
code served (permissive licence) · get_code("9cc77d3e2766fc3e")
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 numpy as np

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

# Define the arguments for f_obj
z = np.array([1.5, 2.3, 0.8, 1.2])  # demand quantity
d = np.array([2.0, 1.5, 1.0, 2.5])  # some threshold/reference value

params = {
    'c_lin': 5.0,           # linear cost coefficient
    'c_quad': 2.0,          # quadratic cost coefficient
    'b_lin': 3.0,           # backorder linear cost coefficient
    'b_quad': 1.5,          # backorder quadratic cost coefficient
    'h_lin': 2.0,           # holding linear cost coefficient
    'h_quad': 1.0           # holding quadratic cost coefficient
}

ARGS = {
    'z': z,
    'd': d,
    'params': params
}
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 (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
get_cost_helper Ran
ran on a synthesized input
locuslab/e2e-model-learning/newsvendor/batch.py
code served (permissive licence) · get_code("53803e506e9140c0")
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 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 torch.nn as nn

torch.manual_seed(0)

# Create a simple model that takes input and produces predictions
class SimpleModel(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Create test data - batch_size=2, feature_dim=4, output_dim=3
X_test_t = torch.randn(6, 4)  # 6 samples, 4 features
Y_test_t = torch.randn(6, 3)  # 6 samples, 3 output classes

# Create model
model = SimpleModel(input_dim=4, output_dim=3)

# Create loss function
loss_fn = nn.MSELoss()

# Create var_getter_fn that returns batch-sized tensors
def var_getter_fn(batch_sz, X_test_t, Y_test_t):
    batch_data = torch.zeros(batch_sz, X_test_t.size(1))
    batch_targets = torch.zeros(batch_sz, Y_test_t.size(1))
    return batch_data, batch_targets

ARGS = {
    'batch_sz': 2,
    'epoch': 0,
    'model': model,
    'X_test_t': X_test_t,
    'Y_test_t': Y_test_t,
    'loss_fn': loss_fn,
    'var_getter_fn': var_getter_fn
}
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 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
get_means_stds Ran
ran on a synthesized input
locuslab/e2e-model-learning/battery_storage/calc_stats.py
code served (permissive licence) · get_code("f385756186c965ca")
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 pandas as pd
import numpy as np
import torch

# Create a small DataFrame with numeric data
# The function groups by index // 24, so we need at least some rows
# Let's create 48 rows to have 2 groups
data = {
    'col1': np.random.randn(48),
    'col2': np.random.randn(48),
    'col3': np.random.randn(48),
    'col4': np.random.randn(48),
}
df = pd.DataFrame(data)

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, torch — 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
get_means_stds Ran
ran on a synthesized input
locuslab/e2e-model-learning/power_sched/plot.py
code served (permissive licence) · get_code("bb562fc349cfeaa6")
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 3, 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
import numpy as np

# Create a simple DataFrame with a MultiIndex or regular index
# The function groups by index and computes mean and std
index = pd.Index([0, 0, 1, 1], name='group')
data = {
    'col1': [1.0, 2.0, 3.0, 4.0],
    'col2': [5.0, 6.0, 7.0, 8.0],
    'col3': [9.0, 10.0, 11.0, 12.0]
}
df = pd.DataFrame(data, index=index)

ARGS = {
    'df': df
}
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 tuple, ndim 3, 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
linear_softmax_reg Ran
ran on a synthesized input
locuslab/e2e-model-learning/newsvendor/mle.py
code served (permissive licence) · get_code("ffc8733b01d8d53e")
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 (4, 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

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

# Create small test data
m = 2  # number of samples
n = 4  # number of features
num_classes = 3  # number of classes

# X: feature matrix (m x n)
X = np.random.randn(m, n)

# Y: one-hot encoded labels (m x num_classes)
Y = np.zeros((m, num_classes))
Y[0, 0] = 1
Y[1, 2] = 1

# params: dictionary with 'd' key containing class indices/identifiers
params = {
    'd': [0, 1, 2]  # list of class identifiers with length = num_classes
}

ARGS = {
    'X': X,
    'Y': Y,
    'params': params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cvxpy, 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 (4, 3) — shape (4, 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
rmse_loss Ran
ran on a synthesized input
locuslab/e2e-model-learning/battery_storage/nets.py
code served (permissive licence) · get_code("e3d6fc4232ce1b0b")
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 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

torch.manual_seed(0)

# Create small tensors for the function parameters
# mu_pred: predicted means (batch_size=2, features=4)
mu_pred = torch.randn(2, 4)

# Y_actual: actual values (batch_size=2, features=4)
Y_actual = torch.randn(2, 4)

ARGS = {
    "mu_pred": mu_pred,
    "Y_actual": Y_actual,
}
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 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
rmse_loss Ran
ran on a synthesized input
locuslab/e2e-model-learning/power_sched/nets.py
code served (permissive licence) · get_code("2cbb3191ff258a9c")
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)

# Create small tensors for mu_pred and Y_actual
# mu_pred: predicted mean values, shape (batch_size=2, output_dim=4)
mu_pred = torch.randn(2, 4, dtype=torch.float32)

# Y_actual: actual target values, shape (batch_size=2, output_dim=4)
Y_actual = torch.randn(2, 4, dtype=torch.float32)

ARGS = {
    "mu_pred": mu_pred,
    "Y_actual": Y_actual,
}
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
task_loss Ran
ran on a synthesized input
locuslab/e2e-model-learning/battery_storage/nets.py
code served (permissive licence) · get_code("e827a1c3a5034ee0")
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 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 torch.nn as nn

torch.manual_seed(0)

# The function uses:
# - sched: a tensor that gets sliced into three parts [:, :T], [:, T:2*T], [:, 2*T:]
#   so it needs to be (batch_size, 3*T) where T is from params
# - Y_actual: a tensor used in element-wise multiplication with (z_in - z_out)
# - params: a dict with keys 'T', 'lambda', 'B', 'epsilon'

# Set up params
T = 4
params = {
    'T': T,
    'lambda': 0.1,
    'B': 2.0,
    'epsilon': 0.01
}

# Create sched tensor: (batch_size=2, features=3*T=12)
# sched[:, :T] -> z_in (2, 4)
# sched[:, T:2*T] -> z_out (2, 4)
# sched[:, 2*T:] -> x (2, 4)
sched = torch.randn(2, 3 * T)

# Create Y_actual: should match shape of z_in - z_out, which is (2, 4)
Y_actual = torch.randn(2, T)

ARGS = {
    'sched': sched,
    'Y_actual': Y_actual,
    'params': params
}
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 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
task_loss Ran
ran on a synthesized input
locuslab/e2e-model-learning/power_sched/nets.py
code served (permissive licence) · get_code("40436187bb11fdf8")
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 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

torch.manual_seed(0)

# Create small tensors for Y_sched and Y_actual
# batch_size=2, dim=4
Y_sched = torch.randn(2, 4)
Y_actual = torch.randn(2, 4)

# Create params dict with gamma_under and gamma_over
params = {
    'gamma_under': 0.5,
    'gamma_over': 0.3
}

ARGS = {
    'Y_sched': Y_sched,
    'Y_actual': Y_actual,
    'params': params
}
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 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
task_loss_no_mean Ran
ran on a synthesized input
locuslab/e2e-model-learning/power_sched/nets.py
code served (permissive licence) · get_code("f70633b0f31079af")
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 (2, 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)

# Y_sched: scheduled/predicted values - tensor of shape (batch, features)
Y_sched = torch.randn(2, 4)

# Y_actual: actual/observed values - tensor of shape (batch, features)
Y_actual = torch.randn(2, 4)

# params: dictionary with gamma_under and gamma_over penalty coefficients
params = {
    'gamma_under': 0.5,
    'gamma_over': 1.5
}

ARGS = {
    'Y_sched': Y_sched,
    'Y_actual': Y_actual,
    'params': params
}
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 (2, 4) — shape (2, 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
get_model Not yet run
unverified (harvested, no recorded run)
locuslab/e2e-model-learning/newsvendor/mle_net.py
code served (permissive licence) · get_code("bab81f4187a02237")
How it ran

no invocation recorded.

get_vars Not yet run
unverified (harvested, no recorded run)
locuslab/e2e-model-learning/newsvendor/batch.py
code served (permissive licence) · get_code("6e7fdf98291ef451")
How it ran

no invocation recorded.

get_vars_scalar_out Not yet run
unverified (harvested, no recorded run)
locuslab/e2e-model-learning/newsvendor/batch.py
code served (permissive licence) · get_code("d906bc607e0bcd92")
How it ran

no invocation recorded.

load_results Not yet run
unverified (harvested, no recorded run)
locuslab/e2e-model-learning/battery_storage/calc_stats.py
code served (permissive licence) · get_code("9ec346e1329108c5")
How it ran

no invocation recorded.

load_results Not yet run
unverified (harvested, no recorded run)
locuslab/e2e-model-learning/power_sched/plot.py
code served (permissive licence) · get_code("a9861553a6f58c1b")
How it ran

no invocation recorded.

newsvendor_opt Not yet run
unverified (harvested, no recorded run)
locuslab/e2e-model-learning/newsvendor/mle.py
code served (permissive licence) · get_code("11b73d6f22a5ba66")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 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 18 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

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

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

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

Abstract

With the increasing popularity of machine learning techniques, it has become common to see prediction algorithms operating within some larger process. However, the criteria by which we train these algorithms often differ from the ultimate criteria on which we evaluate them. This paper proposes an end-to-end approach for learning probabilistic machine learning models in a manner that directly captures the ultimate task-based objective for which they will be used, within the context of stochastic programming. We present three experimental evaluations of the proposed approach: a classical inventory stock problem, a real-world electrical grid scheduling task, and a real-world energy storage arbitrage task. We show that the proposed approach can outperform both traditional modeling and purely black-box policy optimization approaches in these applications.

For agents

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

get_harvested_code_for_paper("1703.04529")
get_code_for_paper("1703.04529")
have("1703.04529")

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

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

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

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

Connect an agent — have() is free.