pudu-py / pudu

A Python library for explainability of machine learinng algorithms in an agnostic, deterministic, and simple way.
MIT License
5 stars 1 forks source link

Improved the importance() function, adding another method to compute it #6

Closed jongari7 closed 1 month ago

jongari7 commented 1 month ago

Improved the importance() function, adding another method to compute it. Added an input variable: method = '1class' (for the previous method) or 'comb_classes' (for the new method). The default method is '1class'. Created a little function (subtract_from_index()) in the standard.py script to be used in the computation of the new method. The 'comb_classes' method consists in see how the differences between class probabilities change and keep only the dominant term.