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.
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.