Understanding deep learning with activation pattern diagrams