Stochastic Procedure Interface: module venture.lite.sp

class venture.lite.sp.SP(requestPSP, outputPSP)

Bases: object

constructLatentDB()
constructSPAux()
description(name)
description_rst_format(name)
detachLatents(args, lsr, latentDB)
hasAEKernel()
show(_spaux)
simulateLatents(args, lsr, shouldRestore, latentDB)
venture_type()
class venture.lite.sp.SPAux

Bases: object

asVentureValue()
copy()
static fromVentureValue()
class venture.lite.sp.SPFamilies(families=None)

Bases: object

containsFamily(id)
copy()
getFamily(id)
registerFamily(id, esrParent)
unregisterFamily(id)
class venture.lite.sp.SPType(args_types, return_type, variadic=False, min_req_args=None)

Bases: venture.lite.types.VentureType

An object representing a Venture function type. It knows the types expected for the arguments and the return, and thus knows how to wrap and unwrap individual values or Args objects. This is used in the implementation of TypedPSP and TypedLKernel.

args_match(args)
asPython(vthing)
asVentureValue(thing)
distribution(_base, **_kwargs)
gradient_type()

The type of the cotangent space of the space represented by this type.

name()

A default name for when there is only room for one name.

name_rst_format(name)
names()

One name for each possible arity of this procedure.

unwrap_arg_list(lst)
unwrap_args(args)
unwrap_return(value)
wrap_arg_list(lst)
wrap_return(value)
class venture.lite.sp.VentureSPRecord(sp, spAux=None, spFamilies=None)

Bases: venture.lite.value.VentureValue

asStackDict(_trace=None)
show()
sp
spAux
spFamilies