Created
March 12, 2018 15:28
-
-
Save harisankarh/eccefe7572b64a636ff1e37f2b8301ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT *, | |
(CASE | |
WHEN ((x1*w_00 + x2*w_10) + b_0) > 0.0 THEN ((x1*w_00 + x2*w_10) + b_0) | |
ELSE 0.0 | |
END) AS d0, | |
(CASE | |
WHEN ((x1*w_01 + x2*w_11) + b_0) > 0.0 THEN ((x1*w_01 + x2*w_11) + b_1) | |
ELSE 0.0 | |
END) AS d1 | |
FROM {inner subquery} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment