flitsr.advanced.artemis_wrapper.Artemis¶
- class flitsr.advanced.artemis_wrapper.Artemis(numUniverse: int = 17, maxUniverse: int = 20, p: float = 1e-05, tiebrk: Tiebrk = Tiebrk.ORIG)¶
Bases:
RankerRun the ARTEMIS technique on the spectrum to produce the ranked lists. This option may be combined with FLITSR and parallel to produce a hybrid technique.
- __init__(numUniverse: int = 17, maxUniverse: int = 20, p: float = 1e-05, tiebrk: Tiebrk = Tiebrk.ORIG)¶
Methods
__init__([numUniverse, maxUniverse, p, tiebrk])rank(spectrum, metric)Provides the ranking functionality for the
Ranker.- rank(spectrum: Spectrum, 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.