3 c):_E@s.ddlmZmZddlZddljZddZdS))displayHTMLNc CsL|dj}|dj}x,|D]"}ttd|dx|D]}||d|k|d|k@}tjj|d}||d|k}tjdd} tj} | j d |d |d | j tjj|d|d d ddd| j ||d|dddd| j ||dd dd| j ||dd dd| j d| j d| jtjqBWq WdS)Nmodel customer_typez

z

timestamp)figsizez Forecast z demand ()Zdemand-blackZActual)fmtcolorlabelp10p90g333333?z80% Confidence Interval)alpharp50zPrediction Median)r rmeanzPrediction MeanDatezRides Taken (Demand))rr)uniquerrmpldatesdate2numpltfiguregca set_title plot_date fill_between set_xlabel set_ylabellegendshow) ZactualsZ predictionsmodelsZcustomer_typesrrZ predictionZprediction_tsnumsactualfigaxr(>/home/ec2-user/SageMaker/forecasting-workshop/util/plotting.pyplot_fcst_resultssP      r*) IPython.core.displayrr matplotlibrmatplotlib.pyplotpyplotrr*r(r(r(r)s