Skip to content

Commit

Permalink
use exp for sig
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxEmanuel committed Nov 4, 2023
1 parent ffcad4f commit 0717e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iris/iris_sql92_psql_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ with recursive w (iter,id,i,j,v) as (
with w_now as (
SELECT * from w
), a_xh(i,j,v) as (
SELECT m.i, n.j, sig(SUM (m.v*n.v)) --1/(1+exp(-SUM (m.v*n.v)))
SELECT m.i, n.j, 1/(1+exp(-SUM (m.v*n.v)))
FROM img AS m INNER JOIN w_now AS n ON m.j=n.i
WHERE m.i < $limit and n.id=0 and n.iter=(select max(iter) from w_now) -- w_xh
GROUP BY m.i, n.j
), a_ho(i,j,v) as (
SELECT m.i, n.j, sig(SUM (m.v*n.v)) --1/(1+exp(-SUM (m.v*n.v))) --sig(SUM (m.v*n.v))
SELECT m.i, n.j, 1/(1+exp(-SUM (m.v*n.v))) --sig(SUM (m.v*n.v))
FROM a_xh AS m INNER JOIN w_now AS n ON m.j=n.i
WHERE n.id=1 and n.iter=(select max(iter) from w_now) -- w_ho
GROUP BY m.i, n.j
Expand Down

0 comments on commit 0717e0f

Please sign in to comment.