I performed a partial least squares regression using Python's sklearn.cross_decomposition.PLSRegression
Is there a way to retrieve the fraction of explained variance for X, i.e. R2(X), for each PLS component? I'm looking for something similar to the explvar() function from the R pls package. However, I'd also appreciate any suggestions on how to compute it myself.
There is a similar question and there is one answer that explains how to get the variance of Y. I guess, that "variance in Y" is what was asked for in that case. That's why I opened a new question - hope that's O.K.