tf.lbeta

tf.lbeta

tf.lbeta

lbeta(
    x,
    name='lbeta'
)

Defined in tensorflow/python/ops/special_math_ops.py.

See the guide: Math > Basic Math Functions

Computes \(ln(|Beta(x)|)\), reducing along the last dimension.

Given one-dimensional z = [z_0,...,z_{K-1}], we define

$$Beta(z) = \prod_j Gamma(z_j) / Gamma(\sum_j z_j)$$

And for n + 1 dimensional x with shape [N1, ..., Nn, K], we define

$$lbeta(x)[i1, ..., in] = Log(|Beta(x[i1, ..., in, :])|)$$.

In other words, the last dimension is treated as the z vector.

Note that if z = [u, v], then \(Beta(z) = int_0^1 t^{u-1} (1 - t)^{v-1} dt\), which defines the traditional bivariate beta function.

If the last dimension is empty, we follow the convention that the sum over the empty set is zero, and the product is one.

Args:

  • x: A rank n + 1 Tensor, n >= 0 with type float, or double.
  • name: A name for the operation (optional).

Returns:

The logarithm of \(|Beta(x)|\) reducing along the last dimension.

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/lbeta

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部