#include <PCA.h>
◆ PCA()
PCA::PCA |
( |
int |
k_components = 0 | ) |
|
|
inline |
◆ fit()
void PCA::fit |
( |
const Matrix< double > & |
X, |
|
|
const Matrix< double > & |
y |
|
) |
| |
|
inlineoverridevirtual |
Implements training algorithm
- Parameters
-
X | array-like with the shape: [n_samples, n_features] |
y | array-like with shape: [n_samples, 1] |
- Returns
- this
Implements Predictor.
◆ transform()
Matrix< double > PCA::transform |
( |
const Matrix< double > & |
in | ) |
|
|
inlineoverridevirtual |
◆ keep_components
◆ PCs
◆ right
The documentation for this class was generated from the following file:
- include/math/ds/decomposition/PCA.h