TorchLean API

NN.Spec.Module.Pca

PCA as an NNModuleSpec #

The PCA spec model defines a projection y = (x - mean) · componentsᵀ. This file provides the NNModuleSpec wrapper used for composition and export.

def Spec.PCAModuleSpec {α : Type} [Context α] {inDim outDim : } (m : PCASpec α inDim outDim) :

PCA module specification following NNModuleSpec.

Instances For