Recurrent machines for likelihood-free inference