当前位置:网站首页>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算法处理相关性的特征并可视化


边栏推荐
- Leetcode T49: 字母异位词分组
- The mouse wheel of xshell/bash/zsh and other terminals is garbled (turn)
- R语言ggplot2可视化:gganimate包创建动画图(gif)、使用anim_save函数保存gif可视化动图
- The font of markdown grammar is marked in red
- Incremental ternary subsequence [greedy training]
- MATLAB中tiledlayout函数使用
- 2022 game going to sea practical release strategy
- LifeCycle
- Ruiji takeout notes
- opencv3.2 和opencv2.4安装
猜你喜欢

Use the default route as the route to the Internet
![[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

【Matlab】conv、filter、conv2、filter2和imfilter卷积函数总结

Ruiji takeout notes

Huahao Zhongtian rushes to the scientific and Technological Innovation Board: the annual loss is 280million, and it is proposed to raise 1.5 billion. Beida pharmaceutical is a shareholder

sql优化之explain

Data warehouse interview question preparation

Unittest框架中引入TestFixture

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

吃透Chisel语言.09.Chisel项目构建、运行和测试(一)——用sbt构建Chisel项目并运行
随机推荐
Basic mode of service mesh
安装Mysql
MySQL之详解索引
按照功能对Boost库进行分类
File creation, writing, reading, deletion (transfer) in go language
vscode 常用插件汇总
R language ggplot2 visualization: gganimate package creates dynamic line graph animation (GIF) and uses transition_ The reveal function displays data step by step along a given dimension in the animat
吃透Chisel语言.09.Chisel项目构建、运行和测试(一)——用sbt构建Chisel项目并运行
DDD application and practice of domestic hotel transactions -- Code
Mask wearing detection based on yolov1
【Matlab】conv、filter、conv2、filter2和imfilter卷积函数总结
吃透Chisel语言.11.Chisel项目构建、运行和测试(三)——Chisel测试之ScalaTest
Understand chisel language thoroughly 12. Chisel project construction, operation and testing (IV) -- chisel test of chisel test
基于51单片机的超声波测距仪
R语言dplyr包summarise_if函数计算dataframe数据中所有数值数据列的均值和中位数、基于条件进行数据汇总分析(Summarize all Numeric Variables)
The mouse wheel of xshell/bash/zsh and other terminals is garbled (turn)
Assertion of unittest framework
数据仓库面试问题准备
MySQL的存储过程练习题
【信息检索】分类和聚类的实验