官术网_书友最值得收藏!

Polynomial features

If we have two features a and b, we can suspect that there is a polynomial relation, such as a2 + ab + b2. We can consider each term in the sum to be a feature, in this example we have three features. The product ab in the middle is called an interaction. An interaction doesn't have to be a product, although this is the most common choice, it can also be a sum, a difference or a ratio. If we are using a ratio to avoid dividing by zero, we should add a small constant to the divisor and dividend. The number of features and the order of the polynomial for a polynomial relation are not limited. However, if we follow Occam's razor we should avoid higher order polynomials and interactions of many features. In practice, complex polynomial relations tend to be more difficult to compute and not add much value, but if you really need better results they may be worth considering.

主站蜘蛛池模板: 惠安县| 泰宁县| 婺源县| 甘泉县| 拉萨市| 天全县| 阿鲁科尔沁旗| 砀山县| 天水市| 育儿| 新津县| 长治市| 喜德县| 锡林浩特市| 汾阳市| 麻江县| 东阳市| 遵义县| 托里县| 沂水县| 稷山县| 封开县| 玉屏| 朝阳县| 方正县| 车致| 肥乡县| 遂溪县| 全州县| 呈贡县| 乐昌市| 宜君县| 罗甸县| 开江县| 沂源县| 洪雅县| 凤山县| 招远市| 偏关县| 福泉市| 顺昌县|