30 lines
814 B
Plaintext
30 lines
814 B
Plaintext
---
|
||
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>
|
||
|