惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
IT之家
IT之家
B
Blog
博客园_首页
量子位
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
J
Java Code Geeks
H
Help Net Security
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News

お前はどこまで見えている

基于成交量预测市场走势 深入理解BashShell重定向 PowerShell常见问题 低延迟趋势线择时策略 波动率与换手率中的牛熊密码 通道突破择时策略 均线择时策略 Partial Plots 因子投资基础 Use Cases for Model Insights 天文相关资源汇总 被讨厌的勇气 量化笔试数理知识复习 你当像鸟飞往你的山 Python模块logging 失去的二十年:日本经济长期停滞的真正原因 PyTorch的hook机制 A股交易规则 强化学习概述
Permutation Importance
hotarugali · 2024-01-11 · via お前はどこまで見えている

Feature Importance

One of the most basic questions is the feature importance, namely what features have the biggest impact on predictions ?

There are multiple ways to measure feature importance. Some approaches answer subtly different versions of the question above. Other approaches have documented shortcomings. Compared to most other approaches, permutation importance is:

  • fast to calculate
  • widely used and understood
  • consistent with properties we would want a feature importance measure to have

How It Works

Permutation importance is calculated after a model has been fitted. Permutation importance is answered by the following question:

  • If we randomly shuffle a single column of the validation data, leaving the target and all other columns in place, how would the affect the accuracy of predictions in that now-shuffled data ?

With this insight, the process is as follows:

  1. Get a trained model.
  2. Shuffle the values in a single column, make predictions using the resulting dataset. Use these predictions and the true target values to calculate how much the loss function suffered from shuffling. That performance deterioration measures the importance of the variable you just shuffled.
  3. Return the data to the original order. Now repeat step 2 with the next column in the dataset, until you have calculated the importance of each column.

Interpreting Permutation Importance

The more accuracy decrease, the more important of that feature. Like most things in data science, there is some randomness to the exact performance change from a shuffling column. We can measure the amount of randomness in our permutation importance calculation by repeating the process with multiple shuffles and calculate the mean.

In those cases, which have negative values for permutation importance, the predictions on the shuffled data happened to be more accurate than the real data. This happens when the feature didn’t matter (should have had an importance close to 0), but random chance caused the predictions on shuffled data to be more accurate. This is more common with small datasets, like the one in this example, because there is more room for luck/chance.

Reference

版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 お前はどこまで見えている

打赏

  • 微信

    微信

  • 支付宝

    支付宝