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

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.

主站蜘蛛池模板: 葫芦岛市| 上高县| 石泉县| 乳山市| 崇礼县| 泽库县| 陇南市| 永仁县| 通化县| 馆陶县| 瑞丽市| 定安县| 武清区| 城市| 鄯善县| 长顺县| 广丰县| 明水县| 宣威市| 大港区| 六安市| 石渠县| 洛宁县| 皮山县| 台前县| 汉中市| 县级市| 博湖县| 临沧市| 明溪县| 湖北省| 兰州市| 青岛市| 麦盖提县| 阿拉善左旗| 昭觉县| 广汉市| 威信县| 桐柏县| 浦城县| 滁州市|