polynomial

  • |

    Polynomial Feature Expansion

    🇺🇸🇰🇷 Three defaults make polynomial expansion cheap and safe: degree two, centring the variables before expanding, and a ridge or lasso penalty on the new columns. Skipping the last two shows up as coefficients flipping sign, not as poor fit. Beyond a few dozen variables, or for repeated bends, splines and kernels replace it.