Thank you very much for you response, Marcel. I will look through the code.
I also happen to be familiar with scalismo and wrote a quick script to calculate generalization and specificity. I had a few questions:
1. When calculating genralization, am I correct in assuming that the test set used is not the one to train the model and similarly for specificity, the test set used is the one that was used to train the model.
2. Having read through Styner, Martin A., et al. "Evaluation of 3D correspondence methods for model building." Information processing in medical imaging. Springer Berlin Heidelberg, 2003, it seems the method to calculate compactness involves calculating the cumulative variance of the model described as a function of the modes or principle components. I was wondering if you could provide an explanation as to how to go about this?
Thank you very much!
Vipul