Skip to content Skip to sidebar Skip to footer

`eli5.show_weights` Displayed Standard Deviation Does Not Agree With The Values In `feature_importances_std_`

The PermutationImportance object has some nice attributes such as feature_importances_ and feature_importances_std_. To visualize in an HTML style this attributes I used eli5.show_

Solution 1:

Found the *2 :
It's in the template generating the feature importances html table in the following page

https://github.com/TeamHG-Memex/eli5/blob/63e99182dc682bbf225355c80a24807396a747b6/eli5/templates/feature_importances.html

        {% if not fw.std is none %}
            ± {{ "%0.4f"|format(2 * fw.std) }}
        {% endif %}

It's clearly put by hand


Post a Comment for "`eli5.show_weights` Displayed Standard Deviation Does Not Agree With The Values In `feature_importances_std_`"