AI-generated. An AI assistant drafted this page, and no maintainer has reviewed it yet. Please report errors on the issue tracker.
Functions¶
A Function is an immutable callable with a frozen signature, and calling it with a distribution or a batch as an argument lifts the call over that argument.
This page also documents the capabilities a function claims and the errors a call raises.
The operations, which are functions with several implementations, are on Operations, and the workflow scopes that key a call's random draws are on Workflows and reproducibility.
Functions¶
Function(fn, /, *, label=None, input_spec=None, output_spec=None, output_label=None, traceable=None, vectorized=False, differentiable=None, bind=None, **controls)
¶
Bases: TrackedTerm, Annotated
An immutable callable with a frozen signature and optional declarations.
apply binds arguments and validates one raw evaluation, returning the
body's result unchanged. Calling the Function runs the installed workflow
engine, which adds lifting, execution, result identity, and provenance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fn
|
Callable
|
The wrapped Python callable. Its signature is captured at construction. |
required |
label
|
str
|
Optional non-empty display alias. Defaults to the callable name, or |
None
|
input_spec
|
InputSpec, Mapping, RecordSpec, or OutputSpec or None
|
Authoritative inputs matching fixed signature parameters by name. Declared inputs cannot accompany variadic parameters. Defaults and construction bindings must satisfy the input spec. |
None
|
output_spec
|
OutputSpec or TermSpec or None
|
Optional output spec of the result. A bare RecordSpec exposes its
fields as outputs; another bare spec is the single output, named by the
callable's original name ( |
None
|
output_label
|
str or None
|
Optional result alias. Without one, a call on values labels a value
result by the application, as |
None
|
traceable
|
bool or None
|
Whether JAX can trace the callable. |
None
|
vectorized
|
bool
|
Whether the callable evaluates a stack of evaluation points in one
call, returning their outputs stacked on a leading axis, with output
row |
False
|
differentiable
|
NumericSpec or None
|
The differentiability claim: exactly the numeric input values gradients propagate through. None makes no claim. |
None
|
bind
|
Mapping or None
|
Construction-time values of the wrapped callable's arguments, overridden by call arguments, and the only way to bind an argument at construction. An entry keyed by a name the signature lacks goes to its variadic keyword parameter. |
None
|
**controls
|
Any
|
The engine's controls, which
A call inside a derived operation's formula also takes the
|
{}
|
Raises:
| Type | Description |
|---|---|
TypeError
|
For an invalid name, callable, declaration type, or workflow kind, a
|
ValueError
|
For mismatched inputs, invalid defaults or bindings, a nonpositive evaluation or draw count, conversions for a parameter the signature lacks, or invalid output names. |
NotImplementedError
|
If a differentiability claim is given, which Function does not carry yet. |
Warns:
| Type | Description |
|---|---|
FutureWarning
|
For the removed keywords |
Notes
The legacy constructor keywords seed, input_template, and
output_template emit FutureWarning and are ignored.
Use workflow_run(seed=...) for workflow randomness or bind for a
wrapped callable's seed parameter. fn is required; the callable name
supplies an omitted label.
Only the engine's controls are admitted, since a registered method declares
no controls of its own: its budgets are entries of method_options.
spec contains only input/output specs. with_label changes the
function label and callable metadata; explicit output aliases and output
names are preserved. str(f) returns notation, the label followed
by the parameters, as predict(x, y), and the repr keeps the label first.
using returns a shallow copy with revised controls. A Function
stores only the controls set on it, so options reads every other
control's default when it is read.
The engine reads three declarations from the Function it runs (V.1): what
each parameter accepts, the output spec of the result, and the realization. A
Function declares them by its input spec and annotations, its
output_spec, and its body; a subclass realized by routes, as an
operation is, declares them through _roles, _plan_route_inputs, and
_route_candidates.
Source code in probpipe/values/_function_base.py
signature
property
¶
The independently captured Python calling contract.
spec
property
¶
The stored function-kind declaration.
input_spec
property
¶
The authoritative inputs, or None when undeclared.
output_spec
property
¶
The authoritative output interface, or None when undeclared.
output_label
property
¶
The explicit result alias, or the function's name for a derived application.
effective_workflow_kind
property
¶
The orchestration mode a call of this function runs under.
The workflow_kind control decides it, and DEFAULT defers to the
global config.prefect.workflow_kind, read each time the property is
read. When both are DEFAULT, orchestration is OFF. A requested
TASK or FLOW falls back to OFF when Prefect is not
installed. Until the call engine is installed, a call evaluates plainly,
so the mode is OFF.
Warns:
| Type | Description |
|---|---|
UserWarning
|
If |
options
property
¶
The effective engine controls, separate from domain arguments.
A control set at construction or by using keeps its value,
and every other control reports the framework's default as it reads now.
raw
property
¶
The wrapped callable, or the raw evaluator of a private payload.
notation
property
¶
The function's label followed by its parameters, as predict(x, y), which str() returns.
The parameters are the names of signature, in order, joined by
", ". A parameter with a default reads name=value, as
predict(x, scale=1.0), when the default is a number, a string,
None, or an array of no axes, and name=… for any other default.
The notation is rendered each time it is shown, at the current
config.notation.max_depth. No operation reads the notation.
using(**controls)
¶
Return a copy with revised controls, preserving identity and declarations.
A control given as None resets to its framework default, whatever the
constructor or an earlier view set. Raises TypeError for unknown
controls, including construction metadata and seed. Invalid control
values raise the same errors as construction. A call of the copy warns
with UnusedControlWarning for each count set here that nothing the
call runs reads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**controls
|
Any
|
The revised controls, keyed by the control names that the class's
|
{}
|
Returns:
| Type | Description |
|---|---|
Self
|
A shallow copy, which shares the wrapped callable and the declarations. |
Source code in probpipe/values/_function_base.py
check(*args, **kwargs)
¶
Probe a call through the first six steps of the stack, without executing it.
The probe runs the steps a call with the same arguments would run, from
resolving the controls to selecting the route, and a view from
using probes under the controls of its call. It executes
nothing and causes no random event: the body and every conversion stay
unexecuted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args
|
Any
|
The call's positional arguments, bound to the signature as the call binds them. |
()
|
**kwargs
|
Any
|
The call's keyword arguments, bound the same way. |
{}
|
Returns:
| Type | Description |
|---|---|
CallReport
|
The call's report: for each candidate route whether it is feasible, infeasible with a reason, or unresolved with the declarations it still needs; the selected route when selection can be decided; the planned output spec of the result; the checks deferred to return; the lifted parameters; and the planned conversions. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument does not bind to the signature. |
ApplicabilityError
|
If an argument's kind is not one its parameter accepts, an applicability check fails, or the declarations conflict, as the call raises. |
ValueError
|
If an empty sweep lacks a concrete output spec after input dimensions bind. |
ResolutionError
|
If a conversion has no converter, or the |
NotImplementedError
|
Until the installed engine provides the probe. |
Source code in probpipe/values/_function_base.py
apply(*args, **kwargs)
¶
Evaluate one point, validating declarations and returning the raw result.
Python binding errors raise TypeError. Input or output spec
violations raise ValueError, including a returned kind that differs
from the output spec. Dimension bindings are local to this call.
Existing returned objects retain their identity and metadata. A Function
realized by routes admits each argument by its role, with no lifting,
raising ApplicabilityError for a kind its role refuses; runs the
route the engine selects, raising ResolutionError when none
applies; and returns the raw form of the result.
Each workflow-owned draw of the evaluation is its own random event, in
program order, as in a call of the Function. An evaluation that draws
nothing leaves the later draws of its workflow scope unchanged. Inside
replay_run it raises ReplayCompatibilityError.
Source code in probpipe/values/_function_base.py
__call__(*args, **kwargs)
¶
Call the function through the installed engine (V.1).
The arguments bind to the signature as in apply, and a law or a
batch passed where a value is expected lifts the call over it: a law is
broadcast and a batch is swept (V.5). The controls come from the
construction and using, together with those that a
derived route passes down (VI.0), and the call's
keywords bind to the wrapped callable. Swept batches align by level name:
within each matching level, shapes align from the right and size-one
axes broadcast independently of other levels. The sweep carries each
level's resulting broadcast shape.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args
|
Any
|
The positional arguments of the wrapped callable. |
()
|
**kwargs
|
Any
|
The keyword arguments of the wrapped callable. |
{}
|
Returns:
| Type | Description |
|---|---|
TrackedTerm or Any
|
The result at the kind its output spec names, with the call's
provenance. It is labeled by an explicit |
Raises:
| Type | Description |
|---|---|
TypeError
|
If an argument does not bind to the signature. |
ApplicabilityError
|
If an argument's kind is not one its parameter accepts, the declarations conflict, or matching levels have shapes that cannot broadcast. |
ValueError
|
If an empty sweep lacks a concrete output spec after input dimensions bind. |
ResolutionError
|
If no route realizes the call. |
(ResultKindError, ResultSchemaError)
|
If the result violates the completed output spec. |
Warns:
| Type | Description |
|---|---|
UnusedControlWarning
|
Once for each count, |
Source code in probpipe/values/_function_base.py
__str__()
¶
__repr__()
¶
The public class, the label, the parameters, and the declarations set on the function.
An explicit result alias is shown when one was supplied.
Source code in probpipe/values/_function_base.py
function(_func=None, /, *, label=None, input_spec=None, output_spec=None, output_label=None, traceable=None, vectorized=False, differentiable=None, bind=None, **controls)
¶
Decorator to create a Function from a plain function.
Bare usage wraps a function with default Function controls::
@function
def my_func(x, y):
return x + y
Pass keyword arguments to configure ProbPipe controls at definition time::
@function(max_evaluations=100, executor="thread")
def my_func(x, y):
return x + y
Keyword arguments passed later to the workflow call itself belong to the
wrapped function whenever they can bind to that function. Use
workflow.using(...)(...) for one-call ProbPipe controls.
A parameter annotated with a class of raw values, such as pd.Series or
jax.Array, receives the raw form of an argument, or of each element or
draw that a lift passes to it, when that form is an instance of the class.
A function written for pandas therefore runs on a record field that holds
a Series::
@function
def differences(c: pd.Series) -> jax.Array:
return jnp.asarray(c.diff().dropna().to_numpy())
differences(Record({"c": pd.Series([1.0, 2.0, 4.0])}, label="r")["c"])
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
_func
|
Callable or None
|
Function being decorated for bare |
None
|
label
|
str or None
|
The function label, defaulting to the callable's name, or |
None
|
input_spec
|
InputSpec or Mapping[str, TermSpec] or None
|
The authoritative inputs, as |
None
|
output_spec
|
OutputSpec or TermSpec or None
|
The authoritative result declaration, as |
None
|
output_label
|
str or None
|
Optional result alias. Without one, a value result describes the application, and a returned law or kernel takes the function's label. |
None
|
traceable
|
bool or None
|
Whether JAX can trace the function, as |
None
|
vectorized
|
bool
|
Whether the function takes a stack of evaluation points at once, as
|
False
|
differentiable
|
NumericSpec or None
|
The differentiability claim, as |
None
|
bind
|
Mapping or None
|
Construction-time values of the wrapped callable's arguments, which call arguments override. |
None
|
**controls
|
Any
|
The engine's controls, which |
{}
|
Returns:
| Type | Description |
|---|---|
Function or Callable
|
Wrapped Function for bare usage, or a decorator when called with parentheses. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If a keyword is no control, before any callable is wrapped; if
traceable or vectorized is not a bool; or if label is omitted
for a callable that has no |
Source code in probpipe/functions/_function.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | |
FunctionBatch(elements, /, level_names, *, label=None, element=None, axes_per_level=None, provenance=None)
¶
Bases: _ObjectBatch[Callable]
A batch of callables sharing one FunctionSpec.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
elements
|
numpy.ndarray or iterable of callable
|
The callables, as an object array of any shape or a flat iterable. |
required |
level_names
|
str or sequence of str
|
One name per level, outermost first. |
required |
label
|
str
|
The batch's label. Defaults to a list of its first eight members in
row-major order over every batch axis, each as its name and
parameters, followed by |
None
|
element
|
FunctionSpec
|
The spec every element satisfies. Defaults to |
None
|
axes_per_level
|
int or sequence of int
|
How many axes each level holds, outermost first (a single int is one level's count); they must account for every batch axis. Defaults to one axis per level, which requires as many names as there are batch axes. The sizes are read off the elements rather than restated here — they are already fixed by the data, so the only thing left to say is where one level ends and the next begins. |
None
|
provenance
|
Provenance
|
How this batch was produced. |
None
|
Raises:
| Type | Description |
|---|---|
TypeError
|
If element is not a |
ValueError
|
If |
TypeError
|
If level_names is not a str or a sequence of str, or axes_per_level is
not an int or a sequence of ints; a generator, a set, |
ValueError
|
If an axes_per_level count is less than 1, or a level name is empty or
contains |
Notes
A callable has no native stacked form, so the collection is a batch rather
than an array. The spec is callable-generic: a plain lambda, a NumPy
function, and a Function are all admitted, the wrapper being one such
element and not the required type.
This batch stores its elements, and batch[i] is a view of the
stored callable: a Function wrapping it under the label
derived from the position and the batch's input and output specs, or, for a stored
Function, a copy under the derived label that shares its callable. Its
provenance records the batch and the stored term. A callable whose
signature cannot be inspected, as for some builtins, has no Function
view and raises ValueError when indexed. A sub-batch is a view and
takes a derived label as any view does.
Examples:
>>> batch = FunctionBatch(
... [lambda x: x, lambda x: 2 * x],
... "variant",
... label="f",
... )
>>> batch.batch_shape
(2,)
>>> batch[1].apply(3)
6
Source code in probpipe/core/_function_batch.py
Binding arguments¶
Pass an ordinary bound method to Function when a computation uses an object's
state. Use bind= for arguments supplied at construction; call arguments
replace those bindings, and omitted arguments use the callable's defaults.
from probpipe import Function
class Affine:
def __init__(self, offset):
self.offset = offset
def evaluate(self, x, scale=1.0):
return (x + self.offset) * scale
compute = Function(Affine(3.0).evaluate, bind={"scale": 2.0})
assert float(compute(1.0)) == 8.0
assert float(compute(1.0, scale=3.0)) == 12.0
A plain operation runs its coordinating route in the calling thread. An executor named on that operation applies to the evaluation points its route requests, including opaque calls inside stored JAX programs. A plain Function body continues to run as an evaluation point on its selected executor.
Opaque functions inside JAX¶
Wrap code that uses NumPy or an external executable in a Function with
traceable=False and a concrete numeric output_spec, including every output
leaf's shape and dtype. JAX traces the surrounding computation without running
the opaque body. At execution, a host callback sends its evaluation points to
an executor and checks the returned values against the output spec. A missing
shape, a missing dtype, or a host-only return value is refused during tracing.
For example:
import jax
import jax.numpy as jnp
import numpy as np
from probpipe import Function, NumericArraySpec
solver = Function(
lambda x: np.asarray(x, dtype="float32") + np.float32(1),
traceable=False,
output_spec=NumericArraySpec((), dtype="float32"),
)
assert float(jax.jit(lambda x: solver(x))(jnp.float32(2))) == 3
An embedded evaluation cannot draw workflow randomness. Gradients through an opaque function without a derivative are refused, naming that function. A JAX program opened directly by the user uses the default host context; a named executor emits a warning in that case. ProbPipe's stored programs carry the running call's context through a dynamic token.
A failed embedded evaluation stops the compiled program and raises
EvaluationError; a host-side executor refusal retains its own exception type
when the program runs through ProbPipe. A directly opened JAX program also
raises on failure, although JAX wraps the callback's exception.
A declared float64 output requires jax_enable_x64=True when the call opens,
for both ordinary calls and apply. Enable it before calling, or declare a
float32 output. An undeclared output still records the dtype actually stored.
Differentiability and invertibility¶
SupportsDifferentiation
¶
Bases: Protocol
An object that declares which of its values gradients propagate through.
The claim is fixed at construction. For a map the template is a sub-schema of its numeric inputs, and for a distribution a sub-schema of its numeric event schema.
differentiable_template
property
¶
Exactly the values gradients propagate through.
is_differentiable(x, values=None)
¶
Whether gradients propagate through the named values of x.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
Any
|
A map or a distribution. |
required |
values
|
NamedTree or None
|
The values to test, by their paths. None tests every numeric value of x: its numeric inputs for a map, its numeric event values for a distribution. |
None
|
Returns:
| Type | Description |
|---|---|
bool
|
True when every value named in values lies in the differentiable
template of x, or with no values when the template covers every
numeric value of x. False when x does not declare
|
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
For an object that declares the capability, until the template comparison is implemented. |
Source code in probpipe/values/_function_base.py
SupportsInverse
¶
Bases: Protocol
An invertible map, whose forward is the claiming Function's apply.
A class whose instances are invertible only in some configurations also
defines the guard _inverse_guard(), and is_invertible reads the
claim together with it. The guard returns one of:
- a bool: whether the inverse is available;
- None: the answer is unresolved;
- a
Feasibility: the full report.
is_invertible(f)
¶
Whether f claims SupportsInverse and its guard admits the claim.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
f
|
Any
|
The object to test, usually a |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True when f claims the capability and either defines no
|
Source code in probpipe/values/_function_base.py
SupportsLogDetJacobian
¶
Bases: Protocol
A map with a tractable log-determinant of its Jacobian.
Checking a call¶
CallReport(routes=(), selected=None, deferred=(), result=None, lifted=(), conversions=(lambda: MappingProxyType({}))(), methods=(lambda: MappingProxyType({}))(), execution=ExecutionReport())
dataclass
¶
What check reports about a call, without executing it (V.1).
A route's report is a MethodInfo named
by the route, and by route/method for the method a registry route
selects. The repr follows the repr convention (II.4), and in a notebook
the report displays as a table with one row per route.
Attributes:
| Name | Type | Description |
|---|---|---|
routes |
tuple of MethodInfo
|
Each probed route's report, in selection order: feasible, infeasible with a reason, or unresolved with the declarations it needs. |
selected |
MethodInfo or None
|
The selected route's report, or an infeasible report naming no route
when none applies; |
deferred |
tuple of str
|
The checks left to the return. |
result |
OutputSpec or None
|
The planned output spec of the result, or |
lifted |
tuple of str
|
The parameters whose arguments lift or sweep. |
conversions |
Mapping of str to ConversionInfo
|
The planned conversion of each parameter that converts. |
methods |
Mapping of str to tuple of str
|
The methods of each registry the routes delegate to, in its selection
order, keyed by the names of those routes joined by |
execution |
ExecutionReport
|
How the call would run the evaluation points it asks for: one report
per callable, with the executor and the executors it rejected. The
repr shows it only when a callable is opaque or runs on an executor
other than |
feasible
property
¶
Whether a route is selected: False when none applies, None when undecided.
route
property
¶
The selected route's name, or None.
method
property
¶
The registry method the selected route delegates to, or None.
exact
property
¶
The selected implementation's exactness, or None when none is selected.
pending
property
¶
What an undecided selection waits on: the needs of each unresolved route.
description
property
¶
The selected report's description, which names every route tried when none applies.
__repr__()
¶
The fields the report sets, as a call of its constructor (II.4).
Source code in probpipe/functions/_call.py
check also reports how the call will run its evaluation points: one report per callable that a lifted call or a sweep evaluates, with the executor that will run them and the executors it rejected.
ExecutionReport(evaluations=())
dataclass
¶
How a call will run the evaluation points it asks for, as check reports it (V.9).
One call may send one callable to jax and another to a cluster, so
the report holds one EvaluationReport per callable.
Attributes:
| Name | Type | Description |
|---|---|---|
evaluations |
tuple of EvaluationReport
|
One report per callable whose evaluation points the call evaluates, in the order the call asks for them. A plain call on values evaluates its function once, in no set of evaluation points, and reports none. |
EvaluationReport(callable_name, num_evaluation_points, traceable, traceability_source, executor, rejected=(), failure_rule='raise')
dataclass
¶
How a call will run the evaluation points of one callable, as check reports it (V.9).
Attributes:
| Name | Type | Description |
|---|---|---|
callable_name |
str
|
The name of the callable. |
num_evaluation_points |
int or None
|
The number of its evaluation points; |
traceable |
bool
|
Whether JAX can trace the callable for these evaluation points. |
traceability_source |
{'claimed', 'probed'}
|
|
executor |
MethodInfo
|
The executor that will run the evaluation points. It is infeasible,
with the reason, when the executor named for the callable cannot run
them, and the call then raises |
rejected |
tuple of MethodInfo
|
Each executor tried first that cannot run the evaluation points, with its reason. |
failure_rule |
{'raise', 'drop'}
|
What the call does when an evaluation point fails: |
Examples:
check of a call lifted over a law, of a function that claims
traceable=False, reports its 256 draws running one after another::
forward.check(prior).execution.evaluations[0]
# EvaluationReport(callable_name='forward', num_evaluation_points=256,
# traceable=False, traceability_source='claimed',
# executor=MethodInfo(True, method_name='sequential', exact=True),
# rejected=(MethodInfo(False, method_name='jax', ...),),
# failure_rule='raise')
__repr__()
¶
Every field, as a call of the constructor (II.4).
Source code in probpipe/core/_executors.py
ApplicabilityError
¶
Bases: TypeError
The arguments or declarations of a call violate its call contract.
Raised when an argument's kind is not one its parameter accepts, when swept levels do not align, and when the declarations of a call conflict. The message names the parameter, what it accepts, and what arrived.
ResultKindError
¶
Bases: TypeError
A function returned a term of another kind than its output spec names.
This is a defect of the function's return contract, not a failure to admit the caller's arguments.
ResultSchemaError
¶
Bases: ValueError
A function's result is incompatible with its completed output spec.
Raised for incompatible structure, dimensions, dtype, or support, and for a violated declared output interface. This is a defect of the function's return contract, not a failure to admit the caller's arguments.
Counts a call does not use¶
A call warns when its using view sets max_evaluations or num_samples and nothing the call runs reads that count.
pushforward.using(num_samples=10)(x, square) warns, because a call lifted over a distribution evaluates its function max_evaluations times and takes no Monte Carlo draws, and the warning says to set max_evaluations=10 instead.
A count set when a Function is constructed, by a config block, or as the session's value is a default and never warns.
UnusedControlWarning
¶
Bases: UserWarning
A control given to a call through using changed nothing the call did.
A call that succeeds warns once for each count, max_evaluations or
num_samples, that its using view set and that no code running for
the call read. A count set when the Function was constructed, or by a
config block or the session, is a default for every call and never
warns. To make the warning an error::
import warnings
warnings.simplefilter("error", probpipe.UnusedControlWarning)
Failed evaluations¶
A call that evaluates a function many times, such as a call lifted over a distribution, runs every evaluation and keeps the outputs that succeeded.
When some evaluations fail, the call then raises EvaluationError, which names each failed one and is chained to the first failure's exception.
EvaluationError(failures, outputs, *, origin, point_noun='evaluation point')
¶
Bases: RuntimeError
Evaluation points of a call failed.
The call ran every evaluation point and kept the outputs that succeeded, then raised. The error is chained to the first failure's exception when it is available, so the traceback points into the code that raised.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
failures
|
iterable of EvaluationFailure
|
The failed evaluation points. |
required |
outputs
|
iterable
|
Each evaluation point's output, in order, |
required |
origin
|
str
|
The callable or the site, which the message names. |
required |
point_noun
|
str
|
The word for one evaluation point in the message, such as |
'evaluation point'
|
Attributes:
| Name | Type | Description |
|---|---|---|
failures |
tuple of EvaluationFailure
|
Every failed evaluation point, in order. |
outputs |
tuple
|
Each evaluation point's output, in order, |
Examples:
A simulator that fails at one of 200 draws raises::
EvaluationError: evaluation of 'forward' failed at 1 of 200 evaluation points:
draw 17: CalledProcessError: Command '...' returned non-zero exit status 3.