pickers
Registry entry pickers for no-reset benchmarks.
- class pysatl_cpd.benchmark.online.noreset.tooling.pickers.OnlineNoResetEntryAlgorithmPicker(*args, **kwargs)[source]
Bases:
BenchmarkEntriesPickerPicks registry keys that match detector description produced by NoResetOnlineDetector(entry.algorithm).
- pick(entries, benchmark_entry)[source]
Pick registry keys matching a benchmark entry’s detector description.
- Parameters:
entries (
Sequence[SingleRunDescription]) – All available registry keys.benchmark_entry (
OnlineNoResetBenchmarkEntry) – Entry whose detector description is used for matching.
- Returns:
Keys whose detector description matches and whose provider type is
bisegment.- Return type:
- class pysatl_cpd.benchmark.online.noreset.tooling.pickers.OnlineNoResetBisegmentByTransitionPicker(transition)[source]
Bases:
BenchmarkEntriesPickerLike
OnlineNoResetEntryAlgorithmPicker, but keeps only bisegment runs whose annotation matches the given transition.Use when the registry may contain other transitions (e.g. after a full benchmark) but metrics must refer to a single transition only.
- Parameters:
transition (
TransitionDescriptor) – Transition to filter bisegment runs by.
- __init__(transition)[source]
- Parameters:
transition (TransitionDescriptor)
- Return type:
None
- pick(entries, benchmark_entry)[source]
Pick keys matching both the algorithm and the configured transition.
- Parameters:
entries (
Sequence[SingleRunDescription]) – All available registry keys.benchmark_entry (
OnlineNoResetBenchmarkEntry) – Entry whose detector description is used for matching.
- Returns:
Keys whose detector description matches and whose provider annotation has the configured transition.
- Return type:
- class pysatl_cpd.benchmark.online.noreset.tooling.pickers.OnlineNoResetNoChangeByStatePicker(state)[source]
Bases:
BenchmarkEntriesPickerPick no-change registry keys for a benchmark entry and state.
- Parameters:
state (
StateDescriptor) – State descriptor to filter by.
- __init__(state)[source]
- Parameters:
state (StateDescriptor)
- Return type:
None
- pick(entries, benchmark_entry)[source]
Pick keys matching the entry’s detector and configured no-change state.
- Parameters:
entries (
Sequence[SingleRunDescription]) – All available registry keys.benchmark_entry (
OnlineNoResetBenchmarkEntry) – Entry whose detector description is used for matching.
- Return type: