当前位置:网站首页>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库实现模型可解释性
边栏推荐
- 2022-08-02 mysql/stonedb slow SQL-Q18 - memory usage surge analysis
- 剑指offer第22题-链表中倒数第K个节点
- 授人以渔 - 如何自行查询任意 SAP UI5 控件属性的文档和技术实现细节试读版
- UVa 437 - The Tower of Babylon (White Book)
- 【bug】汇总Elipse项目中代码中文乱码解决方法!
- Bytebase数据库 Schema 变更管理工具
- Websocket multi-threaded sending message error TEXT_PARTIAL_WRITING--Use case of spin lock replacing synchronized exclusive lock
- UVa 1025 - A Spy in the Metro (White Book)
- 2022-08-02 mysql/stonedb慢SQL-Q18-内存使用暴涨分析
- On the Qixi Festival of 2022, I will offer 7 exquisite confession codes, and at the same time teach you to quickly change the source code for your own use
猜你喜欢
Teach a Man How to Fish - How to Query the Properties of Any SAP UI5 Control by Yourself Documentation and Technical Implementation Details Demo
电商秒杀系统
斩获双奖|易知微荣获“2021中国数字孪生解决方案优秀供应商”“中国智能制造优秀推荐产品”双奖项!
易观分析:2022年Q2中国网络零售B2C市场交易规模达23444.7亿元
物联网新零售模式,引领购物新潮流
PowerMockup 4.3.4::::Crack
node连接mysql数据库报错:Client does not support authentication protocol requested by server
HCIP BGP实验报告
[MySQL Advanced] Creation and Management of Databases and Tables
113. 授人以渔 - 如何自行查询任意 SAP UI5 控件属性的文档和技术实现细节
随机推荐
October 2019 Twice SQL Injection
授人以渔 - 如何自行查询任意 SAP UI5 控件属性的文档和技术实现细节试读版
483. Smallest Good Base
How to write a database document management tool based on WPF (2)
【day1】
[N1CTF 2018]eating_cms
Shell编程的条件语句
HDU 5655 CA Loves Stick
Zilliz 2023 秋季校园招聘正式启动!
pikachu Over permission 越权
云平台建设解决方案
L2-029 特立独行的幸福
封装、包、访问权限修饰符、static变量
Recognized by International Authorities | Yunzhuang Technology was selected in "RPA Global Market Pattern Report, Q3 2022"
嵌入式系统:时钟
What is the difference between the generator version and the viewer version?
Nine ways to teach you to read the file path in the resources directory
Republish the lab report
UVa 437 - The Tower of Babylon (White Book)
Network basic learning series four (network layer, data link layer and some other important protocols or technologies)