Tag Info

Is this a valid implementation of second-order regression? No, but it is not far off. To perform a full second-order regression, you will need all terms for $x_{i,j}x_{i,k}$ where the first index is the example and the second index the feature. This includes every combination of two input variables. In your element-wise squaring you only produce terms \$x_{i,...