General doubt in regression

Sir

Sir Prateek sir in some cases uses split for test data and in some cases, they use np.linespace(-,-,-)

Sir, I m just asking is these both are same or there is any concept when to use what

Thanks and Regards:)

hey @Royal_Yashasvi ,
Firstly i apologise for replying so late ,
for your doubt i would say it depends upon your task.
If you just want to experiment something , then you can np.linespace.
But if you are working on a particular dataset , and you need to test your model in that domain , then splitting the data comes into action. As you know you will be getting your new unseen data similar to that and hence , can predict or examine how your model is going to perform on such data.

I hope this helps.
Thank You :slightly_smiling_face:.