add training sparse coding