Created
July 16, 2019 19:45
-
-
Save curiousily/d5b11dacfc981c98ec774ad9eca2f3cb to your computer and use it in GitHub Desktop.
This file contains 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
const sigmoidPerceptron = ({ x, w, bias }) => { | |
const product = tf.dot(x, w).dataSync()[0]; | |
return tf.sigmoid(product + bias).dataSync()[0]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment