tensorbay.client.statistics¶
The basic structure of the label statistics.
- class tensorbay.client.statistics.Statistics(data)[source]¶
Bases:
tensorbay.utility.user.UserMapping
[str
,Any
]This class defines the basic structure of the label statistics.
- Parameters
data – The dict containing label statistics.
- dumps()[source]¶
Dumps the label statistics into a dict.
- Returns
A dict containing all the information of the label statistics.
- Return type
Dict[str, Any]
Examples
>>> label_statistics = Statistics( ... { ... 'BOX3D': { ... 'quantity': 1234 ... }, ... 'KEYPOINTS2D': { ... 'quantity': 43234, ... 'categories': [ ... { ... 'name': 'person.person', ... 'quantity': 43234 ... } ... ] ... } ... } ... ) >>> label_statistics.dumps() ... { ... 'BOX3D': { ... 'quantity': 1234 ... }, ... 'KEYPOINTS2D': { ... 'quantity': 43234, ... 'categories': [ ... { ... 'name': 'person.person', ... 'quantity': 43234 ... } ... ] ... } ... }