MATLAB Answers

BANI tita

I want a code for kernel PCA

Asked by BANI tita
on 14 Feb 2013

hello, I am looking for a site where I can find a program reduction dimentionality kernel PCA think you



No products are associated with this question.

1 Answer

Answer by Shashank Prasanna
on 14 Feb 2013

MATLAB currently doesn't offer this as a part of the statistics toolbox. In the past I've used this and it worked really well for me:



try clear all

try some of the trouble shooting steps mentioned in the website:

make sure you have the relevant files on the path


here is the program I run but still it gives me same error

load baseAT.mat;
	figure, scatter3(X(:,1), X(:,2), X(:,3), 5, labels); title('Original dataset'), drawnow
	no_dims = round(intrinsic_dim(X, 'EigValue'));
	disp(['MLE estimate of intrinsic dimensionality: ' num2str(no_dims)]);
	mappedX = compute_mapping(X, 'KernelPCA', no_dims, 7);	
	figure, scatter(mappedX(:,1), mappedX(:,2), 5, labels); title('Result of dimensionality reduction'), drawnow

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!