- Python Machine Learning By Example
- Yuxi (Hayden) Liu
- 166字
- 2021-07-02 22:57:19
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.
- Java 9 Concurrency Cookbook(Second Edition)
- Learning Chef
- Vue.js入門與商城開發實戰
- 人人都是網站分析師:從分析師的視角理解網站和解讀數據
- R大數據分析實用指南
- Web Development with MongoDB and Node(Third Edition)
- PySide 6/PyQt 6快速開發與實戰
- 21天學通C++(第5版)
- Learning AWS
- Mastering Adobe Captivate 7
- 零基礎學C++(升級版)
- Redmine Cookbook
- Docker:容器與容器云(第2版)
- SEO教程:搜索引擎優化入門與進階(第3版)
- Java核心編程