tensorflow.math module provides support for many basic mathematical operations. The
tf.atanh () [alias
tf.math.atanh ] function provides support for the inverse hyperbolic tangent function in Tensorflow ... Its domain is in the range [-1, 1] and it returns nan for any entry outside this range. Input type — tensor, and if the input contains more than one element, the elementwise inverse hyperbolic tangent is calculated.
Syntax : tf.atanh (x, name = None) or tf.math. atanh (x, name = None)
x : A tensor of any of the following types: float16, float32, float64, complex64, or complex128.
name (optional): The name for the operation.
Return type : A tensor with the same type as that of x.
Code # 1:
Input type: Tensor ("Const_3: 0", shape = (6,), dtype = f loat32) Input: [1. -0.5 -1. 2.4 0. -6.5] Return type: Tensor ("atanh_1: 0", shape = (6,), dtype = float32) Output: [inf -0.54930615 -inf nan 0. nan]
Code # 2: Rendering
Input: [-1. -0.85714286 -0.71428571 -0.57142857 -0.42857143 -0.28571429 -0.14285714 0. 0.14285714 0.28571429 0.42857143 0.57142857 0.71428571 0.85714286 1.] Output: [-inf -1.28247468 -0.89587973 -0.64964149 -0.45814537 -0.29389333 -0.14384104 0. 0.14384104 0.29389333 0.45814537 0.64964149 0.89587973 1.28247468 inf]
Learn how data literacy is changing the world and giving you a better understanding of life's biggest problems in this "Important and Comprehensive" Guide to Statistical Thinking (New York). The bi...
It would be easy for me to develop native apps using Java, C++ or Objective-C and I am also able to learn Kotlin, Dart or Swift, but things are much easier when you just use Python. I have done a Djan...
A recipe for having fun and getting things done with the Raspberry Pi ...
This book serves as a practical guide on how to utilize big data to store, process, and analyze structured data, focusing on three of the most popular Apache projects in the Hadoop ecosystem: Apache S...