- 
                  
                  The estimated number of components. DeclarationSwift public var componentCount: Int
- 
                  
                  Whitening will remove some information from the transformed signal (the relative variance scales of the components) but can sometime improve the predictive accuracy of the downstream estimators by making their data respect some hard-wired assumptions. DeclarationSwift public var whiten: Bool
- 
                  
                  Number of samples in the training data. DeclarationSwift public var sampleCount: Int
- 
                  
                  Number of feature in the training data. DeclarationSwift public var featureCount: Int
- 
                  
                  Per-feature empirical mean, estimated from the training set. DeclarationSwift public var mean: Tensor<Double>
- 
                  
                  The estimated noise covariance. DeclarationSwift public var noiseVariance: Tensor<Double>
- 
                  
                  Principal axes in feature space, representing the directions of maximum variance in the data. The components are sorted by explainedVariance.DeclarationSwift public var components: Tensor<Double>
- 
                  
                  The amount of variance explained by each of the selected components. DeclarationSwift public var explainedVariance: Tensor<Double>
- 
                  
                  Percentage of variance explained by each of the selected components. DeclarationSwift public var explainedVarianceRatio: Tensor<Double>
- 
                  
                  The singular values corresponding to each of the selected components. DeclarationSwift public var singularValues: Tensor<Double>
- 
                  
                  Create Principal Component Analysis model. DeclarationSwift public init( componentCount: Int = 0, whiten: Bool = false )ParameterscomponentCountNumber of components to keep. whitenWhen true(falseby default) thecomponentsvectors are multiplied by the square root of sample count and then divided by the singular values to ensure uncorrelated outputs with unit component-wise variances. Whitening will remove some information from the transformed signal (the relative variance scales of the components) but can sometime improve the predictive accuracy of the downstream estimators by making their data respect some hard-wired assumptions.
- 
                  
                  Returns the log-likelihood of a rank over given dataset and spectrum. DeclarationSwift internal func assessDimension( _ spectrum: Tensor<Double>, _ rank: Int, _ sampleCount: Int, _ featureCount: Int ) -> Tensor<Double>ParametersspectrumThe amount of variance explained by each of the seleted components. rankTest rank value. sampleCountThe sample count. featureCountThe features count. Return ValueLog-likelihood of rank over given dataset. 
- 
                  
                  Returns the number of components best describe the dataset. Reference: “Automatic Choice of Dimensionality for PCA” DeclarationSwift internal func inferDimension( spectrum: Tensor<Double>, sampleCount: Int, featureCount: Int ) -> IntParametersspectrumThe amount of variance explained by each of the seleted components. sampleCountThe sample count. featureCountThe feature count. Return ValueThe number of components best describe the dataset. 
- 
                  
                  Fit a Principal Component Analysis. DeclarationSwift public func fit(data: Tensor<Double>)ParametersdataTraining data with shape [sample count, feature count].
- 
                  
                  Returns dimensionally reduced data. DeclarationSwift public func transformation(for data: Tensor<Double>) -> Tensor<Double>ParametersdataInput data with shape [sample count, feature count].Return ValueDimensionally reduced data. 
- 
                  
                  Returns transform data to its original space. DeclarationSwift public func inverseTransformation(for data: Tensor<Double>) -> Tensor<Double>ParametersdataInput data with shape [sample count, feature count].Return ValueOriginal data whose transform would be data. 
 PCA Class Reference
      PCA Class Reference