TensorFlow.js Special Math


TensorFlow.js Special Math implements all the special math functions from TensorFlow, those are the Gamma, Beta, Bessel, and Error functions, as well as all the variations that TensorFlow provides.

These functions are essential in properbility distributions and for solving partial differential equations, and may other advanced mathmatical fields.

All the functions are:

Example

const x = tf.tensor1d([1, 2, 3, 4]);

const gamma = (tensor) => tfspecial.lgamma(tensor).exp();
const gammadx = tf.grad(gamma);
gammadx(x).print();