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


边栏推荐
- Incremental ternary subsequence [greedy training]
- JVM memory layout detailed, illustrated, well written!
- 92.(cesium篇)cesium楼栋分层
- Ws2818m is packaged in cpc8. It is a special circuit for three channel LED drive control. External IC full-color double signal 5v32 lamp programmable LED lamp with outdoor engineering
- [FAQ] Huawei Account Service Error Report 907135701 Common reasons Summary and Solutions
- China Post technology rushes to the scientific innovation board: the annual revenue is 2.058 billion, and the postal group is the major shareholder
- 为什么图片传输要使用base64编码
- Remove duplicate letters [greedy + monotonic stack (maintain monotonic sequence with array +len)]
- LifeCycle
- R language uses dplyr package group_ The by function and the summarize function calculate the mean and standard deviation of the target variables based on the grouped variables
猜你喜欢

安装Mysql

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

gin集成支付宝支付

吃透Chisel语言.05.Chisel基础(二)——组合电路与运算符

2022 practice questions and mock exams for the main principals of hazardous chemical business units

NowCoder 反转链表

软件测试之测试评估

测试流程整理(3)

Xcode 异常图片导致ipa包增大问题

Test process arrangement (3)
随机推荐
实时数据仓库
使用CLion编译OGLPG-9th-Edition源码
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
Product identification of intelligent retail cabinet based on paddlex
IP lab monthly resumption · issue 5
Detailed index of MySQL
吃透Chisel语言.07.Chisel基础(四)——Bundle和Vec
IDEA快捷键大全
MySQL的存储过程练习题
Vscode common plug-ins summary
LiveData
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
CVPR 2022 | greatly reduce the manual annotation required for zero sample learning, and propose category semantic embedding rich in visual information (source code download)
Can mortgage with housing exclude compulsory execution
Test evaluation of software testing
MATLAB中tiledlayout函数使用
Leetcode T48:旋转图像
Mongodb commonly used 28 query statements (forward)
失败率高达80%,企业数字化转型路上有哪些挑战?
统计php程序运行时间及设置PHP最长运行时间