I am working on a linear regression task and I only know the concept of simple linear regression where we give an 'x' value and it predicts the 'y' value.
I have generated semi-random numbers between 100 to 100000 using a specific algorithm and save the result in a CSV column.
Now I want to use this column and train a Linear Regressor that it learns the sequence between these numbers and then to predict a number on the basis of the last number which I will give to it.
Or I can Treat this problem as a sequence generation problem using LSTM. Will LSTM is a good approach for this, in which I will feed this 1-D dataset of numbers and on the basis of this LSTM will generate more numbers?
I have only one column which is x column and doesn't have a y column. I searched "How to use linear regression on 1-D data" but found nothing.
Is there any way to train a Linear Regression on 1-D data to predict a number? I am using Python language for this task.
My CSV file looks like this: