29 lines
749 B
Plaintext
29 lines
749 B
Plaintext
---
|
||
title: get_num_classes (v0.26)
|
||
description: API reference for qiskit.aqua.utils.get_num_classes in qiskit v0.26
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.aqua.utils.get_num_classes
|
||
---
|
||
|
||
<span id="qiskit-aqua-utils-get-num-classes" />
|
||
|
||
# qiskit.aqua.utils.get\_num\_classes
|
||
|
||
<Function id="qiskit.aqua.utils.get_num_classes" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/utils/dataset_helper.py" signature="get_num_classes(dataset)">
|
||
Check number of classes in a given dataset
|
||
|
||
**Parameters**
|
||
|
||
**dataset** (*dict*) – key is the class name and value is the data.
|
||
|
||
**Returns**
|
||
|
||
number of classes
|
||
|
||
**Return type**
|
||
|
||
int
|
||
</Function>
|
||
|