Is there any way to get variable importance with Keras?

后端 未结 4 1101
渐次进展
渐次进展 2020-12-23 17:51

I am looking for a proper or best way to get variable importance in a Neural Network created with Keras. The way I currently do it is I just take the weights (not the biases

4条回答
  •  时光说笑
    2020-12-23 18:03

    It is not that simple. For example, in later stages the variable could be reduced to 0.

    I'd have a look at LIME (Local Interpretable Model-Agnostic Explanations). The basic idea is to set some inputs to zero, pass it through the model and see if the result is similar. If yes, then that variable might not be that important. But there is more about it and if you want to know it, then you should read the paper.

    See marcotcr/lime on GitHub.

提交回复
热议问题