Data-driven constitutive model of complex fluids using recurrent networks