Question: polynomialfeatures(degree=2) what is the order of the polynomial?
Answer: For example, if an input sample is two dimensional and of the form [a, b], the degree-2 polynomial features are [1, a, b, a^2, ab, b^2]. The degree of the polynomial features. Default = 2.