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


边栏推荐
- QT how to detect whether the mouse is on a control
- [antd] how to set antd in form There is input in item Get input when gourp Value of each input of gourp
- Supprimer les lettres dupliquées [avidité + pile monotone (maintenir la séquence monotone avec un tableau + Len)]
- Vscode common plug-ins summary
- Data warehouse interview question preparation
- 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
- 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
- R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.col参数指定强调线的id子集的颜色(色彩)
- Deming Lee listed on Shenzhen Stock Exchange: the market value is 3.1 billion, which is the husband and wife of Li Hu and Tian Hua
- NowCoder 反转链表
猜你喜欢

10.(地图数据篇)离线地形数据处理(供Cesium使用)

Understand chisel language thoroughly 12. Chisel project construction, operation and testing (IV) -- chisel test of chisel test
![Supprimer les lettres dupliquées [avidité + pile monotone (maintenir la séquence monotone avec un tableau + Len)]](/img/af/a1dcba6f45eb4ccc668cd04a662e9c.png)
Supprimer les lettres dupliquées [avidité + pile monotone (maintenir la séquence monotone avec un tableau + Len)]

Leetcode 61: 旋转链表

【信息检索】分类和聚类的实验

DDD application and practice of domestic hotel transactions -- Code

瑞吉外卖笔记

吃透Chisel语言.10.Chisel项目构建、运行和测试(二)——Chisel中生成Verilog代码&Chisel开发流程

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

Understand chisel language thoroughly 05. Chisel Foundation (II) -- combinational circuits and operators
随机推荐
测试流程整理(2)
R language uses the mutation function of dplyr package to standardize the specified data column (using mean function and SD function), and calculates the grouping mean of the standardized target varia
Use of tiledlayout function in MATLAB
Use of arouter
[antd] how to set antd in form There is input in item Get input when gourp Value of each input of gourp
R语言ggplot2可视化:gganimate包创建动画图(gif)、使用anim_save函数保存gif可视化动图
Unittest中的TestSuite和TestRunner
Read excel table data
Leetcode T47: 全排列II
Mongodb commonly used 28 query statements (forward)
flink sql-client.sh 使用教程
File creation, writing, reading, deletion (transfer) in go language
海外游戏代投需要注意的
Gorm data insertion (transfer)
Whether the loyalty agreement has legal effect
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
Unittest框架之断言
流行框架:Glide的使用
Test process arrangement (2)
Understand chisel language thoroughly 08. Chisel Foundation (V) -- wire, REG and IO, and how to understand chisel generation hardware