neuralib.plot.venn.VennHandler

class neuralib.plot.venn.VennHandler[source]

Bases: NamedTuple

VennHandler(subset_a, subset_b, subset_overlap, total_set)

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

get_pure_fraction()

get_pure_number()

index(value[, start, stop])

Return first index of value.

with_total(total)

total set number.

Attributes

chance_level

subset_a

whole number with condition a

subset_b

whole number with condition b

subset_overlap

whole number with condition a & b

total_set

Alias for field number 3

subset_a: int

whole number with condition a

subset_b: int

whole number with condition b

subset_overlap: int

whole number with condition a & b

total_set: int | None

Alias for field number 3

property chance_level: float
with_total(total)[source]

total set number. should include the non-classified population

Parameters:

total (int)

Return type:

VennHandler

get_pure_number()[source]
Return type:

tuple[int, …]

get_pure_fraction()[source]
Return type:

tuple[float, …]

static __new__(_cls, subset_a, subset_b, subset_overlap, total_set=None)

Create new instance of VennHandler(subset_a, subset_b, subset_overlap, total_set)

Parameters:
  • subset_a (int)

  • subset_b (int)

  • subset_overlap (int)

  • total_set (int | None)