Finish AutoEncoder Base and Optimization file