tanh function in the Factory

The tanh function returns the hyperbolic tangent of each row of the column.

Parameters

tanh(column)

Parameter

Description

column

The attribute used to evaluate the hyperbolic tangent. Its type must be numeral. The column parameter is mandatory.


Example

The following example uses the Top Hits Spotify dataset.

This example isn’t based on a real scenario, it only explains how to use the function.

Description

Screenshot

In this example, we want to retrieve the hyperbolic tangent of the key attribute.

Add a new attribute, then type the following formula: tanh($"key")