获取排列重要性的所有值

Getting all values of permuation importnace

我使用 eli5 计算了排列重要性。但是我只得到了一部分值。

import eli5
eli5.show_weights(perm, feature_names = X.columns.tolist())

在原始图的末尾显示 ..10 more。我怎样才能得到所有的值?

show_weights 方法有一个 top 参数,当设置为 None 时,显示的功能没有限制(参见 documentation),因此应该可以解决您的问题:

eli5.show_weights(perm, feature_names = X.columns.tolist(), top=None)