Predicting periodic and chaotic signals using Wavenets