'Save the parameters of the agent to a file.'

def save(self, fname=None):

    fname = (self.opt.get('model_file', None) if (fname is None) else fname)
    if fname:
        print (('[    saving    model:    ' + fname) + '    ]')
        self.model.save(fname)
