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

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.

主站蜘蛛池模板: 上饶市| 怀安县| 香格里拉县| 蓝田县| 富蕴县| 礼泉县| 天峨县| 高要市| 沙洋县| 西峡县| 星子县| 苏尼特右旗| 青阳县| 商都县| 绥芬河市| 寻甸| 南召县| 芦溪县| 兴仁县| 云和县| 子长县| 盱眙县| 巧家县| 无为县| 措勤县| 辽宁省| 平阴县| 景洪市| 农安县| 无极县| 会昌县| 宣恩县| 疏勒县| 涿州市| 罗源县| 开封县| 张家界市| 波密县| 攀枝花市| 青海省| 双柏县|