Design
Models
API
API Mapping
Migration Guide
Syntax Support
FAQ
RELEASE NOTES
Get the number of classes in a dataset.
int, number of classes.
Examples
>>> # dataset is an instance object of Dataset >>> num_classes = dataset.num_classes()