Skip to content
Snippets Groups Projects
Commit 18e9ba67 authored by rink's avatar rink
Browse files

add option to pass in absolute tolerance

parent bb3bfe5b
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ def true_func(x):
# Y = 2 + 1.5 * X + epsilon # Linear relationship with variance increasing
# Y = 1 + np.exp(X / 4) + epsilon
# Y = 1 + np.exp(X / 4) + np.sin((2*np.pi/5)*X)
return 1 + np.exp(x / 4) + np.sin((2*np.pi/5)*x)
return 1 + np.exp(x / 4) + 0.5*np.sin((2*np.pi/5)*x)
# Generate synthetic dataset
def make_data(num_points=1000):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment