- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Tarek Amr
- 172字
- 2021-06-18 18:24:32
Getting to know additional linear regressors
Before moving on to linear classifiers, it makes sense to also add the following additional linear regression algorithms to your toolset:
- Elastic-net uses a mixture of L1 and L2 regularization techniques, where l1_ratio controls the mix of the two. This is useful in cases when you want to learn a sparse model where few of the weights are non-zero (as in lasso) while keeping the benefits of ridge regularization.
- Random Sample Consensus(RANSAC) is useful when your data has outliers. It tries to separate the outliers from the inlier samples. Then, it fits the model on the inliers only.
- Least-Angle Regression (LARS) is useful when dealing with high-dimensional data—that is, when there is a significant number of features compared to the number of samples. You may want to try it with the polynomial features example we saw earlier and see how it performs there.
Let's move on to the next section of the book where you will learn to use logistic regression to classify data.
推薦閱讀
- HornetQ Messaging Developer’s Guide
- Interactive Data Visualization with Python
- Learning RabbitMQ
- oreilly精品圖書:軟件開發者路線圖叢書(共8冊)
- Servlet/JSP深入詳解
- JavaScript+Vue+React全程實例
- 手把手教你學C語言
- Mastering Apache Maven 3
- Oracle 18c 必須掌握的新特性:管理與實戰
- PHP+MySQL+Dreamweaver動態網站開發從入門到精通(第3版)
- Building UIs with Wijmo
- Learning WordPress REST API
- Java EE輕量級解決方案:S2SH
- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)
- Python程序設計:基礎與實踐