Hi,
Please i'd like to use prediction techniques in sklearn
I have this file:

x | y 

1| 1
2| 4
4|16

--> prediction techniques must give me this model y=x*x

using this model i can predict the value y of x=3
This is a sample example. In my experiment i use a file with 1000 lines.
Please, how can transform these lines on codes ?



from sklearn.preprocessing import PolynomialFeatures 
from sklearn import linear_model  
X = [[1, 2, 4], [1, 4, 16]]  
poly = PolynomialFeatures(degree=2) 
X_ = poly.fit_transform(X)  

Thank you so much for help.
Kind regards.

Sorry, I don't fully understand your question.

This is a Python programming question?

Yes, using sklearn library (like tensorflow).

I've not had a change to user tensorflow on a project yet.

Did you look at code samples from project on GIT, like this one:

GitHub - karthikmswamy/TFTutorials: Contains code for understanding TensorFlow workflow and basics