Risk of Transfer Learning and its Applications in Finance