def __init__(self, env, agent, callbacks=None, termination_conditions=None):
    self.env = env
    self.agent = agent
    self.callbacks = CallbackList(callbacks)
    if (termination_conditions is None):
        self.termination_conditions = [(lambda a: False)]
    else:
        self.termination_conditions = termination_conditions
    self.episode = 0
    self.step = 0
def __init__(self, env, agent, callbacks=None, termination_conditions=None):
    self.env = env
    self.agent = agent
    self.callbacks = CallbackList(callbacks)
    if (termination_conditions is None):
        self.termination_conditions = [(lambda a: False)]
    else:
        self.termination_conditions = termination_conditions
    self.episode = 0
    self.step = 0