BetaGeoNBDRV#
- class pymc_marketing.clv.distributions.BetaGeoNBDRV(name=None, ndim_supp=None, ndims_params=None, dtype=None, inplace=None, signature=None)[source]#
Methods
BetaGeoNBDRV.L_op
(inputs, outputs, output_grads)Construct a graph for the L-operator.
BetaGeoNBDRV.R_op
(inputs, eval_points)Construct a graph for the R-operator.
BetaGeoNBDRV.__init__
([name, ndim_supp, ...])Create a random variable
Op
.BetaGeoNBDRV.add_tag_trace
([user_line])Add tag.trace to a node or variable.
BetaGeoNBDRV.batch_ndim
(node)BetaGeoNBDRV.dist_params
(node)Return the node inpust corresponding to dist params
BetaGeoNBDRV.do_constant_folding
(fgraph, node)Determine whether or not constant folding should be performed for the given node.
BetaGeoNBDRV.grad
(inputs, outputs)Construct a graph for the gradient with respect to each input variable.
BetaGeoNBDRV.infer_shape
(fgraph, node, ...)Try to return a version of self that tries to inplace in as many as
allowed_inplace_inputs
.BetaGeoNBDRV.make_node
(rng, size, *dist_params)Create a random variable node.
BetaGeoNBDRV.make_py_thunk
(node, ...[, debug])Make a Python thunk.
BetaGeoNBDRV.make_thunk
(node, storage_map, ...)Create a thunk.
BetaGeoNBDRV.perform
(node, inputs, outputs)Calculate the function on the inputs and put the variables in the output storage.
BetaGeoNBDRV.prepare_node
(node, storage_map, ...)Make any special modifications that the
Op
needs before doingOp.make_thunk()
.BetaGeoNBDRV.rng_fn
(rng, a, b, r, alpha, T, size)Sample a numeric random variate.
BetaGeoNBDRV.rng_param
(node)Return the node input corresponding to the rng
BetaGeoNBDRV.size_param
(node)Return the node input corresponding to the size
Attributes
default_output
An
int
that specifies which outputOp.__call__()
should return.destroy_map
A
dict
that maps output indices to the input indices upon which they operate in-place.dtype
itypes
name
otypes
signature
view_map
A
dict
that maps output indices to the input indices of which they are a view.