Add progress bar in machine learning and improve learning speed.