sketched saving state with pickle, update train method accordingly