cobra icon indicating copy to clipboard operation
cobra copied to clipboard

Variable importance - optional metrics

Open JanBenisek opened this issue 3 years ago • 0 comments

We compute variable importance by calculating Pearson's correlation between scores and target encoded variables:

https://github.com/PythonPredictions/cobra/blob/0133435194ac63f771e6d165c23ea34233dd0a94/cobra/model_building/models.py#L144-L150

It'd be nice to choose different correlation (like Kendall)? Pearson assumes normality, but doesn't always hold for the variables considered.

https://datascience.stackexchange.com/questions/64260/pearson-vs-spearman-vs-kendall

JanBenisek avatar Mar 12 '21 09:03 JanBenisek