signaux-faibles / predictsignauxfaibles

Dépôt du code python permettant la production de liste de prédiction Signaux Faibles.
MIT License
6 stars 2 forks source link

Feat/explain predictions #61

Closed slebastard closed 3 years ago

slebastard commented 3 years ago

Added a function explain(sf_dataset: SFDataset, conf: ModuleType) that explains the relative contribution of each input feature to the logistic regression declared in conf.MODEL_PIPELINE. The function takes as input a SFDataset containing the dataset predictions were ran on, and outputs a SFDataset with two additional columns:

Note: in the future, adding a test of explain() in our e2e testing may be interesting:

slebastard commented 3 years ago

May 11th, 2021 updates:

slebastard commented 3 years ago

Here is a theoretical ressource to understand how radar scores were computed: sf_logreg_explradar_theory

slebastard commented 3 years ago

Merci pour ta review! Je m'occupe du conflit sur utils.py