|
int | $numFeatures = null |
| Number of features to be preserved after the reduction.
|
|
float | $totalVariance = 0.9 |
| Total variance to be conserved after the reduction.
|
|
|
| eigenDecomposition (array $matrix) |
| Calculates eigenValues and eigenVectors of the given matrix.
|
|
| reduce (array $data) |
| Returns the reduced data.
|
|
|
array | $eigValues = [] |
| Top eigenValues of the matrix.
|
|
array | $eigVectors = [] |
| Top eigenvectors of the matrix.
|
|
◆ eigenDecomposition()
Phpml\DimensionReduction\EigenTransformerBase::eigenDecomposition |
( |
array | $matrix | ) |
|
|
protected |
Calculates eigenValues and eigenVectors of the given matrix.
Returns top eigenVectors along with the largest eigenValues. The total explained variance of these eigenVectors will be no less than desired $totalVariance value
The documentation for this class was generated from the following file:
- lib/mlbackend/php/phpml/src/Phpml/DimensionReduction/EigenTransformerBase.php