Housing Prices Assignment

Hello!

My code worked perfectly as expected when I provided the number of bedrooms as my x and the pricing as my labels. However, the model did shockingly the complete opposite when I reserved my training data.

The loss shoots up to infinity until it reaches ‘nan’ (Not A Number). Can someone please explain why this is happening? I’m just curious to know why the model’s performance is so drastically inverted.

Thanks!
Shreyas

Hey,
Can you click on my name and send the notebook you are using so that i can check it
Please send the notebook for both the cases you mentioned and please send it in pdf form
Thanks and Regards,
Mayank Ghogale