Finalized procrustes training and alignment