#!/usr/bin/python
# -* - coding: UTF-8 -* -
#!python
#coding:utf-8
from sklearn.preprocessing import PolynomialFeatures
import numpy as np

X = np.arange(20).reshape(2, 10)
poly = PolynomialFeatures(degree=2)
res = poly.fit_transform(X)
print res


0495d7d550fc2f26ef08d7b1b944e40a049e7945
#!/usr/bin/python
# -* - coding: UTF-8 -* -
#!python
#coding:utf-8
from sklearn.preprocessing import PolynomialFeatures
import numpy as np

X = np.arange(20).reshape(2, 10)
poly = PolynomialFeatures(degree=2)
res = poly.fit_transform(X)
print res

