31 lines
800 B
Plaintext
31 lines
800 B
Plaintext
---
|
||
title: get_feature_dimension
|
||
description: API reference for qiskit.aqua.utils.get_feature_dimension
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.aqua.utils.get_feature_dimension
|
||
---
|
||
|
||
# qiskit.aqua.utils.get\_feature\_dimension
|
||
|
||
<Function id="qiskit.aqua.utils.get_feature_dimension" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/utils/dataset_helper.py" signature="get_feature_dimension(dataset)">
|
||
Check feature dimension of a given dataset
|
||
|
||
**Parameters**
|
||
|
||
**dataset** (*dict*) – key is the class name and value is the data.
|
||
|
||
**Returns**
|
||
|
||
feature dimension, -1 denotes no data in the dataset.
|
||
|
||
**Return type**
|
||
|
||
int
|
||
|
||
**Raises**
|
||
|
||
**TypeError** – invalid data set
|
||
</Function>
|
||
|