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

Polynomial features

If we have two features, a and b, we can suspect that there's 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 choiceit can also be a sum, a difference, or a ratio. If we're 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 aren't 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 tend to overfit, but if you really need better results, they may be worth considering.

主站蜘蛛池模板: 安远县| 丰台区| 汨罗市| 台东县| 来凤县| 科技| 永吉县| 临朐县| 八宿县| 双柏县| 内乡县| 襄城县| 江津市| 齐河县| 阿鲁科尔沁旗| 海原县| 游戏| 增城市| 甘肃省| 黄梅县| 福清市| 石门县| 信阳市| 榆林市| 鄂伦春自治旗| 巨鹿县| 南平市| 永福县| 崇义县| 义乌市| 哈密市| 天柱县| 澳门| 嘉禾县| 潼关县| 凤翔县| 梓潼县| 大庆市| 泾阳县| 永城市| 论坛|