I am trying to generate a dataset which involves 1 feature variable(X
) and 1 target variable(y
).
The feature variable represents values on the X-axis on the graph and target variable represents values on Y-axis.
Datatype of X
: integer
Datatype of y
: floating point
I have N
such graphs for same values of X
, but a slight variation in y
values.
One of the graph is as follows:
I want to fit the data into a regression.
Now, my question is how to generate the dataset for this use case. Should I include values from all graphs into a single dataset? But, in this case, for every unique value of X
, I will have N
rows with same value of X
and a different value of y
?
I am doubtful about this approach.
Any help is greatly appreciated!