code for learn gmm codebook using yael & set spatial model