Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tensorflow as tf
- import numpy as np
- import matplotlib.pyplot as plt
- np.random.seed(1)
- lin_x = np.arange(0,100,2)
- y = np.true_divide(lin_x,2)
- n = np.shape(lin_x)
- ##adding noise
- rand = norm.rvs(loc=0,scale=5,size=n)
- x = np.add(lin_x,rand)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement