artefactual.scoring.WEPRPooling#

class artefactual.scoring.WEPRPooling[source]#

Bases: Pooling

The Weighted EPR: a mean and a max per rank, wepr_reduction.

Methods

feature_names

wepr_mean_<rank> for each rank, then wepr_max_<rank> for each rank.

width

2k: the mean branch then the max branch.

constant_width: ClassVar[bool] = False#
feature_names(ranks)[source]#

wepr_mean_<rank> for each rank, then wepr_max_<rank> for each rank.

Return type:

list[str]

property name: str#

The feature name of a one-feature pooling and the prefix of a wider one.

width(k)[source]#

2k: the mean branch then the max branch.

Return type:

int