public void kernelAccord() { var method = Accord.Statistics.Analysis.PrincipalComponentMethod.Center; var pca = new Accord.Statistics.Analysis.KernelPrincipalComponentAnalysis(new Accord.Statistics.Kernels.Polynomial((int)Gamma), method); pca.Learn(InitialData); pca.NumberOfOutputs = 2; double[,] actual = pca.Transform(InitialData); KernelData = actual; }
public double[,] kernelAccord() { var method = Accord.Statistics.Analysis.PrincipalComponentMethod.Center; var pca = new Accord.Statistics.Analysis.KernelPrincipalComponentAnalysis(new Accord.Statistics.Kernels.Gaussian(Gamma), method); pca.Learn(InitialData); pca.NumberOfOutputs = 50; double[,] actual = pca.Transform(InitialData); return(actual); }