Ask Your Question
0

How to use retained variance in PCA?

asked 2013-08-03 05:10:10 -0600

When I pass a double number(90.1) to retainedVariance param for create a instance of PCA.

I encounter to assertion failed retainceVariance 0 && retainceVariance=1

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
3

answered 2013-08-03 16:45:44 -0600

Guanta gravatar image

Citing the documentation:

retainedVariance – Percentage of variance that PCA should retain.[...]

--> the variable should be between 0 and 1, which also states the assertion-failure you got --> use 0.901.

edit flag offensive delete link more

Comments

yes I contributed this code and this is correct

pickle27 gravatar imagepickle27 ( 2013-08-03 19:35:40 -0600 )edit

Thanks.I looked at the code. CV_Assert( retainedVariance > 0 && retainedVariance <= 1 );

Mostafa Sataki gravatar imageMostafa Sataki ( 2013-08-03 23:45:34 -0600 )edit

Question Tools

Stats

Asked: 2013-08-03 05:10:10 -0600

Seen: 1,299 times

Last updated: Aug 03 '13