neuralib.plot.venn.VennHandler

class neuralib.plot.venn.VennHandler[source]

Bases: NamedTuple

VennHandler(subset_a, subset_b, subset_overlap, total_set)

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)

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.