mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Added a test for new functions
This commit is contained in:
parent
ab8dd7edd6
commit
74d4fb3ce1
3
dbms/tests/queries/0_stateless/00978_ml_math.reference
Normal file
3
dbms/tests/queries/0_stateless/00978_ml_math.reference
Normal 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
|
4
dbms/tests/queries/0_stateless/00978_ml_math.sql
Normal file
4
dbms/tests/queries/0_stateless/00978_ml_math.sql
Normal 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);
|
Loading…
Reference in New Issue
Block a user