Robust deep learning from weakly dependent data