milia.benchmark.conditions#

Seeds as named conditions: "lof@s2" is the LOF condition replicated with seed 2.

Treating each seed as its own condition lets a significance test compare a method’s effect against its own seed-to-seed noise.

Functions

base(replicate)

The condition a replicate belongs to.

index(replicate)

The seed of a replicate (0 for the condition itself).

name(condition, seed)

The replicate name of a condition at a seed; seed 0 is the condition itself.

milia.benchmark.conditions.name(condition, seed)#

The replicate name of a condition at a seed; seed 0 is the condition itself.

Parameters:
  • condition (str) – Condition name.

  • seed (int) – Seed index.

Return type:

str

Returns:

The replicate name.

Examples

>>> name("lof", 0), name("lof", 2)
('lof', 'lof@s2')
milia.benchmark.conditions.base(replicate)#

The condition a replicate belongs to.

Parameters:

replicate (str) – Replicate name.

Return type:

str

Returns:

The condition name.

Examples

>>> base("lof@s2")
'lof'
milia.benchmark.conditions.index(replicate)#

The seed of a replicate (0 for the condition itself).

Parameters:

replicate (str) – Replicate name.

Return type:

int

Returns:

The seed index.

Examples

>>> index("lof@s2"), index("lof")
(2, 0)