flitsr.advanced.ranker.Ranker¶
- class flitsr.advanced.ranker.Ranker¶
Bases:
ABCA
Rankertechnique takes aSpectrumand forms aRankingof the elements in the the spectrum.- __init__()¶
Methods
- abstractmethod 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.