flitsr.advanced.flitsr.Multi¶
- class flitsr.advanced.flitsr.Multi(args: Args | None = None, cutoff: int | None = None)¶
Bases:
FlitsrRun the FLITSR* algorithm over the spectrum to produce ranked lists.
- __init__(args: Args | None = None, cutoff: int | None = None)¶
Changed in version 2.4.0: Added the cutoff optional argument
Methods
__init__([args, cutoff])flitsr(spectrum, formula)Executes the recursive flitsr algorithm to identify faulty elements
flitsr_ordering(spectrum, basis, ranking[, ...])Order the given flitsr basis using the specified ordering strategy.
get_inverse_confidence_scores(spectrum, basis)Using the given basis and spectrum, calculates the confidence scores for each basis element.
multiRemove(spectrum, faulty)Remove the elements given by faulty from the spectrum, and remove any test cases executing these elements only.
rank(spectrum, formula)Provides the ranking functionality for the
Ranker.remove_faulty_elements(spectrum, ...)Removes all tests that execute an 'actually' faulty element
run_metric(spectrum, formula)- multiRemove(spectrum: Spectrum, faulty: List[Group]) bool¶
Remove the elements given by faulty from the spectrum, and remove any test cases executing these elements only.
- rank(spectrum: Spectrum, formula: 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.