Created
May 23, 2020 03:10
-
-
Save cedricconol/73cccbb570e374f2b7547dd4d8e8735e to your computer and use it in GitHub Desktop.
Linear regression TF2 predict
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
def predict(self, x): | |
return tf.reduce_sum(self.m * x, 1) + self.b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment