AI4LIFE-GROUP / OpenXAI

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

update api.py to get model predictions from scaled features #23

Closed jiaqima closed 1 year ago

jiaqima commented 1 year ago

Description

Previously the model predictions in api.py are obtained from the same features as the one to be displayed. However, PR #15 changed the features to be displayed as raw features while the model was trained on scaled features by a minmax scaler. This PR fixes this bug by extracting both the raw features and the scaled features.

Test

Tested locally by running python openxai/api.py at root.