mxfusion.components.distributions.univariate

Members

class mxfusion.components.distributions.univariate.UnivariateDistribution(inputs, input_names, output_names, outputs=None, rand_gen=None, dtype=None, ctx=None)

Bases: mxfusion.components.distributions.distribution.Distribution

The base class of a univariate probability distribution. The univariate distribution can be defined over a scalar random variable or an array of random variables. In case of an array of random variables, the input variables are broadcasted to the shape of the output random variable (array).

Parameters:inputs – the input variables that parameterize the probability

distribution. :type inputs: {name: Variable} :param outputs: the random variables drawn from the distribution. :type outputs: {name: Variable} :param rand_gen: the random generator (default: MXNetRandomGenerator). :type rand_gen: RandomGenerator :param dtype: the data type for float point numbers. :type dtype: numpy.float32 or numpy.float64 :param ctx: the mxnet context (default: None/current context). :type ctx: None or mxnet.cpu or mxnet.gpu