ContContractRV.__init__#

ContContractRV.__init__(name=None, ndim_supp=None, ndims_params=None, dtype=None, inplace=None)#

Create a random variable Op.

Parameters:
name: str

The Op’s display name.

ndim_supp: int

Total number of dimensions for a single draw of the random variable (e.g. a multivariate normal draw is 1D, so ndim_supp = 1).

ndims_params: list of int

Number of dimensions for each distribution parameter when the parameters only specify a single drawn of the random variable (e.g. a multivariate normal’s mean is 1D and covariance is 2D, so ndims_params = [1, 2]).

dtype: str (optional)

The dtype of the sampled output. If the value "floatX" is given, then dtype is set to pytensor.config.floatX. If None (the default), the dtype keyword must be set when RandomVariable.make_node is called.

inplace: boolean (optional)

Determine whether or not the underlying rng state is updated in-place or not (i.e. copied).