zoom.pls_tool.get_Q2

zoom.pls_tool.get_Q2(SBP: pandas.DataFrame, preds_rep: pandas.DataFrame) float[source]

Compute cross-validation R2(Q2).

Parameters:
  • SBP (pd.DataFrame) – One-dimensional data frame of spatial brain phenotype.

  • preds_rep (pd.DataFrame) – The predicted SBP values across repeats.

Returns:

Q2 – The cross-validation R2(Q2).

Return type:

float

References

[1] Wang, Y. et al. Spatio-molecular profiles shape the human

cerebellar hierarchy along the sensorimotor-association axis. Cell Rep. 43, 113770 (2024).

[2] Mahieu, B., Qannari, E. M. & Jaillais, B. Extension and

significance testing of Variable Importance in Projection (VIP) indices in Partial Least Squares regression and Principal Components Analysis. Chemom. Intell. Lab. Syst. 242, 104986 (2023).