Please give any idea for generating the data

I want to practice locally weighted regression but i am not able to generate data.

Hey @Deepanshu_garg,

You can generate a dummy dataset like this:

x = np.linspace(0, 100, 100)
e = np.random.randn(100)
y = x**3 + 2*x**2 + x + 5 + e

Then you can use this x and y pair for training and testing your algorithm.
Happy Learning :slight_smile:
Thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.