diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/agents/deepracer_base_agent.py b/agents/deepracer_base_agent.py new file mode 100644 index 0000000000000000000000000000000000000000..fa4fa19660c1df49b4a47867b36b661b20171210 --- /dev/null +++ b/agents/deepracer_base_agent.py @@ -0,0 +1,9 @@ +class DeepracerAgent(): + def __init__(self): + self.agent_type = None + + def register_reset(self, observations): + raise NotImplementedError + + def compute_action(self, observations, info): + raise NotImplementedError \ No newline at end of file diff --git a/agents/random_agent.py b/agents/random_agent.py new file mode 100644 index 0000000000000000000000000000000000000000..3e242f9a1a476300e1afe4e431f65f89f1fb48d6 --- /dev/null +++ b/agents/random_agent.py @@ -0,0 +1,14 @@ +import numpy as np +from deepracer_base_agent import DeepracerAgent + +class RandomDeepracerAgent(DeepracerAgent): + def __init__(self): + pass + + def register_reset(self, observations): + action = np.random.randint(5) + return action + + def compute_action(self, observations, info): + action = np.random.randint(5) + return action diff --git a/aicrowd.json b/aicrowd.json index 4b268b40dc838b6edab4cf2ae8f57e38c251fc23..3e228a62c018437086aa0f117d8a60ee1ffe0d44 100644 --- a/aicrowd.json +++ b/aicrowd.json @@ -1,8 +1,7 @@ { - "challenge_id": "evaluations-api-deepracer", - "grader_id": "evaluations-api-deepracer", + "challenge_id": "neurips-2021-aws-deepracer-ai-driving-olympics-challenge", "authors": ["aicrowd-bot"], "tags": "change-me", - "description": "Random agent for AWS Deep Racer", + "description": "Random agent for AWS Deep Racer" } diff --git a/submission_config.py b/submission_config.py new file mode 100644 index 0000000000000000000000000000000000000000..7f3d761bba86c43dae5724f026ea0d7f66cfde98 --- /dev/null +++ b/submission_config.py @@ -0,0 +1,4 @@ +from agents.random_agent import RandomDeepracerAgent + +class LocalEvaluationConfig: + submission_agent = RandomDeepracerAgent