<div dir="ltr">
Hi,<br>
Please i'd like to use prediction techniques in tenserflow.<br>
I have this file:<br>
<br>
<br>
x | y <br>
<br>
1| 1<br>
2| 4<br>
4|16<br>
<br>
<br>
--> prediction techniques must give me this model y=x*x<br>
<br>
<br>
using this model i can predict the value y of x=3<br>
This is a sample example. In my experiment i use a file with 1000 lines.<br>
Please, how can transform these lines on codes ?<br>
<br>
<br>
<div class="gmail-neo-bbcode-code-full=wrapper" style="margin-top:10px;overflow:auto">
<div class="gmail-smallfont" style="margin-bottom:5px;margin-left:3px">Code<span class="gmail-neo-bbcode-code-flag"></span>:</div>

<pre class="gmail-neo-bbcode-code-wrapper"> 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)</pre><br>
</div>


Thank you so much for help.<br>
Kind regards.

<br></div>