Skip to content

Instantly share code, notes, and snippets.

View niektuytel's full-sized avatar
Time is rare

niektuytel

Time is rare
  • Dordrecht, Netherlands
View GitHub Profile
@niektuytel
niektuytel / rl_glue.py
Last active May 23, 2024 03:39
RLGlue for python 3
class RLGlue:
"""RLGlue class
args:
env_name (string): the name of the module where the Environment class can be found
agent_name (string): the name of the module where the Agent class can be found
"""
def __init__(self, env_class, agent_class):
self.environment = env_class()
self.agent = agent_class()