Created
January 30, 2022 12:00
-
-
Save sunilkumardash9/54ef25cb7111c5e824a48595e53218a8 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
def predict(self,X): | |
z = dot(self.initialize(X)[1],self.weights) | |
lis = [] | |
for i in self.sigmoid(z): | |
if i>0.5: | |
lis.append(1) | |
else: | |
lis.append(0) | |
return lis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment