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:
The (unique) name of the label in the annotations.
The label ID.
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
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)
Return self as a plain tuple.
- __getnewargs__()
Return self as a plain tuple. Used by copy and pickle.
- __repr__()
Return a nicely formatted representation string
- __slots__ = ()