[go: nahoru, domu]

Skip to content

Commit

Permalink
fix sigmoid definition in tutorial, closes #346
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjj committed Jan 30, 2018
1 parent 02ec605 commit 25da698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import autograd.numpy as np
from autograd import grad

def sigmoid(x):
return 0.5*(np.tanh(x) + 1)
return 0.5 * (np.tanh(x / 2.) + 1)

def logistic_predictions(weights, inputs):
# Outputs probability of a label being true according to logistic model.
Expand Down

0 comments on commit 25da698

Please sign in to comment.