Ask Your Question
0

How to use retained variance in PCA?

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

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 -0500

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 -0500 )edit

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

Mostafa Sataki gravatar imageMostafa Sataki ( 2013-08-03 23:45:34 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

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

Seen: 679 times

Last updated: Aug 03 '13