ClickHouse/dbms/tests/queries/0_stateless/00978_ml_math.sql
2019-08-02 22:00:22 +03:00

5 lines
223 B
SQL

SELECT
round(sigmoid(x), 5), round(sigmoid(toFloat32(x)), 5), round(sigmoid(toFloat64(x)), 5),
round(tanh(x), 5), round(TANH(toFloat32(x)), 5), round(TANh(toFloat64(x)), 5)
FROM (SELECT arrayJoin([-1, 0, 1]) AS x);