Last active
June 20, 2019 20:01
-
-
Save n0obcoder/873a426c69babb25a670dd36149533ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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