Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created September 24, 2019 20:36
Show Gist options
  • Select an option

  • Save aballah-chamakh/801095e0cb7e58d1e2c3dd63b049ee54 to your computer and use it in GitHub Desktop.

Select an option

Save aballah-chamakh/801095e0cb7e58d1e2c3dd63b049ee54 to your computer and use it in GitHub Desktop.
def predict(x,w1,w2,w3,b1,b2,b3) :
l1 = sigmoid(np.dot(x,w1) + b1)
l2 = sigmoid(np.dot(l1,w2) + b2)
l3 = sigmoid(np.dot(l2,w3) + b3)
print(l3.round(decimals=2))
test = x[0]
predict(test,*params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment