MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / get_num_classes

Method get_num_classes

monai/apps/datasets.py:151–153  ·  view source on GitHub ↗

Get number of classes.

(self)

Source from the content-addressed store, hash-verified

149 self.R.shuffle(data)
150
151 def get_num_classes(self) -> int:
152 """Get number of classes."""
153 return self.num_class
154
155 def _generate_data_list(self, dataset_dir: PathLike) -> list[dict]:
156 """

Callers 2

test_valuesMethod · 0.95
test_lr_finderMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_valuesMethod · 0.76
test_lr_finderMethod · 0.76