Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.aqua.utils.get_feature_dimension

get_feature_dimension(dataset)

GitHub

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

Was this page helpful?
Report a bug or request content on GitHub.