pymc.model.core.compile_fn#

pymc.model.core.compile_fn(outs, *, inputs=None, mode=None, point_fn=True, model=None, **kwargs)[source]#

Compiles a PyTensor function.

Parameters:
outs

PyTensor variable or iterable of PyTensor variables.

inputs, optional

PyTensor input variables. Required if there is more than one input.

mode

PyTensor compilation mode, default=None.

point_fnbool

Whether to wrap the compiled function in a PointFunc, which takes a Point dictionary with model variable names and values as input.

modelModel, optional

Current model on stack.

Returns:
Compiled PyTensor function