`eli5.show_weights` displayed standard deviation does not agree with the values in `feature_importances_std_`

后端 未结 1 2009
执念已碎
执念已碎 2021-01-21 17:39

The PermutationImportance object has some nice attributes such as feature_importances_ and feature_importances_std_.

To visualize

相关标签:
1条回答
  • 2021-01-21 17:45

    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

    0 讨论(0)
提交回复
热议问题