Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Phpml\DimensionReduction\EigenTransformerBase Class Reference
Inheritance diagram for Phpml\DimensionReduction\EigenTransformerBase:
Phpml\DimensionReduction\LDA Phpml\DimensionReduction\PCA Phpml\DimensionReduction\KernelPCA

Public Attributes

int $numFeatures = null
 Number of features to be preserved after the reduction.
 
float $totalVariance = 0.9
 Total variance to be conserved after the reduction.
 

Protected Member Functions

 eigenDecomposition (array $matrix)
 Calculates eigenValues and eigenVectors of the given matrix.
 
 reduce (array $data)
 Returns the reduced data.
 

Protected Attributes

array $eigValues = []
 Top eigenValues of the matrix.
 
array $eigVectors = []
 Top eigenvectors of the matrix.
 

Member Function Documentation

◆ 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: