Here's the tutorial describe the main steps from Lu et al 2018. By the end of this tutorial, you will get the following figure, which is similar to figure 2b.
This tutorial is based on
Lu, Q., Chen, P.-H., Pillow, J. W., Ramadge, P. J., Norman, K. A., & Hasson, U. (2018).
Shared Representational Geometry Across Neural Networks. arXiv [cs.LG].
Retrieved from http://arxiv.org/abs/1811.11684
This is the main repo for this project: https://github.com/qihongl/nnsrm-neurips18