public static INDArray pca ( INDArray A , int nDims , boolean normalize ) { INDArray factor = pca_factor ( A , nDims , normalize ) ; return A . mmul ( factor ) ; }
Calculates pca vectors of a matrix for a flags number of reduced features returns the reduced feature set The return is a projection of A onto principal nDims components