- 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.
- Developing Middleware in Java EE 8
- 數據庫系統原理及MySQL應用教程
- 云原生Spring實戰
- 精通API架構:設計、運維與演進
- 深入理解Java7:核心技術與最佳實踐
- SSM輕量級框架應用實戰
- Gradle for Android
- C語言程序設計教程
- Python Web數據分析可視化:基于Django框架的開發實戰
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(2)
- Python計算機視覺和自然語言處理
- Android編程權威指南(第4版)
- Elastix Unified Communications Server Cookbook
- C語言編程魔法書:基于C11標準
- JSP程序設計與案例教程