NorskRegnesentral / shapr

Explaining the output of machine learning models with more accurately estimated Shapley values
https://norskregnesentral.github.io/shapr/
Other
141 stars 33 forks source link

Jens/order model and train #304

Closed JensWahl closed 2 years ago

martinju commented 2 years ago

@JensWahl Looks good. Can you add a test for this in test-setup? I suggest a setup where you have 2 lm-models, which were trained with the same data, but the columns where in different orders so the labels provided by get_model_specs are in different order. Running both models through explain should work with success (test this) and their output should be identical (test this). Please re-use one of the existing lm-models from the helper-lm file.