On the effectiveness of machine and deep learning for cyber security