qiskit-documentation/docs/api/qiskit/0.30/qiskit.aqua.utils.get_featu...

31 lines
800 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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>