Hello everyone,
I am unsure how I can extract the explained variance from my fluid.pca analysis. The reference page of fluid.pca states the following: “After FluidPCA transforms a DataSet it also returns the explained variance: the fraction (between 0 and 1) of the total variance in the DataSet accounted for using the reduced number of dimensions it has transformed the DataSet into.” However, I am unsure about where this is being returned. I tried printing from both outlets, but I don’t get anything useful. Searching through the help file also did not prove to be useful. Does anyone know how this works?
Thank you in advance!
I’m guessing you’re in Max (?) so this might not be helpful, but in SC it returns the value as the argument to the action function. Also, for SC users, here’s a useful tool: GitHub - tedmoore/FluidPCA-explained-variance: A simple function for determining the explained variance ratios from a FluidPCA json save. which will give the explained variance for all the PCs so one can create a skree plot.
Hi @vertigo
In Max / PD* it’s the second item in the output message after calling fit
or fittransform
. Screenshot below from the Max help patch where I’ve attached a message box to the left outlet of fluid.pca~
(so, in this case, the explained variance was 0.81ish)
* Definitely in Max, if it’s not happening in PD then that’s a bug
Sorry for not clarifying; had a long day… I’m using Max
Thank you either way, I’m sure users who stumble upon this thread in the future will find your answer useful!
Hello, thank you, this is exactly what I’m looking for! And yes, I’m in Max.