flitsr.advanced.sbfl.SBFL¶
- class flitsr.advanced.sbfl.SBFL(tiebrk: Tiebrk = Tiebrk.ORIG)¶
Bases:
RankerDisables the FLITSR algorithm so that only the base metric is used to produce the ranking. This is equivalent to using the base metric as-is, but allows the user to run these metrics within the FLITSR framework
Methods
- rank(spectrum: Spectrum, base_metric: str) Ranking¶
Provides the ranking functionality for the
Ranker. Takes aSpectrumand a base_metric and returns aRankingof the elements in the spectrum. Note that the technique does not need to use the base_metric.- Parameters:
spectrum – Spectrum: The spectrum whose elements to rank
base_metric – str: The name of the SBFL metric to optionally use within the technique to rank the elements.
- Returns:
A
Rankingof the elements in the spectrum.