AI4LIFE-GROUP / OpenXAI

OpenXAI : Towards a Transparent Evaluation of Model Explanations
https://open-xai.github.io/
MIT License
227 stars 37 forks source link

question about German dataset #27

Closed NKUShaw closed 11 months ago

NKUShaw commented 1 year ago

Can you provide me the german-feature-metadata.p files? Thanks!

adamdejl commented 1 year ago

I have also been unsuccessfully trying to find the file, but it appears that it can be quite easily replaced by defining the feature metadata in the same way as in faithfulness_demo.py. In particular, using the following code to initialise input_dict['feature_metadata'] seems to be working for the German Credit dataset:

feature_metadata = dict()
feature_metadata['feature_n_cols'] = [1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 10, 5, 5, 4, 3, 4, 3, 3, 4, 2]
feature_metadata['feature_types'] = ['c'] * 8 + ['d'] * 12
(...)
input_dict['feature_metadata'] = feature_metadata