Skip to content

Instantly share code, notes, and snippets.

@sunilkumardash9
Created January 30, 2022 12:06
Show Gist options
  • Save sunilkumardash9/18419e3a6f43163d95ccd4281f2b58b3 to your computer and use it in GitHub Desktop.
Save sunilkumardash9/18419e3a6f43163d95ccd4281f2b58b3 to your computer and use it in GitHub Desktop.
def sigmoid(self,X,weights):
z = np.dot(X,weights)
sig = 1/(1+np.e**(-z))
return sig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment