- 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.
- 從零開始構建企業級RAG系統
- Mastering Concurrency Programming with Java 8
- C++程序設計(第3版)
- Java入門經典(第6版)
- Mastering Objectoriented Python
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- Full-Stack Vue.js 2 and Laravel 5
- Visual C++應用開發
- Scala Reactive Programming
- C/C++程序員面試指南
- Swift 4 Protocol-Oriented Programming(Third Edition)
- 新一代SDN:VMware NSX 網絡原理與實踐
- Practical Game Design with Unity and Playmaker
- jQuery從入門到精通(微課精編版)
- 微服務設計