Added a utitility to plot the learning curve in log.