albermax / innvestigate

A toolbox to iNNvestigate neural networks' predictions!
Other
1.25k stars 234 forks source link

Problem with neuron Selection mode #232

Closed mariokloster closed 3 years ago

mariokloster commented 3 years ago

Hello,

Thank you for this great Tool. I have a Problem with neuron_selesction_mode in version updates_towards_tf2.0

my_analyzer = create_analyzer("lrp.sequential_preset_a", model_wo_sm, neuron_selection_mode="index")

/innvestigate/analyzer/base.py in init(self, model, allow_lambda_layers, kwargs) 258 259 --> 260 super(AnalyzerNetworkBase, self).init(model, kwargs) 261 262 def _add_model_softmax_check(self):

TypeError: init() got an unexpected keyword argument 'neuron_selection_mode'

rachtibat commented 3 years ago

Hi, I'm sorry version 2.0 is right now not usable. If you want something reliable to play with use comment 4f558f8ccd4b6762d5386700777cbb0641d9834f

neuron_selection_mode is no argument anymore. Just open the function and look at the comments. They should explain how you use the function. There is unfortuantely no documentation