- 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.
- C++程序設計教程
- Spring Cloud Alibaba核心技術與實戰(zhàn)案例
- Python編程自學手冊
- Developing Mobile Web ArcGIS Applications
- C語言程序設計
- 3D少兒游戲編程(原書第2版)
- Unity 5.x By Example
- Ext JS 4 Web Application Development Cookbook
- Mastering Unity 2D Game Development(Second Edition)
- Building Serverless Web Applications
- Qlik Sense? Cookbook
- Java Web從入門到精通(第2版)
- 零基礎C#學習筆記
- Visual C++開發(fā)寶典
- Python 快速入門(第3版)