Added a test for new functions

This commit is contained in:
Alexey Milovidov 2019-08-01 03:43:50 +03:00
parent ab8dd7edd6
commit 74d4fb3ce1
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
0.268941 0.268941 0.268941 -0.761595 -0.761595 -0.761595
0.5 0.5 0.5 0 0 0
0.731059 0.731059 0.731059 0.761595 0.761595 0.761595

View File

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