Skip to content

Instantly share code, notes, and snippets.

@b0noI
Last active October 26, 2021 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b0noI/f2a353e8d3fc788bac69c77f4aa298ec to your computer and use it in GitHub Desktop.
Save b0noI/f2a353e8d3fc788bac69c77f4aa298ec to your computer and use it in GitHub Desktop.
import numpy as np
def f(x):
return x * 2 + 1
rng = np.random.default_rng(2021)
X = rng.random(1000)
Y = [f(x) for x in X]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment