Skip to content

Instantly share code, notes, and snippets.

@n0obcoder
Last active June 20, 2019 20:01
Show Gist options
  • Save n0obcoder/873a426c69babb25a670dd36149533ff to your computer and use it in GitHub Desktop.
Save n0obcoder/873a426c69babb25a670dd36149533ff to your computer and use it in GitHub Desktop.
def gen_data(data_points,loc):
x_center = loc[0]
y_center = loc[1]
x = np.random.normal(size= data_points, loc= x_center)*100
y = np.random.normal(size= data_points, loc= y_center)*100
data= np.vstack((x,y))
data = data.astype(np.int32)
x,y = data
return x, y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment