I have a feature set
[x1,x2....xm]
Now I want to create a set of polynomial functions. This means that if the degree is two, then I have a set of functions
[x1.... xm,x1^2,x2^2...xm^2, x1x2, x1x3....x1,xm......xm-1x1....xm-1xm]
Thus, it only contains members of order 2. the same if the order is three ... then you will also have cubic terms.
How to do it?
Edit 1: I am working on a machine learning project where I have about 7 functions ... and non-linear regression on these linear functions gives a good result ... Therefore, I thought that getting more numbers in I could match these functions with more high size. Thus, one way is to consider the polynomial order of the vector function ... Also generating x1 * x1 is easy .. :) but getting the rest of the combinations is a bit difficult.
Can combinations give me x1x2x3 result if order 3?
source share