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

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.

主站蜘蛛池模板: 肥东县| 宣汉县| 鄱阳县| 基隆市| 屏南县| 博野县| 公安县| 沾化县| 通化市| 灵寿县| 渑池县| 延川县| 栖霞市| 阿鲁科尔沁旗| 西乌珠穆沁旗| 镇原县| 昭通市| 北宁市| 渭南市| 乌拉特中旗| 三原县| 阿鲁科尔沁旗| 罗甸县| 密云县| 章丘市| 会泽县| 平罗县| 和林格尔县| 滕州市| 宝应县| 西充县| 吴旗县| 革吉县| 焉耆| 恩施市| 乌恰县| 西盟| 岑巩县| 家居| 伽师县| 潢川县|