当前位置:网站首页>ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
2022-07-04 12:52:00 【一个处女座的程序猿】
ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
目录
基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
# 4.3、局部独立图可视化某特征的变化如何影响模型的输出及该特征值的分布
基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
# 1、定义数据集
更新中……
# 2、数据集预处理
更新中……
# 4、基于XGBR模型实现shap值分析
# 4.1、模型建立并训练
# 4.2、基于模型本身输出特征重要性
XGBR_importance_dict: [('DIS', 57), ('RM', 42), ('LSTAT', 39), ('PTRATIO', 29), ('NOX', 28), ('TAX', 28), ('CRIM', 23), ('B', 15), ('AGE', 13), ('RAD', 8), ('INDUS', 8), ('CHAS', 4), ('ZN', 1)]

# 4.3、局部独立图可视化某特征的变化如何影响模型的输出及该特征值的分布

# 4.4、利用Shap值解释XGBR模型
# 4.5、基于XGBoost模型实现Shap值可视化分析
# (1)、利用局部独立图计算shap值
# (2)、某列样本值(特征值)、及其对应shap值散点图可视化

# (3)、对所有样本中每个特征计算shap平均绝对值/最大绝对值条形图可视化

# (4)、对所有样本中每个特征计算shap平均绝对值蜂群图可视化

# (5)、对所有样本中每个特征计算shap平均绝对值热图可视化

# (6)、基于cluste算法处理相关性的特征并可视化


边栏推荐
- 数据仓库面试问题准备
- Data warehouse interview question preparation
- 吃透Chisel语言.09.Chisel项目构建、运行和测试(一)——用sbt构建Chisel项目并运行
- R语言ggplot2可视化:gganimate包创建动画图(gif)、使用anim_save函数保存gif可视化动图
- Mask wearing detection based on yolov1
- How to operate and invest games on behalf of others at sea
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
- Fs4059c is a 5V input boost charging 12.6v1.2a. Inputting a small current to three lithium battery charging chips will not pull it dead. The temperature is 60 ° and 1000-1100ma is recommended
- Ruiji takeout notes
- MySQL的存储过程练习题
猜你喜欢

JVM memory layout detailed, illustrated, well written!

sql优化之explain
![[FAQ] summary of common causes and solutions of Huawei account service error 907135701](/img/43/1a9786c89a5ab21d1fb8903cb7b77e.png)
[FAQ] summary of common causes and solutions of Huawei account service error 907135701

Install MySQL

第十七章 进程内存

Understand chisel language thoroughly 11. Chisel project construction, operation and test (III) -- scalatest of chisel test

Understand chisel language thoroughly 10. Chisel project construction, operation and testing (II) -- Verilog code generation in chisel & chisel development process

【FAQ】華為帳號服務報錯 907135701的常見原因總結和解决方法

【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法

sharding key type not supported
随机推荐
Yingshi Ruida rushes to the scientific and Technological Innovation Board: the annual revenue is 450million and the proposed fund-raising is 979million
Unittest中的TestSuite和TestRunner
What is the real meaning and purpose of doing things, and what do you really want
gin集成支付宝支付
R language ggplot2 visualization: gganimate package creates animated graph (GIF) and uses anim_ The save function saves the GIF visual animation
聊聊保证线程安全的 10 个小技巧
R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses the by parameter to specify the groupin
LifeCycle
Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
卷积神经网络经典论文集合(深度学习分类篇)
吃透Chisel语言.11.Chisel项目构建、运行和测试(三)——Chisel测试之ScalaTest
nowcoder重排链表
Xcode 异常图片导致ipa包增大问题
Remove duplicate letters [greedy + monotonic stack (maintain monotonic sequence with array +len)]
sql优化之查询优化器
商业智能BI财务分析,狭义的财务分析和广义的财务分析有何不同?
Idea shortcut keys
Error in find command: paths must precede expression (turn)
Understand chisel language thoroughly 12. Chisel project construction, operation and testing (IV) -- chisel test of chisel test
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法