Skip to content

Instantly share code, notes, and snippets.

@tachim
Created February 16, 2016 03:03
Show Gist options
  • Save tachim/4763a6102cf0d7696d42 to your computer and use it in GitHub Desktop.
Save tachim/4763a6102cf0d7696d42 to your computer and use it in GitHub Desktop.
M = 1500
N = 5000
RHO = 1
LAMBDA = 20
w = np.zeros((N,))
for i in xrange(N):
if np.random.random() < 0.1:
w[i] = np.random.random() * 10
A = np.random.standard_normal((M, N))
b = A.dot(w)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment