tf.contrib.distributions.Laplace.__init__(loc, scale, validate_args=False, allow_nan_stats=True, name='Laplace')
Construct Laplace distribution with parameters loc and scale.
The parameters loc and scale must be shaped in a way that supports broadcasting (e.g., loc / scale is a valid operation).
Args:
-
loc: Floating point tensor which characterizes the location (center) of the distribution. -
scale: Positive floating point tensor which characterizes the spread of the distribution. -
validate_args:Boolean, defaultFalse. Whether to validate input with asserts. Ifvalidate_argsisFalse, and the inputs are invalid, correct behavior is not guaranteed. -
allow_nan_stats:Boolean, defaultTrue. IfFalse, raise an exception if a statistic (e.g. mean/mode/etc...) is undefined for any batch member. IfTrue, batch members with valid parameters leading to undefined statistics will return NaN for this statistic. -
name: The name to give Ops created by the initializer.
Raises:
-
TypeError: iflocandscaleare of different dtype.
Please login to continue.