- 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.
推薦閱讀
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- Web交互界面設(shè)計(jì)與制作(微課版)
- aelf區(qū)塊鏈應(yīng)用架構(gòu)指南
- Quarkus實(shí)踐指南:構(gòu)建新一代的Kubernetes原生Java微服務(wù)
- QGIS:Becoming a GIS Power User
- Java編程技術(shù)與項(xiàng)目實(shí)戰(zhàn)(第2版)
- Oracle從入門(mén)到精通(第5版)
- Python Web數(shù)據(jù)分析可視化:基于Django框架的開(kāi)發(fā)實(shí)戰(zhàn)
- PySpark Cookbook
- Advanced Express Web Application Development
- 零基礎(chǔ)學(xué)Kotlin之Android項(xiàng)目開(kāi)發(fā)實(shí)戰(zhàn)
- 從零開(kāi)始學(xué)Android開(kāi)發(fā)
- Qt 4開(kāi)發(fā)實(shí)踐
- 實(shí)驗(yàn)編程:PsychoPy從入門(mén)到精通
- Web開(kāi)發(fā)新體驗(yàn)