Change the implementation of adaptive SHOG.