train_ade function

Training procedure of for ADE