Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer

一、目标
1、通过本次练习,掌握逻辑回归算法的运用,认识L1正则化与L2正则化的差异
2、对比逻辑回归算法与KNN算法对breast_cancer(二分类)的预测
二、重要代码及结论

(一)导入数据
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
(二)探索数据
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
(三)建立逻辑回归模型与评估
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancerPython算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
(四)KNN算法 vs 逻辑回归算法
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer
Python算法练习(九)// 算法:逻辑回归,数据集:breast_cancer