update ipython notebook for structured output learning