A novel prediction based portfolio optimization model using deep learning