BrodenLabel

class hybrid_learning.datasets.custom.broden.BrodenLabel(name, number, category)[source]

Bases: tuple

Information needed to load the annotation of a Broden label.

Public Data Attributes:

name

The (unique) name of the label in the annotations.

number

The label ID.

category

The category from which to select samples for the label

Public Methods:

Inherited from : py: class:tuple

index(value[, start, stop])

Return first index of value.

count(value, /)

Return number of occurrences of value.

Special Methods:

__repr__()

Return a nicely formatted representation string

__getnewargs__()

Return self as a plain tuple.

Inherited from : py: class:tuple

__repr__()

Return a nicely formatted representation string

__hash__()

Return hash(self).

__getattribute__(name, /)

Return getattr(self, name).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__iter__()

Implement iter(self).

__len__()

Return len(self).

__getitem__(key, /)

Return self[key].

__add__(value, /)

Return self+value.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__contains__(key, /)

Return key in self.

__new__(_cls, name, number, category)

Create new instance of BrodenLabel(name, number, category)

__getnewargs__()

Return self as a plain tuple.


Parameters
  • name (str) –

  • number (int) –

  • category (str) –

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__repr__()

Return a nicely formatted representation string

__slots__ = ()
category: str

The category from which to select samples for the label

name: str

The (unique) name of the label in the annotations.

number: int

The label ID.