Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bob7783 committed Jan 23, 2019
1 parent 0590b9e commit 00427e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linear_regression_class/l1_regularization.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# true weights - only the first 3 dimensions of X affect Y
true_w = np.array([1, 0.5, -0.5] + [0]*(D - 3))

# generate Y - add noise with variance 0.5
# generate Y - add noise
Y = X.dot(true_w) + np.random.randn(N)*0.5

# perform gradient descent to find w
Expand Down

0 comments on commit 00427e0

Please sign in to comment.