Learning Bootstrap templates