Deep Learning for Topological Invariants