当前位置:网站首页>ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
2022-08-03 22:40:00 【一个处女座的程序猿】
ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
目录
基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
# 4.1、阈值图:基于yellowbrick库实现模型可解释性
相关文章
ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例实现
基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
# 1、定义数据集
| PassengerId | Survived | Pclass | Name | Sex | Age | SibSp | Parch | Ticket | Fare | Cabin | Embarked |
| 1 | 0 | 3 | Braund, Mr. Owen Harris | male | 22 | 1 | 0 | A/5 21171 | 7.25 | S | |
| 2 | 1 | 1 | Cumings, Mrs. John Bradley (Florence Briggs Thayer) | female | 38 | 1 | 0 | PC 17599 | 71.2833 | C85 | C |
| 3 | 1 | 3 | Heikkinen, Miss. Laina | female | 26 | 0 | 0 | STON/O2. 3101282 | 7.925 | S | |
| 4 | 1 | 1 | Futrelle, Mrs. Jacques Heath (Lily May Peel) | female | 35 | 1 | 0 | 113803 | 53.1 | C123 | S |
| 5 | 0 | 3 | Allen, Mr. William Henry | male | 35 | 0 | 0 | 373450 | 8.05 | S |
# 2、数据预处理
# 2.1、类别特征编码
# 2.2、特征筛选且空值填充
Pclass Age SibSp Parch Fare Sex_encoding Embarked_encoding \
0 3 22.0 1 0 7.2500 1 0
1 1 38.0 1 0 71.2833 0 1
2 3 26.0 0 0 7.9250 0 0
3 1 35.0 1 0 53.1000 0 0
4 3 35.0 0 0 8.0500 1 0
Survived
0 0
1 1
2 1
3 1
4 0
# 2.3、特征之间Pearson相关性可视化

# 3、模型建立
# 4、模型可解释性可视化
# 4.1、阈值图:基于yellowbrick库实现模型可解释性

边栏推荐
- Data_web(九)mongodb增量同步到mongodb
- 如何创建一个Web项目
- 如何设计 DAO 的 PoW 评判标准 并平衡不可能三角
- 中国企业构建边缘计算解决方案的最佳实践
- "Digital Economy Panorama White Paper" Financial Digital User Chapter released!
- 嵌入式系统:GPIO
- The development status of cloud computing at home and abroad
- 藏宝计划TreasureProject(TPC)系统模式开发技术原理
- Cisco ike2 IPSec配置
- 113. 授人以渔 - 如何自行查询任意 SAP UI5 控件属性的文档和技术实现细节
猜你喜欢

113. Teach a Man how to fish - How to query the documentation and technical implementation details of any SAP UI5 control property by yourself

【day6】类与对象、封装、构造方法

LabVIEW code generation error 61056

encapsulation, package, access modifier, static variable
![[b01lers2020]Life on Mars](/img/d0/d5c9b7224542c8843ce29adc7ef713.png)
[b01lers2020]Life on Mars

获国际权威认可 | 云扩科技入选《RPA全球市场格局报告,Q3 2022》

113. 授人以渔 - 如何自行查询任意 SAP UI5 控件属性的文档和技术实现细节

数据一致性:双删为什么要延时?

Analysys Analysis: The transaction scale of China's online retail B2C market in Q2 2022 will reach 2,344.47 billion yuan

Cisco ike2 IPSec配置
随机推荐
斩获双奖|易知微荣获“2021中国数字孪生解决方案优秀供应商”“中国智能制造优秀推荐产品”双奖项!
With the rise of concepts such as metaverse and web3.0, many digital forms such as digital people and digital scenes have begun to appear.
2019年10月SQL注入的两倍
七夕快乐!
举一个 web worker 的例子
start with connect by implements recursive query
Summary bug 】 【 Elipse garbled solution project code in Chinese!
UVa 1025 - A Spy in the Metro (White Book)
Quickly build a website with static files
Golang Chapter 2: Program Structure
113. Teach a Man how to fish - How to query the documentation and technical implementation details of any SAP UI5 control property by yourself
UVa 1025 - A Spy in the Metro(白书)
JPA Native Query(本地查询)及查询结果转换
Basic Concepts of Graphs
[N1CTF 2018]eating_cms
LabVIEW code generation error 61056
Storage engine written by golang, based on b+ tree, mmap
PowerMockup 4.3.4::::Crack
override learning (parent and child)
2022-08-02 mysql/stonedb slow SQL-Q18 - memory usage surge analysis