当前位置:网站首页>机器学习(公式推导与代码实现)--sklearn机器学习库
机器学习(公式推导与代码实现)--sklearn机器学习库
2022-08-05 00:07:00 【阿升1990】
一.scikit-learn概述
1.sklearn模型
sklearn全称是scikit-learn,它是一个基于Python的机器学习类库,主要建立在NumPy、Pandas、SciPy和Matplotlib等类库之上,基本上覆盖了常见了分类、回归、聚类、降维、模型选择和预处理模块。
2.sklearn源码
下图是sklearn在GitHub上的源代码,编程语言主要包括:91.4%的Python,6.5%的Cython,1.3%的C++和0.8%的Other。如下所示:
二.模型选择和预处理
1.模型选择
解析:网格搜索,交叉验证
2.预处理
解析:评估指标,数据预处理
三.有监督学习模型
可以将有监督模型分为生成式模型和判别式模型,常见的生成式模型包括朴素贝叶斯、HMM和隐含狄利克雷分配(LDA),其它的基本都是判别式模型。
1.线性模型
解析:线性回归,对数几率回归,LASSO回归,Ridge回归,线性判别分析(LDA)
2.近邻
3.决策树 解析:ID3,C4.5,CART
4.神经网络
解析:感知机,神经网络
5.支持向量机
解析:线性可分,近似线性可分,线性不可分
6.集成模型
(1)Boosting
解析:AdaBoost,GBDT,XGBoost,LightGBM,CatBoost
(2)Bagging
解析:随机森林
四.无监督学习模型
1.聚类
解析:均值聚类,层次聚类,谱聚类
2.降维
解析:主成分分析(PCA),奇异值分解(SVD)
五.概率模型
1.最大信息熵模型
2.贝叶斯概率模型
解析:朴素贝叶斯,贝叶斯网络
3.期望最大化(EM)算法
4.概率图模型
解析:隐马尔科夫模型(HMM),条件随机场(CRF)
5.马尔可夫链蒙特卡洛(MCMC)
参考文献:
[1]scikit-learn:https://scikit-learn.org/stable/
[2]scikit-learn(sklearn)官方文档中文版:https://sklearn.apachecn.org/#/?id=scikit-learn-sklearn-官方文档中文版
[3]scikit-learn安装:https://scikit-learn.org/stable/install.html
[4]scikit-learn用户指南:https://scikit-learn.org/stable/user_guide.html
[5]scikit-learn API参考:https://scikit-learn.org/stable/modules/classes.html
[6]scikit-learn例子:https://scikit-learn.org/stable/auto_examples/index.html
[7]scikit-learn博客:https://blog.scikit-learn.org/
[8]scikit-learn教程:https://scikit-learn.org/stable/tutorial/index.html
[9]scikit-learn FAQ:https://scikit-learn.org/stable/faq.html
[10]scikit-learn GitHub:https://github.com/scikit-learn/scikit-learn
[11]scikit-learn不同版本文档:https://scikit-learn.org/dev/versions.html
[12]scikit-learn wiki:https://github.com/scikit-learn/scikit-learn/wiki
[13]scikit-learn版本更新日志:https://scikit-learn.org/stable/whats_new/v1.1.html
[14]scikit-learn开发指南:https://scikit-learn.org/dev/developers/index.html
[15]scikit-learn相关类库:https://scikit-learn.org/stable/related_projects.html
[16]Hugging Face:https://huggingface.co/
[17]《机器学习:公式推导与代码实现》
本文由 mdnice 多平台发布
边栏推荐
- Privacy Computing Overview
- 4 - "PyTorch Deep Learning Practice" - Backpropagation
- 测试经理要不要做测试执行?
- What is next-generation modeling (with learning materials)
- 怎样进行在不改变主线程执行的时候,进行日志的记录
- "Relish Podcast" #397 The factory manager is here: How to use technology to empower the law?
- 线程三连鞭之“线程的状态”
- First, the basic concept of reptiles
- 资深游戏建模师告知新手,游戏场景建模师必备软件有哪些?
- OpenCV:10特征检测
猜你喜欢
uniapp动态实现滑动导航效果demo(整理)
【LeetCode】双指针题解汇总
How to burn the KT148A voice chip into the chip through the serial port and the tools on the computer
大师教你3D实时角色制作流程,游戏建模流程分享
如何写好测试用例
【LeetCode】图解 904. 水果成篮
Ab3d.PowerToys and Ab3d.DXEngine Crack
NebulaGraph v3.2.0 Release Note,对查询最短路径的性能等多处优化
First, the basic concept of reptiles
【七夕快乐篇】Nacos是如何实现服务注册功能的?
随机推荐
Day118.尚医通:订单列表、详情、支付
性能测试如何准备测试数据
uniapp 分享功能-分享给朋友群聊朋友圈效果(整理)
The role of the annotation @ EnableAutoConfiguration and how to use
Ab3d.PowerToys and Ab3d.DXEngine Crack
2022 Niu Ke Summer Multi-School Training Camp 5 (BCDFGHK)
对写作的一些感悟
ansible学习笔记分享-含剧本示例
美团二面:Redis与MySQL双写一致性如何保证?
[Cloud Native--Kubernetes] Pod Controller
Security software Avast and Symantec NortonLifeLock merge with UK approval, market value soars 43%
Bidding Announcement | Operation and Maintenance Project of Haina Baichuang Official Account
测试经理要不要做测试执行?
Basic web in PLSQL
Getting started with 3D modeling for games, what modeling software can I choose?
招标公告 | 海纳百创公众号运维项目
Nuclei (2) Advanced - In-depth understanding of workflows, Matchers and Extractors
The applicable scenarios and common product types of the KT148A electronic voice chip ic solution
【云原生--Kubernetes】调度约束
jenkins send mail system configuration