update training routings for hash learning