A Combinatorial Perspective on Transfer Learning