hpi-epic / BP2021

Working repository in context of the bachelor project "Online Marketplace Simulation: A Testbed for Self-Learning Agents" at the research group Enterprise Platform and Integration Concepts
MIT License
3 stars 0 forks source link

stable baselines agents dont work with train_from_config() #545

Open davidhennemann opened 1 year ago

davidhennemann commented 1 year ago

The stable baselines agents can't be used from the train_from_config() >> run_training_session().

assert issubclass(agent, (q_learning_agent.QLearningAgent, actorcritic_agent.ActorCriticAgent)), \
        f'the RL_agent_class passed must be a subclass of either QLearningAgent or ActorCriticAgent: {agent}'

It seems like run_training_session is used for ActorCriticAgent and QLearningAgent, but StableBaselinesAgents are invoked differently.