qiskit-documentation/docs/api/qiskit/0.26/qiskit.aqua.utils.reduce_di...

30 lines
814 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: reduce_dim_to_via_pca (v0.26)
description: API reference for qiskit.aqua.utils.reduce_dim_to_via_pca in qiskit v0.26
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.aqua.utils.reduce_dim_to_via_pca
---
<span id="qiskit-aqua-utils-reduce-dim-to-via-pca" />
# qiskit.aqua.utils.reduce\_dim\_to\_via\_pca
<Function id="qiskit.aqua.utils.reduce_dim_to_via_pca" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/utils/dataset_helper.py" signature="reduce_dim_to_via_pca(x, dim)">
Reduce the data dimension via pca
**Parameters**
* **x** (*numpy.ndarray*) NxD array
* **dim** (*int*) the targeted dimension D
**Returns**
NxD array
**Return type**
numpy.ndarray
</Function>